Major Changes
-
94c5efa: Release 1.0.0 introduces no breaking changes compared to previous releases.
This release establishes a stable baseline for future development, including upcoming releases focused on performance
and build-time optimizations.
Minor Changes
-
62fef83: Fix shaker keeping unused imports in eval bundles (named/namespace/side-effect imports), which could trigger build-time evaluation crashes (e.g.
@radix-ui/react-tooltip).@wyw-in-js/sharednow passesimportOverrides/rootthrough the evaluator config so the shaker can keep or mock side-effect imports when configured.Note: eval bundles for
__wywPrevalnow dropimport '...';side-effect imports by default, to avoid executing unrelated runtime code in Node.js during build. If you rely on a side-effect import at eval time, keep it or stub it viaimportOverrides:{ noShake: true }to keep the import (and disable tree-shaking for that dependency).{ mock: './path/to/mock' }to redirect the import to a mock module.
Patch Changes
- 7144b0c: Fix Babel TypeScript transform crashing on
declareclass fields by ensuringallowDeclareFieldsis enabled when using the TypeScript preset/plugin. - 0477b30: Fix export detection for array destructuring declarations (e.g.
export const [B] = ...). - fad6207: Fix config merging with
@babel/core@7.25.7by avoidingbabel-merge'sresolvePresetregression. - c26b337: Bump
happy-domdependency to^20.1.0. - 485fd7d: Preserve cached exports when evaluating only missing imports to avoid re-running unused code.
- 83d8915: Normalize multi-keyword
displayvalues (e.g.flex inline) before Stylis prefixing to avoid malformed CSS output. - 265a8d7: Fix
evaluate: trueexport caching so additional export requests don’t combine exports from different module executions. - 9715eee: Fix
export * frombeing dropped when the reexport target is ignored (e.g. viaextensions). - 45ef60a: Fix missing CSS emission for tags inside named function expressions (e.g.
export const a = function a() { return css\`; }`). - 908968b: Avoid emitting
/*#__PURE__*/on non-call/new expressions to prevent Rollup warnings during builds. - d2f5472: Fix shaker removing referenced bindings when dropping unused exports (e.g. object shorthand
{ fallback }). - 06e80fb: Fix stale imported object exports during incremental rebuilds when
features.globalCacheis enabled. - c024a34: Avoid repeated evaluator re-runs for large, statically evaluatable modules by promoting them to wildcard
onlyon first entrypoint creation. - fcb118a: Add a
keepCommentsoption for the stylis preprocessor to preserve selected CSS comments. - 64b7698: Prevent concurrent transforms from reusing cached actions with different handler instances by stabilizing resolvers across bundlers.
- d4cefc9: Avoid leaving empty Promise callbacks when dangerous globals are removed.
- 485fd7d: fix: drop unused imports when named and default exports share a binding
- ac44dcc: Avoid retaining unused import specifiers during shaking so eval doesn't load unrelated deps.
- 782e67f: Drop property assignments on shaken exports so eval doesn't touch Storybook globals.
- 870b07b: Handle unknown/dynamic import specifiers without transform-time crashes, add
importOverrides(mock/noShake/unknown policy), and emit a deduped warning only when eval reaches Node resolver fallback (bundler-native where possible). - 26ec4a3: Fix handling of import resource queries (e.g.
?raw,?url) to avoid crashes and allow minimal eval-time loaders. - 2a8ab79: Extend
tagResolverwith a thirdmetaargument (sourceFile,resolvedSource) so custom tag processors can be resolved reliably. - 4c268ad: Support Vite's
import.meta.env.*during build-time evaluation. - Updated dependencies
- @wyw-in-js/processor-utils@1.0.0
- @wyw-in-js/shared@1.0.0