0.1.0 • Published 10 years ago

karma-regenerator-preprocessor v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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