We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// ==> index.ts <== import { foo } from "./foo"; console.log(foo());
// ==> foo/foo.js <== console.log('foo/foo');
// ==> foo/index.js <== export function foo() { console.log(1); } export function bar() { return require("./foo.js"); }
after tree-shaking, function bar is removed, but there is still a edge to foo/foo.js, so it will be kept in the module graph.
bar
foo/foo.js
expect the foo/foo.js removed from the module graph
after tree-shaking , analyze the shaken ast, to found if the dynamic and cjs-require are still in use.
The text was updated successfully, but these errors were encountered:
@goo-yyh 增加一个 foo 在环上的 case,
Sorry, something went wrong.
你好,这个issue有人认领吗
@wjywy 非常欢迎 PR
No branches or pull requests
problem
after tree-shaking, function
bar
is removed, but there is still a edge tofoo/foo.js
, so it will be kept in the module graph.expect the
foo/foo.js
removed from the module graphsolution
after tree-shaking , analyze the shaken ast, to found if the dynamic and cjs-require are still in use.
The text was updated successfully, but these errors were encountered: