A Karma preprocessor that compiles ES6 module syntax (import/export) to ES5 using the es6-module-transpiler. Version 0.2.0 is the latest and appears to be unmaintained since 2014. It integrates with Karma test runner to transpile ES6 modules on the fly during testing. Note that the es6-module-transpiler project itself is deprecated in favor of Babel or TypeScript. This preprocessor is specific to the es6-module-transpiler and does not support newer transpilers like Babel. For modern projects, use karma-babel-preprocessor instead.
npm install karma-es6-module-preprocessorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Karma configuration to transpile ES6 modules to ES5 using the karma-es6-module-preprocessor during testing.
Migrate to karma-babel-preprocessor with appropriate Babel presets for ES6 modules.
Use 'es6' as the preprocessor name in the preprocessors object.
Set plugins: ['karma-es6-module-preprocessor'] in karma.conf.js.
Upgrade Karma to version 0.12.0 or later.
Install es6-module-transpiler as a devDependency: npm install es6-module-transpiler --save-dev
Add 'karma-es6-module-preprocessor' to plugins array and ensure it is installed.
Ensure es6-module-transpiler is installed and the path is correct.