Reproduce runtime root ERM build output#147
Draft
mmkal wants to merge 2 commits into
Draft
Conversation
commit: |
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.
Summary
Replaces #142 with a focused repro of the real runtime-root packaging problem instead of hand-editing selected
usingsites in source.The new
scripts/repro-runtime-root-using-transform.shdoes three things:pnpm --filter sqlfu build.dist/index.jsimport graph.dist/*.jsfile as ES2022 through ESLint's parser.What It Shows
Current build output still contains explicit resource management syntax in the root runtime import graph:
The same script also runs an esbuild
target=es2022probe of the root graph, and that lowered output parses successfully. That supports the likely follow-up fix: keep ERM in authored TypeScript, then transform the built runtime output duringpnpm build.Verification
Expected today: exits 1 with the parse failures above.
Notes
PR #142 is closed. This PR intentionally does not implement the build transform; it gives the next PR a concrete failing signal.
Package size — packed 280.3 kB (no change)
Package size
dist/vendor/*.jsbundlesvendor/sha256.jsvendor/sql-formatter/*.jsvendor/sqlfu-sqlite-parser/*.jsvendor/standard-schema/*.jsvendor/typesql/*.jsMeasured with
npm pack --dry-run --jsononsqlfu(0.0.3-7 on main vs 0.0.3-7 on this PR).