Closed Bielik20 closed 2 months ago
I wonder if this is related to #12782?
@MarcieMarc425 Hmm, I don't think so. With optimization: false
it still does NOT include DepClass
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
Still an issue, I have checked with recent version. Interestingly enough @nrwl/rspack works fine with SWC.
i am facing the same issue, can someone guide?
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
Haven't checked for the long time but I don't think it is resolved.
Checked it on latest and it is resolved. See the demo here: https://github.com/jaysoo/issue12845
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
main.ts
dep.ts
Current Behavior
✅ Running
@nrwl/webpack:webpack
with"compiler": "tsc"
includesDepClass
in bundle.❌ Running
@nrwl/webpack:webpack
with"compiler": "swc"
excludesDepClass
from bundle.Expected Behavior
DepClass
should be included in bundle.According to https://github.com/swc-project/swc/pull/3459 this should be fixed on the side of swc already.
Steps to Reproduce
PR example: https://github.com/nrwl/nx-examples/pull/240
Run
yarn nx run di:build:tsc
- ✅DepClass
is included.yarn nx run di:build:swc
- ❌DepClass
is NOT included.Environment
Related issues