Skip to content

Commit ccf0727

Browse files
authored
Use node:url in default vite.config.ts (#344)
By default, Deno does not allow importing bare node modules outside of `node_modules/` directories. This replaces the import from `url` with an import from `node:url` to make it easier for Deno users to use the Tanstack Start template.
1 parent c0fefef commit ccf0727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/create/src/frameworks/react/project/base/vite.config.ts.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { paraglideVitePlugin } from "@inlang/paraglide-js"
66
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
77
import viteReact from '@vitejs/plugin-react'
88
import viteTsConfigPaths from 'vite-tsconfig-paths'
9-
import { fileURLToPath, URL } from 'url'
9+
import { fileURLToPath, URL } from 'node:url'
1010
import tailwindcss from "@tailwindcss/vite"
1111
<% for(const integration of integrations.filter(i => i.type === 'vite-plugin')) { %><%- integrationImportContent(integration) %>
1212
<% } %>

0 commit comments

Comments
 (0)