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

chore: Simplify compat build script #4677

Merged
merged 2 commits into from
Feb 17, 2025
Merged

Conversation

rschristian
Copy link
Member

Working on some changes to build output in v11, came across this and figured it was worth addressing separately.

Whilst Microbundle does support multi-entries, it does so incorrectly when combined with the --cwd flag in that the cwd isn't passed to tiny-glob. This has tiny-glob resolving from the original cwd (so root of our repo) which src/scheduler.js fails. src/index.js works only as this happens to match core. As such, the src/scheduler.js input is stripped out & not built as an additional entry.

Bundling it separately isn't necessary though, this script has no imports so all microbundle does is minify the ~10loc. None of the other compat entries are bundled either & I think we're pretty happy with how that works?

@coveralls
Copy link

coveralls commented Feb 16, 2025

Coverage Status

coverage: 99.618%. remained the same
when pulling 46b4ac5 on chore/compat-built-script
into 4072d89 on main.

@rschristian rschristian merged commit 501d7e6 into main Feb 17, 2025
5 checks passed
@rschristian rschristian deleted the chore/compat-built-script branch February 17, 2025 19:24
@JoviDeCroock JoviDeCroock mentioned this pull request Feb 18, 2025
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

Successfully merging this pull request may close these issues.

None yet

3 participants