Karma plugin that includes both es5-shim and es6-shim polyfills for testing ES6 features in PhantomJS. Version 1.0.0, last updated in 2016. Designed for projects using AMD/RequireJS and Babel transpilation. Simplifies configuration by ensuring both shims are loaded in the correct order for PhantomJS, which lacks ES5 and ES6 support. No active maintenance since 2016.
npm install karma-es6-shimNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install karma-es6-shim and add 'es6-shim' to the frameworks array after 'requirejs' in karma.conf.js to load ES5 and ES6 polyfills for PhantomJS.
Consider using Karma with a modern headless browser (e.g., ChromeHeadless) that natively supports ES6, or use Babel's polyfill instead.
Ensure frameworks array is ordered as ['requirejs', 'es6-shim'].
This package is designed for AMD/RequireJS setups. For other module systems, use es6-shim directly as a plugin or via script tags.
Ensure 'es6-shim' is included in karma.conf.js frameworks array after 'requirejs'.
Run 'npm install karma-es6-shim --save-dev' and verify frameworks array in karma.conf.js.