-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Exporting as ESM and CJS #181
Conversation
✅ Deploy Preview for any-viewer ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Should we convert this project to ESM insead of convert it for export?
I think it's better to split this in a separated PR |
yes, let's move it to another one. |
Let me check what's wrong. 👌 Sorry I was so busy. |
@@ -115,7 +109,7 @@ const dtsMatrix = (): RollupOptions[] => { | |||
cache, | |||
output: { | |||
file: resolve(outputDir, `${output}.d.ts`), | |||
format: 'es' | |||
format: 'umd' |
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.
should we just use cjs
instead?
About 2, I need to think and ask more about why they were provided at first. |
Can you move these 2 to another PR so we can merge that first?
And this can be another "sideEffects": false So this PR will focus on the changes of the bundling process and dropping the browser file (which I still can't decide yet.) |
Needed these changes #181 (comment) too |
Not sure if it is just me or what. I couldn't see the content of your comment 😵💫 |
Just check the review comments |
@anthonyalayo Sorry that we did a rebasing to remove some sensitive content from the history. I just rebased this PR to fix the history. I think we can close this first as most of the content has been split to other PRs. And we don't have a plan to drop the browser build. Is that ok? |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #181 +/- ##
==========================================
+ Coverage 87.63% 87.65% +0.01%
==========================================
Files 18 18
Lines 1982 1984 +2
Branches 358 358
==========================================
+ Hits 1737 1739 +2
Misses 245 245
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Sounds good! |
This presently does not build, but it's almost there. I'll need a bit of help @pionxzh @rtritto