Skip to content

Commit

Permalink
fix(nuxt): exclude <srcDir>/index.html from import protection (#26430)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 21, 2024
1 parent 57b8d97 commit cca81bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/core/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async function initNuxt (nuxt: Nuxt) {
const config = {
rootDir: nuxt.options.rootDir,
// Exclude top-level resolutions by plugins
exclude: [join(nuxt.options.rootDir, 'index.html')],
exclude: [join(nuxt.options.srcDir, 'index.html')],
patterns: nuxtImportProtections(nuxt)
}
addVitePlugin(() => ImportProtectionPlugin.vite(config))
Expand Down

0 comments on commit cca81bc

Please sign in to comment.