-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
build: rollup port of #977 #984
build: rollup port of #977 #984
Conversation
hey @GerkinDev, thanks for this PR! Also, can you include the I'll test this guy as soon as I have time, if this one works better than esbuild for distribution files, we'll merge this one and close my PR :) |
ad84b6e
to
841208a
Compare
I got the feeling that the rollup config can be reworked to perform only one or 2 build(s) to several outputs, instead of 6 like currently. Do you want me to try it, or maybe in a later PR ? |
hey @GerkinDev I'm sorry for the delay, I'm very busy with my job in the past few days, I'll take a look at this PR as soon as I have free time. thank you so much for this PR! |
No problem @danielbarion . Yet, would you like me to do a deeper rework of rollup config? I can find a bit of time for this if you think it's relevant. |
@GerkinDev yeah, go ahead with the rollup config (what do you have in mind? 👀 ), also, I believe the source map will help the community with the debugging, so we can enable it too |
or
|
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.
hey @GerkinDev I'll test as soon as possible, today I released a beta version so everyone can test too.
thanks!
also, can you update the PR to generate the source map too, please?
Hi Daniel, no problem for sourcemaps & other things, I just didn't had the time since I'm currently away for work. But I did not forget, don't worry |
@GerkinDev can you update this branch with this commit, please? Also, I released this beta version:
or
That works on a Next 13 project using the experimental |
311d6ff
to
691b8b6
Compare
@GerkinDev can you check the test that is broken in node 16, please? |
Sry I was experimenting stuff to get rid of FYI pure CDN setup would look like this (without centralizing CDNs): <script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@floating-ui/core@1.2.5"></script>
<script src="https://cdn.jsdelivr.net/npm/@floating-ui/dom@1.2.5"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/classnames/2.3.2/index.min.js" integrity="sha512-GqhSAi+WYQlHmNWiE4TQsVa7HVKctQMdgUMA+1RogjxOPdv9Kj59/no5BEvJgpvuMTYw2JRQu/szumfVXdowag==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script crossorigin src="<your-cdn.com>/react-tooltip.umd.min.js"></script>
<link rel="stylesheet" href="<your-cdn.com>/react-tooltip.min.css"></link> I've found a way to make the Rollup config has been fully reworked. Bundles are just a bit (a few bytes) bigger than the original version, but all should work now. |
Oh, thanks but the I'll check the rollup build this week, thanks! |
I just wanted to find a way to test build outputs somehow, and I did not knew which documentation to use. I think I'm pretty much done here. Some global setup were affected, but you should not need to do anything different when working on this. In the worst case, tooling should clearly tell you what is missing: you just now need to |
oh, I see! new beta release with the latest commit of this branch:
or
|
Everything seems ok, we'll just have to go back on the open issues and check which are solved with this PR. |
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.
All good from my side too, thanks for letting us know @gabrieljablonski
@gabrieljablonski @GerkinDev I believe this PR is good to be merged, I just tested an example from one of the open issues and it's still breaking, but when upgrading Next.js to Can you guys please let me know if you agree or not with 👍🏻 👎🏻 ? Thanks! |
Fine by me. There are still a few other open issues that are related, but I'm fine with just revisiting them after the merge. |
Since issues existed before this PR, there is no real regression. Worst case scenario I see is that issues are not properly fixed, but that might be up to next.js team and not you guys. So as far as I'm concerned, LGTM. Thanks for the time took for in-situ checks @danielbarion . Don't hesitate to poke me if you need anything. |
This PR also includes some missing dependencies install & configuration, rollup returned warnings.
Build size results:
Rollup minified outputs are actually smaller.