karma-es6-shim
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "karma-es6-shim", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "es6-shim adapter for Karma", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,12 +8,8 @@ karma-es6-shim | ||
[es6-shim][] for [Karma][] including [es5-shim][] | ||
[es6-shim](https://github.com/paulmillr/es6-shim/) for [karma](http://karma-runner.github.io) including [es5-shim](https://github.com/es5-shim/es5-shim/). | ||
[es6-shim]: https://github.com/paulmillr/es6-shim/ | ||
[es5-shim]: https://github.com/es5-shim/es5-shim/ | ||
[karma]: http://karma-runner.github.io | ||
Motivation | ||
---------- | ||
Most versions of PhantomJS do not support ES5, let alone ES6. This meant that you got all sorts of errors when you tried to test ES6 features, even if you had used the [Babel (AKA 6to5 ) transpiler](https://babeljs.io/). | ||
Most versions of PhantomJS do not support ES5, let alone ES6. This meant that you got all sorts of errors when you tried to test ES6 features, even if you had used the [Babel/6to5 transpiler](https://babeljs.io/). | ||
@@ -68,3 +64,3 @@ Therefore, we have modified [pokehanai/karma-es5-shim](https://github.com/pokehanai/karma-es5-shim) in the following ways: | ||
* You use the es6-shim polyfill in your HTML | ||
* You need to use AMD-based module loading | ||
* You need to use AMD-based module loading, e.g. RequireJS (see [Babel's docs](https://babeljs.io/docs/usage/runtime/) for more information) | ||
@@ -75,2 +71,1 @@ Do not use it if: | ||
* You are polyfilling in some other way that is accessible to PhantomJS in Karma | ||
Sorry, the diff of this file is not supported yet
22149
69