chore(playground): allow vite to reference npm directory
MODIFY
website/playground/vite.config.ts
website/playground/vite.config.ts
-import { defineConfig } from "vite";
+import { defineConfig, searchForWorkspaceRoot } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
@@ -12,4 +12,10 @@ export default defineConfig({
resolve: {
dedupe: ["@codemirror/state"],
},
+ server: {
+ fs: {
+ // https://vitejs.dev/config/server-options.html#server-fs-allow
+ allow: [searchForWorkspaceRoot(process.cwd()), "../../npm/wasm-web"],
+ },
+ },
});

chore(playground): allow vite to reference npm directory (#3106)