mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
fix: wasm warning message, try optimizePackageImports on reaflow
This commit is contained in:
parent
6608948e2e
commit
b1c1989e60
@ -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;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user