Skip to content

bundle from local npm instead of external unpkg.com to prevent connection error #233

Closed
@andrewspy

Description

@andrewspy

🆒 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

_C__Users_admin_Downloads_pjUWCueFMU html

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions