richardtallent / vite-plugin-singlefile

Vite plugin for inlining JavaScript and CSS resources
MIT License
810 stars 53 forks source link

Add config option to remove the unused vite module loader script. #26

Closed Greenheart closed 2 years ago

Greenheart commented 2 years ago

This uses a graceful fallback to avoid breaking if vite updates their module script in the future.

Config is currently opt-in, but could likely be the default option.

Closes #9 Closes #10

richardtallent commented 2 years ago

Thanks @Z33 and @Greenheart for pushing this forward! I haven't had a chance to try with my own projects (don't have any active ones using this), but making it optional is the right call, I think. The graceful fallback is also a good call.