Skip to content

Tag: rollup

Rollup : single html output

I’m trying to package my Svelte app into a single Html file output. I’ve managed to get the desired output with a configuration based on that answer : Output Single HTML File from Svelte Project With “npm run dev” everything is fine with the first build, but I’m having issues fol…

Error when import a node_module on svelte

i have to create a module to use on my application, but when I import that in my major project i have this error I have not the folder dist/index.js, in the guide I followed I did not see that it was necessary to make the package, also in another project i did not have these problems. My version of

What’s the reason Rollup build Js into two files cjs and es

Recently I saw a package that has two built files. I am curious why there are two Js files. When I import the package which file will be used and how it determine which file to be imported? Answer The file you get when doing a default import is documented in the package.json of that package (as in most npm