Skip to content

Commit

Permalink
fix: wasm warning message, try optimizePackageImports on reaflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutSarac committed Dec 2, 2024
1 parent 6608948 commit b1c1989
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down

0 comments on commit b1c1989

Please sign in to comment.