Skip to content

Commit 6f9f2c3

Browse files
committed
Install babel-plugin-external-helpers to suppress rollup warnings
1 parent 272ce9c commit 6f9f2c3

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

package-lock.json

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"babel-cli": "^6.26.0",
9292
"babel-eslint": "^8.2.2",
9393
"babel-loader": "^7.1.2",
94+
"babel-plugin-external-helpers": "^6.22.0",
9495
"babel-preset-es2015": "^6.24.1",
9596
"babel-preset-react": "^6.24.1",
9697
"babel-preset-stage-2": "^6.24.1",

rollup.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ export default [
2121
browser: true,
2222
}),
2323
eslint(),
24-
babel(),
24+
babel({
25+
plugins: ['external-helpers'],
26+
externalHelpers: true,
27+
}),
2528
commonjs(),
2629
replace({
2730
exclude: 'node_modules/**',

0 commit comments

Comments
 (0)