diff --git a/templates/skeleton/vite.config.ts b/templates/skeleton/vite.config.ts index b4ce1b26b8..293f35ed4a 100644 --- a/templates/skeleton/vite.config.ts +++ b/templates/skeleton/vite.config.ts @@ -2,8 +2,11 @@ import {defineConfig} from 'vite'; import {hydrogen} from '@shopify/hydrogen/vite'; import {oxygen} from '@shopify/mini-oxygen/vite'; import {vitePlugin as remix} from '@remix-run/dev'; +import {installGlobals} from '@remix-run/node'; import tsconfigPaths from 'vite-tsconfig-paths'; +installGlobals({nativeFetch: true}); + export default defineConfig({ plugins: [ hydrogen(),