Skip to content

ActionPackMedia/karma-esnext-preprocessor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%