karma-regenerator-preprocessor

0.1.0 • Public • Published

karma-regenerator-preprocessor

Preprocessor to compile regenerator code

Installation

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

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-regenerator-preprocessor": "~0.1"
  }
}

You can simple do it by:

npm install karma-regenerator-preprocessor --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.js': ['regenerator']
    },
 
    regeneratorPreprocessor: {
      // options passed to regenerator
      options: {
        includeRuntime: true,
      },
    }
  });
};

Authors

Package Sidebar

Install

npm i karma-regenerator-preprocessor

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • eigenjoy