Browse Source

Upgrades to Webpack 5

main
Eric Amodio 4 years ago
parent
commit
458d95c525
3 changed files with 2405 additions and 1028 deletions
  1. +5
    -5
      package.json
  2. +19
    -20
      webpack.config.js
  3. +2381
    -1003
      yarn.lock

+ 5
- 5
package.json View File

@ -7799,9 +7799,9 @@
"pub": "vsce publish --yarn", "pub": "vsce publish --yarn",
"rebuild": "yarn run reset && yarn run build", "rebuild": "yarn run reset && yarn run build",
"reset": "yarn run clean && yarn --frozen-lockfile", "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": "pushd \"src/@types\" && npx vscode-dts dev && popd",
"update-dts:master": "pushd \"src/@types\" && npx vscode-dts master && popd", "update-dts:master": "pushd \"src/@types\" && npx vscode-dts master && popd",
"update-emoji": "node ./generateEmojiShortcodeMap.js", "update-emoji": "node ./generateEmojiShortcodeMap.js",
@ -7846,8 +7846,8 @@
"ts-loader": "8.0.4", "ts-loader": "8.0.4",
"typescript": "4.0.3", "typescript": "4.0.3",
"vsce": "1.81.1", "vsce": "1.81.1",
"webpack": "4.44.2",
"webpack": "5.0.0",
"webpack-bundle-analyzer": "3.9.0", "webpack-bundle-analyzer": "3.9.0",
"webpack-cli": "3.3.12"
"webpack-cli": "4.0.0"
} }
} }

+ 19
- 20
webpack.config.js View File

@ -159,9 +159,8 @@ function getExtensionConfig(mode, env) {
], ],
splitChunks: { splitChunks: {
cacheGroups: { cacheGroups: {
vendors: false,
defaultVendors: false,
}, },
chunks: 'async',
}, },
}, },
externals: { externals: {
@ -191,15 +190,15 @@ function getExtensionConfig(mode, env) {
symlinks: false, symlinks: false,
}, },
plugins: plugins, 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, symlinks: false,
}, },
plugins: plugins, 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
File diff suppressed because it is too large
View File


Loading…
Cancel
Save