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
refactor: drop orphaned sync loader chain; guard dist against stale artifacts
Two follow-ups from PR #784 review:
1. Remove `loadSync`, `_loadUserAppSync`, `_tryRequireSync`. Deleting
`src/handler.cjs` in the previous commit removed the only consumers of
the synchronous loader chain. `loadSync` was never re-exported from the
public `src/index.ts` entry point, no tests reference it, and the only
internal import (`src/handler.mjs`) uses the async `load()`. The three
functions and the `loadSync` re-export in `src/runtime/index.ts` are
now dead code, so drop them.
2. Defensive cleanup in `scripts/update_dist_version.sh`: explicitly
`rm -f dist/handler.js dist/handler.cjs` before copying handler.mjs.
`tsc` does not clean stale files in `dist/` between incremental
builds, so a leftover `handler.js` from a prior build of an earlier
ref could resurface and silently re-introduce the resolver bug this
PR is fixing. The publish scripts already do `rm -rf ./dist` before
`yarn build`, so this is purely a guard for local dev builds.
0 commit comments