{"id":25824,"library":"karma-es6-module-preprocessor","title":"karma-es6-module-preprocessor","description":"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.","status":"deprecated","version":"0.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/Attamusc/karma-es6-module-preprocessor","tags":["javascript","karma-plugin","karma-preprocessor","es6-module-transpiler"],"install":[{"cmd":"npm install karma-es6-module-preprocessor","lang":"bash","label":"npm"},{"cmd":"yarn add karma-es6-module-preprocessor","lang":"bash","label":"yarn"},{"cmd":"pnpm add karma-es6-module-preprocessor","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for Karma plugin integration","package":"karma","optional":false}],"imports":[{"note":"Karma plugin names must be prefixed with 'karma-' when given as short names in plugins array.","wrong":"plugins: ['es6-module-preprocessor']","symbol":"default (plugin)","correct":"plugins: ['karma-es6-module-preprocessor'] in karma.conf.js"},{"note":"The preprocessor name in the preprocessors object is 'es6', not 'es6-module'.","wrong":"preprocessors: { '**/*.js': ['es6-module'] }","symbol":"preprocessor configuration","correct":"preprocessors: { '**/*.js': ['es6'] }"},{"note":"The package exports a function as module.exports, not a default export.","wrong":"var es6ModulePreprocessor = require('karma-es6-module-preprocessor').default;","symbol":"CommonJS require","correct":"var es6ModulePreprocessor = require('karma-es6-module-preprocessor');"}],"quickstart":{"code":"// karma.conf.js\nmodule.exports = function(config) {\n  config.set({\n    frameworks: ['jasmine'],\n    plugins: ['karma-es6-module-preprocessor', 'karma-jasmine', 'karma-chrome-launcher'],\n    preprocessors: {\n      '**/*.js': ['es6']\n    },\n    files: [\n      'src/**/*.js',\n      'test/**/*.test.js'\n    ],\n    browsers: ['ChromeHeadless'],\n    singleRun: true\n  });\n};","lang":"javascript","description":"Karma configuration to transpile ES6 modules to ES5 using the karma-es6-module-preprocessor during testing."},"warnings":[{"fix":"Migrate to karma-babel-preprocessor with appropriate Babel presets for ES6 modules.","message":"The es6-module-transpiler project is deprecated and no longer maintained. This preprocessor relies on an outdated transpiler.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use 'es6' as the preprocessor name in the preprocessors object.","message":"Preprocessor name must be 'es6' in preprocessors config, not 'es6-module' or 'karma-es6-module-preprocessor'.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Set plugins: ['karma-es6-module-preprocessor'] in karma.conf.js.","message":"Karma plugins must include the full plugin name prefixed with 'karma-' if using short names.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Upgrade Karma to version 0.12.0 or later.","message":"This plugin only supports Karma >=0.12.0. Older versions are incompatible.","severity":"breaking","affected_versions":"<0.12.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install es6-module-transpiler as a devDependency: npm install es6-module-transpiler --save-dev","cause":"The es6-module-transpiler is not installed as a dependency and this preprocessor depends on it.","error":"Module \"es6-module-transpiler\" not found"},{"fix":"Add 'karma-es6-module-preprocessor' to plugins array and ensure it is installed.","cause":"The plugin is listed in karma.conf.js with an incorrect name or not installed.","error":"No provider for \"framework:karma-es6-module-preprocessor\"!"},{"fix":"Ensure es6-module-transpiler is installed and the path is correct.","cause":"The es6-module-transpiler has not been found or initialization failed.","error":"TypeError: Cannot read property 'transpile' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}