this is project https://github.com/shenhaoguangDayDayUp/svelte
Looks like svelte+snowpack requires you to add all the babylon imported files for side effects in the knownEntrypoints section of the config,
Babylon’s modules still have side effects. True es-modules are side-effects free. And it does seem like snowpack attempts to be esm-only kind of builder.
I am not that familiar with snowpack and am reading about it right now, but since you have chosen this build tool, you might want to find out whether or not it supports side effects in es imports. if it doesn’t i would recommend choosing another build tool until we work on making babylon modules side-effect free.
OK,I will try webpack,I am not that familiar with snowpack too.