diff --git a/packages/slice-machine/vite.config.ts b/packages/slice-machine/vite.config.ts index 09c7fc4daf..d604962d2d 100644 --- a/packages/slice-machine/vite.config.ts +++ b/packages/slice-machine/vite.config.ts @@ -11,6 +11,10 @@ export default defineConfig({ resolve: { alias: { "@": path.resolve(__dirname, "./src"), + unfetch: path.resolve( + __dirname, + "../../node_modules/unfetch/dist/unfetch.mjs", // fixes unfetch import issue (https://github.com/developit/unfetch/pull/164) + ), }, }, test: {