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
module.exports = function(config) {
config.set({
preprocessors: {
'**/*.js': ['msx']
},
msxPreprocessor: {
harmony : true,
precompile : true
}
})
}
config.msxPreprocessor
is passed directly as the options to msx.transform()
. harmony
and precompile
are enabled by default.