github wyw-in-js/wyw-in-js @wyw-in-js/turbopack-loader@2.5.2

latest releases: @wyw-in-js/esbuild@2.5.1, @wyw-in-js/nextjs@2.5.2
2 hours ago

Patch Changes

  • ed2b607: Fix CSS source map line offsets for multi-line rules. The map generated by @wyw-in-js/transform placed every rule on its own line by index, which is wrong as soon as a rule spans several lines: a multi-line comment kept with keepComments, a backslash-newline string continuation, or preprocessor: 'none'. The generated line is now derived from the emitted CSS. In @wyw-in-js/turbopack-loader, wrapping selectors in :global() changes the line count (a split selector list duplicates its body, a multi-line selector collapses to one line), so the loader now remaps the generated lines of that map to the wrapped CSS. In query output mode the map is returned to Turbopack from the loader, which is the only way Turbopack picks up a CSS source map; it does not read sourceMappingURL comments.

    @wyw-in-js/turbopack-loader gains source-map as a runtime dependency for the rebuild. Sidecar output mode keeps the inline sourceMappingURL comment, which Turbopack ignores; only query mode reaches Turbopack. Turbopack itself drops loader source maps in production builds unless productionBrowserSourceMaps is enabled, so the map is visible in next dev and in builds with that flag.

  • Updated dependencies

    • @wyw-in-js/transform@2.5.1

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

NewReleases is sending notifications on new releases.