8000 fix(nuxt): exempt nitro from import protections (#31246) · nuxt/nuxt@d5588db · GitHub
[go: up one dir, main page]

8000 Skip to content

Commit d5588db

Browse files
committed
fix(nuxt): exempt nitro from import protections (#31246)
1 parent 4f067f6 commit d5588db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/core/nitro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
424424
ImpoundPlugin.rollup({
425425
cwd: nuxt.options.rootDir,
426426
patterns: createImportProtectionPatterns(nuxt, { context: 'nitro-app' }),
427-
exclude: [/core[\\/]runtime[\\/]nitro[\\/](?:handlers|utils)/, ...sharedPatterns],
427+
exclude: [/node_modules[\\/]nitro(?:pack)?(?:-nightly)?[\\/]|core[\\/]runtime[\\/]nitro[\\/](?:handlers|utils)/, ...sharedPatterns],
428428
}),
429429
)
430430

0 commit comments

Comments
 (0)
0