Skip to content

Commit

Permalink
fix(build): suport for legacy browser
Browse files Browse the repository at this point in the history
As of Webpack v5 transpile using ES6 syntax, needs to
add extra target configuration to support old browser.

https://webpack.js.org/migrate/5/#need-to-support-an-older-browser-like-ie-11

Fix #1913
  • Loading branch information
netil authored Feb 1, 2021
1 parent 62cd79e commit 594d18e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const config = {
resolve: {
extensions: [".ts", ".js"]
},
// https://webpack.js.org/migrate/5/#need-to-support-an-older-browser-like-ie-11
target: ["web", "es5"],
module: {
rules: [
{
Expand Down

0 comments on commit 594d18e

Please sign in to comment.