Repository navigation
chore(mini): single build output, consolidate scripts - #358
Conversation
|
something esbuild has been doing is, bundling resolvewithplus, so that esmock does not have any dependencies. It would be great to keep esmock as 0-dependencies. |
|
oh okay I see that is still being done...it is moved to the root package.json |
|
looks good... cloning it here to take a closer |
|
previously test-ci would test the minified scripts; it was testing exactly the sources that would be published |
I see, it was a little confusing having the minification step be implicit in testing CI. I can rework it so we're still testing the output though. |
|
looks good |
there were a few cases where the minified version was missing something or had some issue and CI did catch those, but because the loader is gone it might mostly be a non-issue now |
|
missing esmockCache is failing the tests for mini:src... I don't know why previous branches did not fail the same tests. Maybe the esmockCache tests could be removed or skipped. Or esmockCache could be defined on the 'esmock' exports so that it could be handled inside the test through the single 'esmock' import. |
68fbd39 to
e326e65
Compare
Yeah, I changed it to grab from the global cache variable since that's already defined |
e326e65 to
87d7582
Compare
87d7582 to
aedcaa3
Compare
The pretest minification step just build the minified |
|
should we merge? |
|
if you’re comfortable with the changes! |
|
okay will merge after the check passes |
Following up on #356 (comment)
This PR cleans up the minification step to only output a single
.jsfile, and consolidates somepackage.jsonscripts/GitHub Actions workflows to make it clearer when each step happens.Brings us down to ~20kb install size: