Upgrade vue-cli to version 5 (#594)

* Upgrade to Vue CLI 5 (fails to compile)

* Upgrade versions with last few weeks of changes

* Updated to fork-ts-checker-webpack-plugin 7.2.3

* Remove package.json overrides in lieu of the fixed fork-ts-checker-webpack-plugin@6.5.1

* Fix svg importing

* Comments

* For debugging only: added infrastructureLogging to vue.config.js

* Now works on Windows, waiting on fork-ts-checker-webpack-plugin backport if possible

* Switch to the fixed fork-ts-checker-webpack-plugin@6.5.2

* Fix license checker build compilation

Co-authored-by: 0hypercube <0hypercube@gmail.com>
This commit is contained in:
Keavon Chambers 2022-04-26 01:47:13 -07:00
parent 265cc0fe32
commit 92ee3bbad3
8 changed files with 7381 additions and 17145 deletions

View file

@ -75,6 +75,8 @@ module.exports = {
emitError: true,
outputFilename: "third-party-licenses.txt",
outputWriter: formatThirdPartyLicenses,
// Workaround for failure caused in WebPack 5: https://github.com/microsoft/license-checker-webpack-plugin/issues/25#issuecomment-833325799
filter: /(^.*[/\\]node_modules[/\\]((?:@[^/\\]+[/\\])?(?:[^@/\\][^/\\]*)))/,
})
);
@ -85,6 +87,9 @@ module.exports = {
.rule("svg")
.uses.clear()
.end()
// Required (since upgrading vue-cli to v5) to stop the default import behavior, as documented in:
// https://webpack.js.org/configuration/module/#ruletype
.type("javascript/auto")
// Add vue-loader as a loader for Vue single-file components
// https://www.npmjs.com/package/vue-loader
.use("vue-loader")
@ -96,6 +101,11 @@ module.exports = {
.loader("./vue-svg-loader")
.end();
},
configureWebpack: {
experiments: {
asyncWebAssembly: true,
},
},
};
function formatThirdPartyLicenses(jsLicenses) {