浏览代码

Upgrades to Webpack 5

main
Eric Amodio 4 年前
父节点
当前提交
458d95c525
共有 3 个文件被更改,包括 2405 次插入1028 次删除
  1. +5
    -5
      package.json
  2. +19
    -20
      webpack.config.js
  3. +2381
    -1003
      yarn.lock

+ 5
- 5
package.json 查看文件

@ -7799,9 +7799,9 @@
"pub": "vsce publish --yarn",
"rebuild": "yarn run reset && yarn run build",
"reset": "yarn run clean && yarn --frozen-lockfile",
"watch": "webpack --watch --mode development --info-verbosity verbose",
"watch:extension": "webpack --watch --mode development --config-name extension --info-verbosity verbose",
"watch:webviews": "webpack --watch --mode development --config-name webviews --info-verbosity verbose",
"watch": "webpack --watch --mode development",
"watch:extension": "webpack --watch --mode development --config-name extension",
"watch:webviews": "webpack --watch --mode development --config-name webviews",
"update-dts": "pushd \"src/@types\" && npx vscode-dts dev && popd",
"update-dts:master": "pushd \"src/@types\" && npx vscode-dts master && popd",
"update-emoji": "node ./generateEmojiShortcodeMap.js",
@ -7846,8 +7846,8 @@
"ts-loader": "8.0.4",
"typescript": "4.0.3",
"vsce": "1.81.1",
"webpack": "4.44.2",
"webpack": "5.0.0",
"webpack-bundle-analyzer": "3.9.0",
"webpack-cli": "3.3.12"
"webpack-cli": "4.0.0"
}
}

+ 19
- 20
webpack.config.js 查看文件

@ -159,9 +159,8 @@ function getExtensionConfig(mode, env) {
],
splitChunks: {
cacheGroups: {
vendors: false,
defaultVendors: false,
},
chunks: 'async',
},
},
externals: {
@ -191,15 +190,15 @@ function getExtensionConfig(mode, env) {
symlinks: false,
},
plugins: plugins,
stats: {
all: false,
assets: true,
builtAt: true,
env: true,
errors: true,
timings: true,
warnings: true,
},
// stats: {
// all: false,
// assets: true,
// builtAt: true,
// env: true,
// errors: true,
// timings: true,
// warnings: true,
// },
};
}
@ -415,14 +414,14 @@ function getWebviewsConfig(mode, env) {
symlinks: false,
},
plugins: plugins,
stats: {
all: false,
assets: true,
builtAt: true,
env: true,
errors: true,
timings: true,
warnings: true,
},
// stats: {
// all: false,
// assets: true,
// builtAt: true,
// env: true,
// errors: true,
// timings: true,
// warnings: true,
// },
};
}

+ 2381
- 1003
yarn.lock
文件差异内容过多而无法显示
查看文件


正在加载...
取消
保存