We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6608948 commit b1c1989Copy full SHA for b1c1989
next.config.js
@@ -10,13 +10,20 @@ const config = {
10
output: "export",
11
reactStrictMode: false,
12
productionBrowserSourceMaps: true,
13
+ experimental: {
14
+ optimizePackageImports: ["reaflow"],
15
+ },
16
compiler: {
17
styledComponents: true,
18
},
- webpack: config => {
19
+ webpack: (config, { isServer }) => {
20
config.resolve.fallback = { fs: false };
21
config.output.webassemblyModuleFilename = "static/wasm/[modulehash].wasm";
- config.experiments = { asyncWebAssembly: true };
22
+ config.experiments = { asyncWebAssembly: true, layers: true };
23
+
24
+ if (!isServer) {
25
+ config.output.environment = { ...config.output.environment, asyncFunction: true };
26
+ }
27
28
return config;
29
0 commit comments