Open bosens-China opened 5 years ago
I also have this error if babel-plugin-closure-elimination
is in plugins array
Can confirm this error occurs when babel-plugin-minify-mangle-names
is in .babelrc
plugins
Yes, I have this problem to with Storybook when I am using Typescript
Hello @shrey150,
Can confirm this error occurs when
babel-plugin-minify-mangle-names
is in.babelrc
plugins
Do you use the preset
minify
by any chance? If so you need to remove the plugin from the plugin
section and set the options via the preset
. e.g:
"env": {
"production": {
"presets": [
["minify", {
"mangle": {
"topLevel": true,
"keepFnName": false,
"keepClassName": false
},
Describe the bug
To Reproduce
Minimal code to reproduce the bug
Actual Output
If there is no Error thrown,
Expected Output
Stack Trace
If applicable,
Configuration
How are you using babel-minify?
webpack4
babel-minify version:
0.4.3
babel version :
7.0.0-beta.49
babel-minify-config:
babelrc:
Possible solution
Additional context