Skip to content
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

Include an ESM version of ts-morph in the npm package #1279

Open
zachkirsch opened this issue May 15, 2022 · 1 comment
Open

Include an ESM version of ts-morph in the npm package #1279

zachkirsch opened this issue May 15, 2022 · 1 comment

Comments

@zachkirsch
Copy link

Is your feature request related to a problem? Please describe.

ts-morph is currently transpiled to CommonJS, so it can't be treeshaked by webpack (https://webpack.js.org/guides/tree-shaking/).

Describe the solution you'd like

It'd be great if the ts-morph package also included an esm bundle, so it can be used in esm modules and treeshaked!

Describe alternatives you've considered

@zachkirsch
Copy link
Author

zachkirsch commented May 15, 2022

Not sure if this would even help, since most of the size of including ts-morph comes from typescript (~10mb)

Related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant