From 3fdfe0f526800009fb3cc0cce62297ce29efeda5 Mon Sep 17 00:00:00 2001 From: Matthew O'Connell Date: Thu, 28 Sep 2023 16:43:05 +0200 Subject: [PATCH] fix(build): add .mjs config override --- config-overrides.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config-overrides.js diff --git a/config-overrides.js b/config-overrides.js new file mode 100644 index 00000000..5b0ae3a9 --- /dev/null +++ b/config-overrides.js @@ -0,0 +1,9 @@ +module.exports = function override(config) { + config.module.rules.push({ + test: /\.mjs$/, + include: /node_modules/, + type: 'javascript/auto', + }); + + return config; +};