New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(nuxt): deprecate scanning directory index plugins #18418
Conversation
Β Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
Marking PR as draft as I'm aware you're considering the right approach. Ping me if I can help at any point. |
Public Notes on working through PRPotential points of interest - nuxt/packages/nuxt/src/app/nuxt.ts Line 241 in ac682fd
nuxt/packages/nuxt/src/core/templates.ts Line 87 in ac682fd
nuxt/packages/kit/src/plugin.ts Line 72 in ac682fd
Whoops, I think I had forgotten that config The smaller, less reliable solve: if (/\/plugins\/[^/]+\/index\.[^/]+$/i.test(plugin.src) && !useNuxt().options.plugins.includes(plugin.src)) {
console.warn(`...`)
} |
β¦lugins-consistent-file-scanning
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Daniel Roe <daniel@roe.dev>
Transferred from nuxt/framework#10090