async-script-loader
async-script-loader copied to clipboard
Vite bundler: async-script-loader doesn't appear to be written in CJS...
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.
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...