Fixing some issues with webpack 5

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-04-13 15:40:37 +02:00
parent fca8b49c39
commit f18a2f5165
4 changed files with 64 additions and 3 deletions
+1
View File
@@ -110,6 +110,7 @@
"ts-loader": "^8.0.17",
"typescript": "^4.0.3",
"url-loader": "^4.1.0",
"util": "^0.12.3",
"webpack": "^5.0.0",
"webpack-dev-server": "^3.11.2",
"webpack-node-externals": "^3.0.0",
+1 -1
View File
@@ -187,7 +187,7 @@ export async function createConfig(
path: false,
https: false,
http: false,
util: false,
util: require.resolve('util/'),
},
plugins: [
new LinkedPackageResolvePlugin(paths.rootNodeModules, externalPkgs),
@@ -51,6 +51,13 @@ export const transforms = (options: TransformOptions): Transforms => {
production: !isDev,
},
},
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
},
{
test: [/\.icon\.svg$/],
use: [