deps bundle gets tree shaken
pYr0x opened this issue · comments
Julian commented
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
Matthew Phillips commented
That makes sense... I wonder why the dev bundle tests are passing though...
Matthew Phillips commented
PR: #1048