File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ const CompressionPlugin = require('compression-webpack-plugin')
55const BundleAnalyzerPlugin =
66 require ( 'webpack-bundle-analyzer' ) . BundleAnalyzerPlugin
77const CircularDependencyPlugin = require ( 'circular-dependency-plugin' )
8-
8+ const {
9+ ECMAVersionValidatorPlugin,
10+ } = require ( 'ecma-version-validator-webpack-plugin' )
911const isProd = process . env . NODE_ENV === 'production'
1012
1113const 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
3541if ( process . env . ANALYZE ) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments