-
-
Notifications
You must be signed in to change notification settings - Fork 158
IE 11 Symbol is not defined #203
Comments
Hi, @rmakarov94!
a) babel-plugins, b) polyfills. babel-plugins (see more) transforms your es6 code to es5: babel-polyfill (see more) adds things like babel-preset-env includes plugins by default. To include polyfill you need:
Ok, trying to format your config to be more effective: {
"presets": [
["env", {
"targets": {
"browsers": [
"Chrome >= 52",
"FireFox >= 44",
"Safari >= 7",
"Explorer 11",
"last 4 Edge versions"
]
},
"useBuiltIns": true
}],
"react",
"stage-1"
],
"ignore": [
"node_modules"
],
"plugins": [
"transform-decorators-legacy",
"transform-class-properties",
"syntax-class-properties"
]
} Hope it will help. Sorry if I missed something. |
@yavorsky wow! It's much more than I expected. Everything is works perfectly now. Great thanks. |
I would recommend not using stage-x presets and include individual plugins, and you don't need "syntax-class-properties" if you have "transform-class-properties" |
@hzoo thanks for the tip! 👍 If you could, I'd like to know why we should we use individual plugins instead of stage-x presets? |
Here is .babelrc
and deps
Thank you for the work! Great tool
The text was updated successfully, but these errors were encountered: