Skip to content

Commit 6f76796

Browse files
committed
Updates dependencies
Adds new webpack tree shaking plugin
1 parent 776c45a commit 6f76796

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

package-lock.json

Lines changed: 22 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3611,11 +3611,12 @@
36113611
"tslint": "5.11.0",
36123612
"tslint-loader": "3.6.0",
36133613
"tslint-prettiest": "0.0.1",
3614-
"ts-loader": "4.4.2",
3614+
"ts-loader": "4.5.0",
36153615
"typescript": "3.0.1",
36163616
"vscode": "1.1.21",
36173617
"webpack": "4.16.5",
36183618
"webpack-cli": "3.1.0",
3619+
"webpack-deep-scope-plugin": "1.3.6",
36193620
"webpack-node-externals": "1.7.2"
36203621
}
36213622
}

webpack.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const HtmlInlineSourcePlugin = require('html-webpack-inline-source-plugin');
77
const HtmlPlugin = require('html-webpack-plugin');
88
const ImageminPlugin = require('imagemin-webpack-plugin').default;
99
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
10+
const WebpackDeepScopeAnalysisPlugin = require('webpack-deep-scope-plugin').default;
1011

1112
module.exports = function(env, argv) {
1213
env = env || {};
@@ -18,6 +19,10 @@ module.exports = function(env, argv) {
1819

1920
function getExtensionConfig(env) {
2021
const plugins = [new CleanPlugin(['out'], { verbose: false })];
22+
// Comment out for now, as it errors
23+
// if (env.production) {
24+
// plugins.push(new WebpackDeepScopeAnalysisPlugin());
25+
// }
2126

2227
return {
2328
name: 'extension',
@@ -133,6 +138,10 @@ function getUIConfig(env) {
133138
})
134139
];
135140

141+
if (env.production) {
142+
plugins.push(new WebpackDeepScopeAnalysisPlugin());
143+
}
144+
136145
return {
137146
name: 'ui',
138147
context: path.resolve(__dirname, 'src/ui'),

0 commit comments

Comments
 (0)