Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 645f71f

Browse files
virgofxFezVrasta
authored andcommitted
fix: ensure "external-helpers" only included in Rollup builds (#161)
Fixes #1595
1 parent 2f2be26 commit 645f71f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.babelrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"react"
66
],
77
"plugins": [
8-
"external-helpers",
98
"transform-class-properties"
109
],
1110
"env": {

rollup.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ const baseConfig = (outputFormat) => {
2121
input: 'src/index.js',
2222
plugins: [
2323
nodeResolve(),
24-
babel(),
24+
babel({
25+
plugins: [
26+
// Ensure "external-helpers" is only included in rollup builds
27+
// Issue: https://github.com/rollup/rollup/issues/1595
28+
'external-helpers',
29+
],
30+
}),
2531
replace({
2632
'process.env.NODE_ENV': JSON.stringify('production')
2733
}),

0 commit comments

Comments
 (0)