Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lab-babel

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lab-babel - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

1

lib/index.js

@@ -11,2 +11,3 @@ var Babel = require('babel-core');

var transformed = Babel.transform(content, {
filename: filename,
sourceMap: 'inline',

@@ -13,0 +14,0 @@ sourceFileName: filename,

2

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc