Vite bundler: async-script-loader doesn't appear to be written in CJS...
svenjacobs opened this issue · 1 comments
svenjacobs commented
Using your library in a SvelteKit project with Vite, I get the following warning:
@beyonk/async-script-loader doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
chrisfromredfin commented
My answer for this was to include it in ssr.noExternal in my svelte.config.js; but currently having trouble porting that to vite.config.js...