Issue with Full Package Bundling
Just ran a little bundling test, and I see that some of my files are getting the entire effect package bundled. Is because the way I do imports? Or how can I fix this so only what is required is included?

await build({
plugins: [
tsconfigPaths(),
visualizer({
template: "treemap", // or sunburst
open: true,
gzipSize: true,
brotliSize: true,
filename: "analyse.html", // will be saved in project's root
}),
],
build: {
sourcemap: false,
outDir: "./extra",
lib: {
...scr,
formats: ["es"],
},
emptyOutDir: false,
},
configFile: false,
})