karma-msx-preprocessor

1.0.0 • Public • Published

karma-msx-preprocessor

Compile JSX into Mithril render-compatible elements on the fly

The plugin uses MSX to compile JSX into Mithril render-compatible elements for your Karma runs.

Installation

Run npm install in your project root:

$ npm install karma-msx-preprocessor --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.js': ['msx']
    },
    
    msxPreprocessor: {
      // options passed to msx transform, the defaults are
      harmony    : true,
      precompile : true
    }
  })
}

config.msxPreprocessor is passed directly as the options to msx.transform(). harmony and precompile are enabled by default.

Dependents (0)

Package Sidebar

Install

npm i karma-msx-preprocessor

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • orbitbot