12.2.0-rc.1
Pre-release
Pre-release
💥 Breaking Change
js-post-buildnow passes the correct output file path based onin-sourceconfiguration: whenin-source: true, the path next to the source file is passed; whenin-source: false, the path in thelib/<module>/directory is passed. Additionally, stdout and stderr from the post-build command are now logged. #8190js-post-buildcommand now runs in the directory containing therescript.jsonwhere it is defined, instead of the unpredictable build invocation directory. This provides consistent behavior in monorepos. #8195
🚀 New Feature
- Reanalyze: add scoped
@@live/@@deadannotations for marking module/file sections as live or dead. #8197
🐛 Bug fix
- Reanalyze: fix reactive/server stale results when cross-file references change without changing dead declarations (non-transitive mode). #8173
- Reanalyze: link record/variant label liveness across type re-exports (
type y = x = {...}). #8217 - Add duplicate package detection to rewatch. #8180
- Rewatch: do not warn about "reanalyze" config field. #8181
- Fix error when importing CommonJS runtime modules with
require(). #8194 - Rewatch: fix warnings from non-recompiled modules being lost during incremental builds in watch mode. #8216
💅 Polish
- Formatter no longer writes files when contents are already correctly formatted. #8209
- Build system: Only log verbose "Generating AST for module" when actually parsing. #8210
- Build system: Watch only source folders from build state instead of the entire project directory, and report missing configured source folders. #8219