Parcourir la source

Upgrades to Webpack 5

main
Eric Amodio il y a 4 ans
Parent
révision
458d95c525
3 fichiers modifiés avec 2405 ajouts et 1028 suppressions
  1. +5
    -5
      package.json
  2. +19
    -20
      webpack.config.js
  3. +2381
    -1003
      yarn.lock

+ 5
- 5
package.json Voir le fichier

@ -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 Voir le fichier

@ -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
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


Chargement…
Annuler
Enregistrer