Socket
Socket
Sign inDemoInstall

babili-webpack-plugin

Package Overview
Dependencies
84
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

2

lib/index.js

@@ -39,2 +39,3 @@ "use strict";

var _babili = this.options.babili || babiliPreset;
var parserOpts = this.options.parserOpts || {};

@@ -90,2 +91,3 @@ compiler.plugin("compilation", function (compilation) {

var result = _babel.transform(input, {
parserOpts,
presets: [[_babili, babiliOpts]],

@@ -92,0 +94,0 @@ sourceMaps: useSourceMap,

2

package.json
{
"name": "babili-webpack-plugin",
"version": "0.1.0",
"version": "0.1.1",
"description": "Babili Plugin for Webpack",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -49,2 +49,3 @@ [![npm][npm]][npm-url]

+ `sourceMap`: Default: uses [webpackConfig.devtool](https://webpack.js.org/configuration/devtool/). Set this to override that.
+ `parserOpts`: Configure babel with special parser options.
+ `babel`: Pass in a custom babel-core instead. `require("babel-core")`

@@ -51,0 +52,0 @@ + `babili`: Pass in a custom babili preset instead - `require("babel-preset-babili")`.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc