From 60d3f6568f6654c58c6c1a3ff5c9bdec5d4afcfb Mon Sep 17 00:00:00 2001 From: Mitsunee Date: Tue, 1 Jun 2021 18:12:13 +0200 Subject: [PATCH] enable astroturf altLoader See https://github.com/4Catalyzer/astroturf/issues/705#issuecomment-851833739 The altLoader is a (temporary/beta?) workaround for webpack 5 support until it is finished. --- next.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 8d72670..9521074 100644 --- a/next.config.js +++ b/next.config.js @@ -7,7 +7,14 @@ module.exports = () => ({ webpack: config => { config.module.rules.push({ test: /\.js$/, - use: ["astroturf/loader"] + use: [ + { + loader: "astroturf/loader", + options: { + useAltLoader: true + } + } + ] }); return config;