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

rollup-plugin-babel

Package Overview
Dependencies
Maintainers
10
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-babel - npm Package Compare versions

Comparing version 4.1.0-0 to 4.1.0-1

4

dist/rollup-plugin-babel.cjs.js

@@ -185,3 +185,3 @@ 'use strict';

if (!helpers) {
return { code: code };
return null;
}

@@ -207,3 +207,3 @@

if (!transformed) {
return { code: code };
return null;
}

@@ -210,0 +210,0 @@

@@ -183,3 +183,3 @@ import { join, dirname } from 'path';

if (!helpers) {
return { code: code };
return null;
}

@@ -205,3 +205,3 @@

if (!transformed) {
return { code: code };
return null;
}

@@ -208,0 +208,0 @@

{
"name": "rollup-plugin-babel",
"version": "4.1.0-0",
"version": "4.1.0-1",
"description": "Seamless integration between Rollup and Babel.",

@@ -25,3 +25,2 @@ "main": "dist/rollup-plugin-babel.cjs.js",

"test": "mocha",
"precommit": "lint-staged",
"prepare": "npm run build",

@@ -50,3 +49,3 @@ "prepublish": "npm run lint && npm test",

"eslint": "^5.0.1",
"husky": "^0.14.3",
"husky": "^1.0.1",
"lint-staged": "^7.2.2",

@@ -53,0 +52,0 @@ "mocha": "^5.2.0",

@@ -53,2 +53,3 @@ # rollup-plugin-babel

- `options.externalHelpersWhitelist`: an array which gives explicit control over which babelHelper functions are allowed in the bundle (by default, every helper is allowed)
- `options.extensions`: an array of file extensions that Babel should transpile (by default the Babel defaults of .js, .jsx, .es6, .es, .mjs. are used)

@@ -108,6 +109,6 @@ Babel will respect `.babelrc` files – this is generally the best place to put your configuration.

plugins: [
babel({
babelrc: false,
presets: [['env', { modules: false }]],
}),
babel({
babelrc: false,
presets: [['env', { modules: false }]],
}),
];

@@ -114,0 +115,0 @@ ```

@@ -81,3 +81,3 @@ import { buildExternalHelpers, DEFAULT_EXTENSIONS, loadPartialConfig, transform } from '@babel/core';

if (!helpers) {
return { code };
return null;
}

@@ -105,3 +105,3 @@

if (!transformed) {
return { code };
return null;
}

@@ -108,0 +108,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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