Registry / testing / karma-es6-transpiler-preprocessor

karma-es6-transpiler-preprocessor

JSON →
library0.0.1jsnpmunverified

A Karma preprocessor that transpiles ES6 JavaScript code to ES5 using es6-transpiler. Version 0.0.1, last updated in 2014. This package is essentially abandoned; es6-transpiler is no longer maintained, and modern projects should use Babel or TypeScript instead. It works only with Karma and requires no direct dependencies but relies on es6-transpiler being installed (though not listed as a peer dependency).

npm install karma-es6-transpiler-preprocessor
INSTALL
IMPORT
SIG · KARMA-ES6-TRANSPIL
K
karma-es6-transpiler-preprocessor
testingjavascriptv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

config.set({ preprocessors: { ... } })
module.exports = function(config) { config.set({ preprocessors: { '*.js': ['es6-transpiler'] } }); };
module.exports = function(config) { config.set({ preprocessors: { '*.js': 'es6-transpiler' } }); };
Preprocessors value must be an array, not a string.

Shows how to configure Karma to use the es6-transpiler preprocessor for all JS files in source and spec directories.

// karma.conf.js module.exports = function(config) { config.set({ basePath: '', frameworks: ['jasmine'], files: ['src/**/*.js', 'spec/**/*.spec.js'], preprocessors: { 'src/**/*.js': ['es6-transpiler'], 'spec/**/*.spec.js': ['es6-transpiler'] }, browsers: ['ChromeHeadless'], singleRun: true }); };
Debug
Known issues
deprecatedes6-transpiler is no longer maintained. Consider using Babel or TypeScript instead.
fix
Replace with karma-babel-preprocessor or @karma-typescript
affects: >=0
gotchaThe preprocessors value must be an array, not a string. Misconfiguration leads to silent failure.
fix
Ensure preprocessor values are arrays: ['es6-transpiler']
affects: >=0
gotchaes6-transpiler is not automatically installed as a dependency; you must install it separately.
fix
Run 'npm install es6-transpiler --save-dev' in addition to this preprocessor
affects: >=0
Errors
Common errors & fixes
Error: Module "es6-transpiler" not found
es6-transpiler is not installed.
fix
Run 'npm install es6-transpiler --save-dev'
No provider for "preprocessor:es6-transpiler"!
Preprocessor setup is incorrect or missing.
fix
Ensure preprocessors key uses array format: '*.js': ['es6-transpiler']
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
karma-es6-transpiler-preprocessor — npm install karma-es6-transpiler-preprocessor · libregistry