Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
fix: still need custom webpack configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Jan 26, 2023
1 parent 1e7c443 commit e7327b4
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions 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,
},
};

0 comments on commit e7327b4

Please sign in to comment.