Closed
Description
🆒 Your use case
I had an occasion during build, where a connection error occurred when fetching from unpkg.com, and the bundled script became an error HTML instead of javascript.
(See additional info)
🆕 The solution you'd like
Bundle from local npm/pnpm, which is much more secure in my opinion.
🔍 Alternatives you've considered
Alternatively, stop the build if there is a connection error.
ℹ️ Additional info
[@nuxt/scripts 11:06:17 AM] ├─ https://unpkg.com/[email protected]/build/pannellum.js → /_scripts/pjUWCueFMU.js (0.00 kB br)
html of the error in the bundle script