Skip to content

Commit 0a80e4b

Browse files
committed
npm: resolutions are external
1 parent bf0bc0e commit 0a80e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vite/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function config(): UserConfig {
2020
{
2121
find: /^(npm:.*)$/,
2222
replacement: "$1",
23-
customResolver: resolveNpmImport
23+
customResolver: (source) => ({id: resolveNpmImport(source), external: true})
2424
},
2525
{
2626
find: /^jsr:(.*)$/,

0 commit comments

Comments
 (0)