stealjs / steal-tools

Build easy. Load fast.

Home Page:https://stealjs.com/docs/steal-tools.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deps bundle gets tree shaken

pYr0x opened this issue · comments

in development you didn't want hundert of files been loaded by steal. therefore development-bundles came.
but something like this:

async function buildDependenciesBundle() {
  return stealTools.bundle({
    main: project+"/web/main",
    config: path.join(__dirname, "package.json!npm")
  }, {
    dest: path.join(__dirname, "/assets/js"),
    filter: "node_modules/**/*",
    treeShaking: false
  });
}

didnt work.

in my main.js i have one line import "can"; in development-bundles tree shaking should be turned off by default and should not remove any "dead" code

That makes sense... I wonder why the dev bundle tests are passing though...