Effect CommunityEC
Effect Community2y ago
50 replies
danielo515

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,
  })
Screenshot_2024-05-09_at_11.42.59.png
Was this page helpful?