You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently runtime size is really large(11KB after minify and tree shake), we need to optimize the size.
What does the proposed API look like?
Optimize strategies:
remove minimal runtime for runtime, concat all runtime modules like rollup/esbuild
rewrite runtime core with lower syntax version that do not need any syntax downgrade or polyfill(Except Promise), and the runtime code bundle should not contain any polyfill
inject runtime functions in need, if the bundle do not need to load resources dynamically, then runtime resource loader should be removed from runtime.
runtime module's name and internal helper name should be shorten, for example @swc/heplers/_/xxxxx can be shorten to _x, module id s2441d31 can be shorten to s as long as s is not occupied by other modules. if s is occupied, then s2 should be used.
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
Currently runtime size is really large(11KB after minify and tree shake), we need to optimize the size.
What does the proposed API look like?
Optimize strategies:
@swc/heplers/_/xxxxx
can be shorten to_x
, module ids2441d31
can be shorten tos
as long ass
is not occupied by other modules. ifs
is occupied, thens2
should be used.The text was updated successfully, but these errors were encountered: