github Anber/wyw-in-js @wyw-in-js/shared@1.0.0

latest releases: @wyw-in-js/bun@1.0.3, @wyw-in-js/transform@1.0.3, @wyw-in-js/vite@1.0.3...
2 days ago

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.

Patch 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/shared now passes importOverrides/root through the evaluator config so the shaker can keep or mock side-effect imports when configured.

    Note: eval bundles for __wywPreval now drop import '...'; 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 via importOverrides:

    • { 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.
  • 61fb173: Fix TypeScript consumer builds by shipping @types/debug as a dependency (public .d.ts imports debug).

  • 64b7698: Prevent concurrent transforms from reusing cached actions with different handler instances by stabilizing resolvers across bundlers.

  • 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).

  • 2a8ab79: Extend tagResolver with a third meta argument (sourceFile, resolvedSource) so custom tag processors can be resolved reliably.

Don't miss a new wyw-in-js release

NewReleases is sending notifications on new releases.