From e7327b4166186db7f3b66cd1373b623ab700adc1 Mon Sep 17 00:00:00 2001 From: David Huggins-Daines Date: Thu, 26 Jan 2023 17:07:55 -0500 Subject: [PATCH] fix: still need custom webpack configuration see https://github.com/angular/angular-cli/issues/24616 --- custom-webpack.config.js | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/custom-webpack.config.js b/custom-webpack.config.js index 6bda625..d2b8af7 100644 --- a/custom-webpack.config.js +++ b/custom-webpack.config.js @@ -1,16 +1,11 @@ module.exports = { - // Eliminate emscripten's node junk when using webpack - resolve: { - fallback: { - crypto: false, - fs: false, - path: false, + // Stop webpack from munging import.meta.url (this should be the default in + // Angular but unfortunately it isn't) + module: { + parser: { + javascript: { + importMeta: false, + }, }, }, - // ARGH! More node junk! WTF! - node: { - global: false, - __filename: false, - __dirname: false, - }, };