Package Exports
- karma-espower-preprocessor
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (karma-espower-preprocessor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
karma-espower-preprocessor
Preprocess source code by espower-source
Installation
npm install karma-espower-preprocessor --save-dev
I'm recommend to use with karma-sourcemap-loader if you use some altJS.
Configuration
// karma.conf.js
module.exports = function(config) {
config.set({
preprocessors: {
'**/*.js': ['espower']
// '**/*.js': ['sourcemap', 'espower']
},
espowerPreprocessor: {
options: {
// emit espowerified code.
// default: false (in-memory)
emitActualCode: true,
// ignore upstream SourceMap info.
// default: false
ignoreUpstreamSourceMap: false
},
transformPath: function(path) {
// default
return path.replace(/\.js$/, '.espowered.js');
}
}
});
};