Comparing version 1.1.0 to 1.1.1
@@ -11,2 +11,3 @@ var Babel = require('babel-core'); | ||
var transformed = Babel.transform(content, { | ||
filename: filename, | ||
sourceMap: 'inline', | ||
@@ -13,0 +14,0 @@ sourceFileName: filename, |
{ | ||
"name": "lab-babel", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "a transform for lab to allow testing babel transpiled modules, with coverage and source maps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,1 +10,10 @@ lab-babel is a small transform to allow testing your es6/jsx modules with lab, complete with code coverage and proper source maps. | ||
For more information on writing tests in lab, see the [README](https://github.com/hapijs/lab). | ||
### Babel >= 6 | ||
For Babel versions greather than 6, please install [`babel-preset-es2015`](https://www.npmjs.com/package/babel-preset-es2015) add the following to your [`.babelrc`](https://babeljs.io/docs/usage/babelrc/): | ||
``` | ||
{ | ||
"presets": ["es2015"] | ||
} | ||
``` | ||
(this could be added to the `babel` section of yor `package.json`, as described by the [`.babelrc`](https://babeljs.io/docs/usage/babelrc/#use-via-package-json) documentation) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2371
22
19
1