mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
fix(nuxt): exclude <srcDir>/index.html
from import protection (#26430)
This commit is contained in:
parent
57b8d977b9
commit
cca81bcae4
@ -131,7 +131,7 @@ async function initNuxt (nuxt: Nuxt) {
|
|||||||
const config = {
|
const config = {
|
||||||
rootDir: nuxt.options.rootDir,
|
rootDir: nuxt.options.rootDir,
|
||||||
// Exclude top-level resolutions by plugins
|
// Exclude top-level resolutions by plugins
|
||||||
exclude: [join(nuxt.options.rootDir, 'index.html')],
|
exclude: [join(nuxt.options.srcDir, 'index.html')],
|
||||||
patterns: nuxtImportProtections(nuxt)
|
patterns: nuxtImportProtections(nuxt)
|
||||||
}
|
}
|
||||||
addVitePlugin(() => ImportProtectionPlugin.vite(config))
|
addVitePlugin(() => ImportProtectionPlugin.vite(config))
|
||||||
|
Loading…
Reference in New Issue
Block a user