Add babel-loader for IE/Firefox compatibility
gergogy opened this issue · comments
Reason for this issue
Hi, I have compatibility issues with Firefox and MS Edge, the webpack output is not compatible, (ie: trailing commas in object, Promise, etc.). How can I add a babel loader for the project?
It has issues on server side because of it. I tried to push a default loader, in 'webpack-loaders'
hook:
loaders.push({ test: /\.?js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { presets: ['@babel/preset-env'] } } })
Can you help me?
Steps to Reproduce
that's all handled by TypeScript which is set to target es2018. Doesn't that work in Firefox?
Which versions are we talking about?