@hyperfrontend/builder
Changelog§
Every published release, newest first. The latest is v0.2.2.
7 releases, newest first
v0.2.24 fixes
Compare the commits behind v0.2.2 on GitHub ↗Bug Fixes
- bind a rollup-renamed import before looking its base name up by owner
- strip the source-only manifest fields from the emitted package
- omit a source export the build cannot map instead of aliasing it to the root
- refuse to clean an output path outside the workspace
v0.2.12 fixes
Compare the commits behind v0.2.1 on GitHub ↗Bug Fixes
- give bundled cjs deps' esm chunks their named exports and module-scope globals
- bound dedupe ownership to entry-reachable modules and classify only free refs
v0.2.01 feature · 1 fix
Features
- fail the build on cross-entry type references the target entry never exports
Compare the commits behind v0.2.0 on GitHub ↗Bug Fixes
- export the entry types the emitted cross-entry declarations reference
v0.1.31 fix
Compare the commits behind v0.1.3 on GitHub ↗Bug Fixes
- declare tslib and the rollup platform bindings for cold installs
v0.1.22 fixes
Compare the commits behind v0.1.2 on GitHub ↗Bug Fixes
- strip lint pragmas from non-minified bundle outputs
- anchor the TypeScript include filter to the workspace root
v0.1.11 fix
Compare the commits behind v0.1.1 on GitHub ↗Bug Fixes
- self-locate workers beside the running module to make the builder embeddable
v0.1.037 features · 15 fixes
Features
- clean project outputPath before emit, guarded to dist/
- default EsmConfig/CjsConfig.bundleWorkspaceDeps to true when omitted
- wire BuildConfig.verbose into logger level (debug vs error)
- use HEAD in license URLs and fix stale spec-file type errors
- bail require-destructure to namespace from for non-ident/reserved-word export names, fixing invalid const { default } / { foo-bar } chunks
- tighten CJS dep output; prune bare-require demand, emit const bindings, and detructure namespace requires on acylic edges
- strip ordinary comments from _dependencies/** chenks, preserving @PURE and legal annotations
- sweep empty dirs package-wide at end of bundle phase
- recognize pure .bind of global-rooted callees so dead bind-initialized dep exports prune
- tree-shake unread slots from kept frozen-namespace objects across ESM and CJS deps
- recognize aliased pure freezes and @PURE calls so more dead initializers prune
- treat pure Object.freeze of fresh literals as side-effect-free so dead frozen namespaces collapse
- stop shipping JS sourcemaps from prod builds by default
- reflect package.json#files from emitted output as the final build step
- deliver CDN bundle via unpkg/jsdelivr only, drop ./bundle from exports
- add reflective files-allowlist that walks the emitted output tree
- prune dead hoisted dependencies d.ts via type-graph reachability
- strip dead code from hoisted dependencies
- prune unreachable _dependencies chunks for bundle output
- route per-entry workspace-dep imports through _dependencies/ chunks
- hoist workspace deps to _dependencies/, dedup per-entry d.ts via sibling-externalize plugin
- externalize typescript, auto-wire bin, prune orphan d.ts, default licenses, gate tarball via files allowlist
- posject inject workerization
- workerize bin script bundling via dispatchRollupWorker
- set rollup CJS output.interop='compat' to fix default imports of externalized bundled deps
- per-entry rollup workerization
- pipeline-wide memory observability + SEA fuse-split fix
- self-containment via bundleAllDeps + worker-isolated pre-pass
- instrument runBundlePhase with optional memory monitor checkpoints
- add hf-build cli bin
- add preset and build() facade
- add native bin subdomain (Node SEA)
- add bin subdomain (JS)
- add package subdomain
- add bundle subdomain
- add models and memory subpaths
- scaffold publishable library shell
Bug Fixes
- emit const (not var) require bindings in entry/bin CJS via rollup constBindings
- include \r in strip-comments blank class so CRLF whole-line comments collapse
- demote native-bin memory/timing diagnostics from log.info to log.debug
- scope orphan-sween bail to dep chunks, stop first-party dynamic imports disabling _dependencies/ prune
- add missing WorkspaceBundleDep / WorkspaceDepHoistPolicy to root barrel
- reScan template substitutions in comment strip to keep backtick polarity, fixing chunk corruption
- flatten shared internal d.ts dirs for libraries without a root entry
- dedup CJS shared internals symmetrically and drop dead hoisted imports
- prune SEA build intermediates after injection so only the runtime binary ships
- recurse orphan-dts prune over whole tree via entry-reachability so dist == shipped
- flatten per-entry d.ts for workspace-only deps and guard orphan-prune against referenced siblings
- preserve internal non-entry src subdirectories when flattening declarations
- add type casting that would otherwise be inferred but rollup typescript plugin is struggling with
- bundle subpath-only workspace deps via granular hoisting default
- route pre-pass _dependencies/ chunks through canonical externalize plugin