karma-esnext-preprocessor

0.1.1 • Public • Published

karma-esnext-preprocessor

Preprocessor to compile tomorrow's JavaScript syntax to the language of today using esnext.

Installation

The easiest way is to keep karma-esnext-preprocessor as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.12",
    "karma-esnext-preprocessor": "~0.1"
  }
}

You can easily add it by doing:

npm install karma-esnext-preprocessor --save-dev

Configuration

Following code shows the default configuration...

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.js': ['esnext']
    },

    esnextPreprocessor: {
      options: {
        arrayComprehensions: false
      }
    }
  });
};

options

Options are passed through to esnext.


For more information on Karma see the homepage.

Package Sidebar

Install

npm i karma-esnext-preprocessor

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • attamusc