🐛 The bug
Running nuxt build fails during the server build with:
`
[UNLOADABLE_DEPENDENCY] Could not load #build/nuxt-scripts-speedcurve-snippet
`
This happens even though SpeedCurve is not configured in scripts.registry. It looks like @nuxt/scripts still auto-imports useScriptSpeedCurve, whose runtime imports #build/nuxt-scripts-speedcurve-snippet, but that template is only generated when config.registry.speedcurve is enabled.
🛠️ To reproduce
xx
🌈 Expected behavior
the virtual snippet module should either always be generated with an empty fallback, or useScriptSpeedCurve should not be auto-imported/bundled unless SpeedCurve is configured.
ℹ️ Additional context
No response
🐛 The bug
Running nuxt build fails during the server build with:
`
[UNLOADABLE_DEPENDENCY] Could not load #build/nuxt-scripts-speedcurve-snippet
`
This happens even though SpeedCurve is not configured in scripts.registry. It looks like @nuxt/scripts still auto-imports useScriptSpeedCurve, whose runtime imports #build/nuxt-scripts-speedcurve-snippet, but that template is only generated when config.registry.speedcurve is enabled.
🛠️ To reproduce
xx
🌈 Expected behavior
the virtual snippet module should either always be generated with an empty fallback, or useScriptSpeedCurve should not be auto-imported/bundled unless SpeedCurve is configured.
ℹ️ Additional context
No response