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

Add Support for Tree shaking #1

Open
anthonyjoeseph opened this issue Jun 3, 2021 · 1 comment · May be fixed by #24
Open

Add Support for Tree shaking #1

anthonyjoeseph opened this issue Jun 3, 2021 · 1 comment · May be fixed by #24
Labels
enhancement New feature or request

Comments

@anthonyjoeseph
Copy link

Something like this PR for fp-ts - which has now been implemented in io-ts and monocle-ts as well

@m-bock
Copy link

m-bock commented Jun 4, 2021

To me it seems like the new package.json "exports" field can help a lot here.
I have not tried it yet but looks like it makes postprocessing of the dist folder obsolete. We'd only need to build a lib and es6 version. And then from one global package.json the modules can be exported like explained in the blog post.

@m-bock m-bock added the enhancement New feature or request label Jun 8, 2021
@anthonyjoeseph anthonyjoeseph linked a pull request Apr 8, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants