Skip to content

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

Notifications You must be signed in to change notification settings

Attamusc/karma-esnext-preprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Packages