|
@@ -142,7 +142,7 @@ function getConfig(options = {}) {
|
142
|
142
|
require.resolve('@babel/preset-react')
|
143
|
143
|
]
|
144
|
144
|
},
|
145
|
|
- test: /\.jsx?$/,
|
|
145
|
+ test: /\.(j|t)sx?$/,
|
146
|
146
|
exclude: /node_modules/
|
147
|
147
|
}, {
|
148
|
148
|
// Allow CSS to be imported into JavaScript.
|
|
@@ -322,7 +322,7 @@ module.exports = (_env, argv) => {
|
322
|
322
|
...config.plugins,
|
323
|
323
|
...getBundleAnalyzerPlugin(analyzeBundle, 'analytics-ga')
|
324
|
324
|
],
|
325
|
|
- performance: getPerformanceHints(perfHintOptions, 5 * 1024)
|
|
325
|
+ performance: getPerformanceHints(perfHintOptions, 35 * 1024)
|
326
|
326
|
}),
|
327
|
327
|
Object.assign({}, config, {
|
328
|
328
|
entry: {
|
|
@@ -347,7 +347,7 @@ module.exports = (_env, argv) => {
|
347
|
347
|
...config.plugins,
|
348
|
348
|
...getBundleAnalyzerPlugin(analyzeBundle, 'external_api')
|
349
|
349
|
],
|
350
|
|
- performance: getPerformanceHints(perfHintOptions, 85 * 1024)
|
|
350
|
+ performance: getPerformanceHints(perfHintOptions, 95 * 1024)
|
351
|
351
|
}),
|
352
|
352
|
Object.assign({}, config, {
|
353
|
353
|
entry: {
|
|
@@ -401,7 +401,7 @@ module.exports = (_env, argv) => {
|
401
|
401
|
...config.plugins,
|
402
|
402
|
...getBundleAnalyzerPlugin(analyzeBundle, 'screenshot-capture-worker')
|
403
|
403
|
],
|
404
|
|
- performance: getPerformanceHints(perfHintOptions, 4 * 1024)
|
|
404
|
+ performance: getPerformanceHints(perfHintOptions, 30 * 1024)
|
405
|
405
|
})
|
406
|
406
|
];
|
407
|
407
|
};
|