-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
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
fix(turbopack): Fix edge cases of tree shaking #7986
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Ignored Deployments
|
🟢 Turbopack Benchmark CI successful 🟢Thanks |
✅ This change can build |
|
The test case with added issues is a wrong test case, but I'm not sure what should I do.
export { notCompiled } from "./not-compiled.js";
export { notExisting } from "./not-existing.js";
export { notExecuted } from "./not-executed.js";
export * from "./not-executed.js";
export * from "./a.js";
export * from "./b.js";
export const local = "local"; We import export { notCompiled } from "./not-compiled.js";
export { notExisting } from "./not-existing.js";
export { notExecuted } from "./not-executed.js"; because we have several So, I want to get this PR merged without it and work on it as a separate PR. This is for two purposes:
Problematic case
export * from "package-star";
export * from "./side-effect.js";
import "./side-effect2.js";
export const outer = "outer";
import { effect } from "./check-side-effect.js";
effect("index.js"); We import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't fully reviewed it, but if it passes all tests it sounds fine to merge.
We can continue to iterate on it in future PRs
This includes an update to lightningcss to 1.0.0-alpha.57 vercel/turborepo#7986 vercel/turborepo#8218 vercel/turborepo#8222
This includes an update to lightningcss to 1.0.0-alpha.57 vercel/turborepo#7986 vercel/turborepo#8218 vercel/turborepo#8222
### Description Closes PACK-2966 ### Testing Instructions I'll add some tests --------- Co-authored-by: Tobias Koppers <[email protected]>
### Description Closes PACK-2966 ### Testing Instructions I'll add some tests --------- Co-authored-by: Tobias Koppers <[email protected]>
### Description Closes PACK-2966 ### Testing Instructions I'll add some tests --------- Co-authored-by: Tobias Koppers <[email protected]>
### Description Closes PACK-2966 ### Testing Instructions I'll add some tests --------- Co-authored-by: Tobias Koppers <[email protected]>
This includes an update to lightningcss to 1.0.0-alpha.57 vercel/turborepo#7986 vercel/turborepo#8218 vercel/turborepo#8222
Description
Closes PACK-2966
Testing Instructions
I'll add some tests