Skip to content

Commit 085df5d

Browse files
committed
wip
1 parent a4d2367 commit 085df5d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

packages/browser/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"aws-sdk": "^2.814.0",
8181
"circular-dependency-plugin": "^5.2.2",
8282
"compression-webpack-plugin": "^8.0.1",
83+
"ecma-version-validator-webpack-plugin": "^1.2.1",
8384
"execa": "^4.1.0",
8485
"flat": "^5.0.2",
8586
"fs-extra": "^9.0.1",

packages/browser/webpack.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ const CompressionPlugin = require('compression-webpack-plugin')
55
const BundleAnalyzerPlugin =
66
require('webpack-bundle-analyzer').BundleAnalyzerPlugin
77
const CircularDependencyPlugin = require('circular-dependency-plugin')
8-
8+
const {
9+
ECMAVersionValidatorPlugin,
10+
} = require('ecma-version-validator-webpack-plugin')
911
const isProd = process.env.NODE_ENV === 'production'
1012

1113
const ASSET_PATH = process.env.ASSET_PATH
@@ -30,6 +32,10 @@ const plugins = [
3032
new CircularDependencyPlugin({
3133
failOnError: true,
3234
}),
35+
// ensure our js bundle only contains syntax supported in ie11.
36+
// This does not check polyfills.
37+
// This is especially neccessary because by default, node_modules are not transformed.
38+
new ECMAVersionValidatorPlugin({ ecmaVersion: 5 }),
3339
]
3440

3541
if (process.env.ANALYZE) {

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6268,6 +6268,7 @@ __metadata:
62686268
circular-dependency-plugin: ^5.2.2
62696269
compression-webpack-plugin: ^8.0.1
62706270
dset: ^3.1.4
6271+
ecma-version-validator-webpack-plugin: ^1.2.1
62716272
execa: ^4.1.0
62726273
flat: ^5.0.2
62736274
fs-extra: ^9.0.1

0 commit comments

Comments
 (0)