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

rollup-plugin-babel

Package Overview
Dependencies
Maintainers
30
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 3.0.0-alpha.17 to 3.0.0

src/helperPlugin.js

15

dist/rollup-plugin-babel.cjs.js
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var path = require('path');
var babelCore = require('babel-core');
var rollupPluginutils = require('rollup-pluginutils');
var classes = _interopDefault(require('babel-plugin-transform-es2015-classes'));

@@ -16,2 +13,12 @@ var INLINE = {};

function importHelperPlugin () {
return {
visitor: {
Program: function Program (path$$1, state) {
state.file.addHelper('classCallCheck');
}
}
};
}
var preflightCheckResults = {};

@@ -29,3 +36,3 @@

options.plugins = options.plugins ? options.plugins.concat( classes ) : [ classes ];
options.plugins = options.plugins ? options.plugins.concat( importHelperPlugin ) : [ importHelperPlugin ];

@@ -32,0 +39,0 @@ var check = babelCore.transform( 'export default class Foo {}', options ).code;

import { dirname, join } from 'path';
import { buildExternalHelpers, transform } from 'babel-core';
import { createFilter } from 'rollup-pluginutils';
import classes from 'babel-plugin-transform-es2015-classes';

@@ -12,2 +11,12 @@ var INLINE = {};

function importHelperPlugin () {
return {
visitor: {
Program: function Program (path$$1, state) {
state.file.addHelper('classCallCheck');
}
}
};
}
var preflightCheckResults = {};

@@ -25,3 +34,3 @@

options.plugins = options.plugins ? options.plugins.concat( classes ) : [ classes ];
options.plugins = options.plugins ? options.plugins.concat( importHelperPlugin ) : [ importHelperPlugin ];

@@ -28,0 +37,0 @@ var check = transform( 'export default class Foo {}', options ).code;

{
"name": "rollup-plugin-babel",
"version": "3.0.0-alpha.17",
"version": "3.0.0",
"description": "Seamless integration between Rollup and Babel.",

@@ -34,7 +34,9 @@ "main": "dist/rollup-plugin-babel.cjs.js",

"dependencies": {
"babel-core": "7.0.0-alpha.17",
"babel-plugin-transform-es2015-classes": "7.0.0-alpha.17",
"rollup-pluginutils": "^1.5.0"
},
"peerDependencies": {
"babel-core": "6 || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc"
},
"devDependencies": {
"babel-core": "7.0.0-alpha.17",
"babel-plugin-external-helpers": "7.0.0-alpha.17",

@@ -41,0 +43,0 @@ "babel-plugin-transform-decorators": "7.0.0-alpha.17",

import { join } from 'path';
import { transform } from 'babel-core';
import { INLINE, RUNTIME, BUNDLED } from './constants.js';
import classes from 'babel-plugin-transform-es2015-classes';
import importHelperPlugin from './helperPlugin.js';

@@ -18,3 +18,3 @@ let preflightCheckResults = {};

options.plugins = options.plugins ? options.plugins.concat( classes ) : [ classes ];
options.plugins = options.plugins ? options.plugins.concat( importHelperPlugin ) : [ importHelperPlugin ];

@@ -21,0 +21,0 @@ const check = transform( 'export default class Foo {}', options ).code;

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