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
Already have a PoC for this done – using Babel, but can be anything.
The idea is to remove the Router and regexparam code entirely from the output, even though the Router itself is < 900 bytes and regexparam is less than 400b.
This was a driving feature for #82 – which unfortunately couldn't be part of the initial #94 work. Tried to make worktop.build entirely with swc/core, but not feasible at this time.
Requires AST traversal and modifications. Hoping for evanw/esbuild#1297 (comment) but may end up having to write my own TS parser or bringing in Babel 😖 Major overkill for data/tooling that's already there.
The text was updated successfully, but these errors were encountered:
Already have a PoC for this done – using Babel, but can be anything.
The idea is to remove the
Router
andregexparam
code entirely from the output, even though theRouter
itself is < 900 bytes andregexparam
is less than 400b.This was a driving feature for #82 – which unfortunately couldn't be part of the initial #94 work. Tried to make
worktop.build
entirely with swc/core, but not feasible at this time.Requires AST traversal and modifications. Hoping for evanw/esbuild#1297 (comment) but may end up having to write my own TS parser or bringing in Babel 😖 Major overkill for data/tooling that's already there.
The text was updated successfully, but these errors were encountered: