swc
swc copied to clipboard
Drop `print()` API from `@swc/core`
It's causing too many issues
- The memory leak of
parseis due to the existence of codegen() API - We do not have good usecase for it.
Do you mean this one?
https://github.com/swc-project/swc/blob/main/packages/core/src/index.ts#L450
I'd like to help. Should I send a PR for removing this?
Yeap, but I need to figure out a way to
- deprecate it, while supporting it for v1
- remove the feature from v2
- publish v2 as nightly
Maybe cut out a new branch for v1?
For example: https://github.com/TanStack/query/
This can help maintain v1 separately in the future if patch releases need to be made.