Skip to content

Commit

Permalink
fix(web): support for IE11
Browse files Browse the repository at this point in the history
Without a browserslist webpack's runtime code uses ES2015 syntax (e.g., arrow function) to build smaller bundles. If your build targets environments that don't support ES2015 syntax (like IE11), you'll need to set target: ['web', 'es5'] to use ES5 syntax.
  • Loading branch information
vydimitrov committed Jan 14, 2021
1 parent 417c7a6 commit 201f996
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const webpackBaseConfig = require('../../webpack-base-config')

module.exports = webpackBaseConfig
module.exports = {
...webpackBaseConfig,
target: ['web', 'es5'], // Support IE11 and old browsers
}

0 comments on commit 201f996

Please sign in to comment.