Skip to content

Commit

Permalink
refactor: only keep https:// as external
Browse files Browse the repository at this point in the history
(other externals are already handled)
  • Loading branch information
pi0 committed Jan 30, 2025
1 parent 70635d7 commit 0b4f46a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/presets/deno/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ const denoServer = defineNitroPreset(
preview: "deno task --config ./deno.json start",
},
rollupConfig: {
external: (id) =>
id.startsWith("https://") ||
id.startsWith("node:") ||
builtinModules.includes(id),
external: (id) => id.startsWith("https://"),
output: {
hoistTransitiveImports: false,
},
Expand Down

0 comments on commit 0b4f46a

Please sign in to comment.