Skip to content

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

feat: add turbopack resolve alias for fs and create empty shim

AykutSarac9bcc7fd5ad80
diff --git a/next.config.js b/next.config.js
index 4dc1ca4b..353ba8c9 100644
--- a/next.config.js
+++ b/next.config.js
@@ -12,7 +12,13 @@ const config = {
compiler: {
styledComponents: true,
},
- turbopack: {},
+ turbopack: {
+ resolveAlias: {
+ fs: {
+ browser: "./src/shims/empty.ts",
+ },
+ },
+ },
webpack: (config, { isServer }) => {
config.resolve.fallback = { fs: false };
config.output.webassemblyModuleFilename = "static/wasm/[modulehash].wasm";
diff --git a/shims/empty.ts b/shims/empty.ts
new file mode 100644
index 00000000..cb0ff5c3
--- /dev/null
+++ b/shims/empty.ts
@@ -0,0 +1 @@
+export {};