Repository navigation
build: ship a smaller package - #248
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
baseballyama
force-pushed
the
refine/runtime-perf
branch
from
November 20, 2026 21:01
3291db3 to
b9b65a3
Compare
baseballyama
force-pushed
the
refine/plugin-tarball
branch
from
November 20, 2026 21:01
13b21bc to
2fb4f9b
Compare
baseballyama
force-pushed
the
refine/plugin-tarball
branch
2 times, most recently
from
November 20, 2026 21:27
a94ca98 to
f1a910a
Compare
Drop source maps and internal .d.ts files from dist, minify the injected browser runtime (whitespace and comments only), and stop minifying the plugin's own code so stack traces stay readable. Tests now run the minified runtime text.
baseballyama
force-pushed
the
refine/plugin-tarball
branch
from
November 20, 2026 21:34
f1a910a to
f61caae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #247.
Shrinks the published package from 375,434 B packed / 1,146,444 B unpacked (126 files) to 242,218 B packed / 718,843 B unpacked (86 files).
exports.engines.Behavior changes: the served runtime text is now minified instead of a verbatim copy of the source. The unit and reactivity test projects now run on the minified text through the same
build/minify-runtime.ts(restart-data.test.ts still loads the plugin through its own Vite server and gets the unminified text). The build-time loader registers the runtime files as watch files, sopnpm dev(vite build --watch) still rebuilds when they change. A new test checks that the minified wrapper keeps every export name, andruntime-parent.test.tsnow strips module syntax using the AST instead of line by line.