Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix: wasm warning message, try optimizePackageImports on reaflow

AykutSaracb1c1989e6056
diff --git a/next.config.js b/next.config.js
index afca1c61..c7becdff 100644
--- a/next.config.js
+++ b/next.config.js
@@ -10,13 +10,20 @@ const config = {
output: "export",
reactStrictMode: false,
productionBrowserSourceMaps: true,
+ experimental: {
+ optimizePackageImports: ["reaflow"],
+ },
compiler: {
styledComponents: true,
},
- webpack: config => {
+ webpack: (config, { isServer }) => {
config.resolve.fallback = { fs: false };
config.output.webassemblyModuleFilename = "static/wasm/[modulehash].wasm";
- config.experiments = { asyncWebAssembly: true };
+ config.experiments = { asyncWebAssembly: true, layers: true };
+
+ if (!isServer) {
+ config.output.environment = { ...config.output.environment, asyncFunction: true };
+ }
return config;
},