karma-msx-preprocessor
v1.0.0
Published
Compile JSX into Mithril render-compatible elements on the fly
Downloads
11
Maintainers
Readme
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.