rollup-plugin-babel
Advanced tools
Comparing version 3.0.0 to 3.0.1
# rollup-plugin-babel changelog | ||
## 3.0.0 | ||
* Drop Node 0.10/0.12 (Use native `Object.assign`) | ||
* Change `babel-core` to be a peerDependency | ||
* Support `babel-core` v7 as well as a peerDep (no changes necessary) | ||
## 2.7.1 | ||
@@ -4,0 +10,0 @@ |
@@ -16,4 +16,4 @@ 'use strict'; | ||
visitor: { | ||
Program: function Program (path$$1, state) { | ||
state.file.addHelper('classCallCheck'); | ||
ClassDeclaration: function ClassDeclaration (path$$1, state) { | ||
path$$1.replaceWith(state.file.addHelper('classCallCheck')); | ||
} | ||
@@ -20,0 +20,0 @@ } |
@@ -14,4 +14,4 @@ import { dirname, join } from 'path'; | ||
visitor: { | ||
Program: function Program (path$$1, state) { | ||
state.file.addHelper('classCallCheck'); | ||
ClassDeclaration: function ClassDeclaration (path$$1, state) { | ||
path$$1.replaceWith(state.file.addHelper('classCallCheck')); | ||
} | ||
@@ -18,0 +18,0 @@ } |
{ | ||
"name": "rollup-plugin-babel", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Seamless integration between Rollup and Babel.", | ||
@@ -5,0 +5,0 @@ "main": "dist/rollup-plugin-babel.cjs.js", |
export default function importHelperPlugin () { | ||
return { | ||
visitor: { | ||
Program (path, state) { | ||
state.file.addHelper('classCallCheck'); | ||
ClassDeclaration (path, state) { | ||
path.replaceWith(state.file.addHelper('classCallCheck')); | ||
} | ||
@@ -7,0 +7,0 @@ } |
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
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
25355