github remix-run/remix assets@1.0.4
assets v1.0.4

one hour ago

Patch Changes

  • Fix full-page HMR reloads in WebKit rendering stale JavaScript when a module had been preloaded. With HMR enabled, the asset server now sends Vary: * on compiled JavaScript responses to WebKit so the browser always requests current modules. This can add a request for a preloaded dependency, and because the Cache API rejects responses with Vary: *, a service worker can't cache these development scripts in WebKit. (#12392)

  • Account for injected HMR setup code in source maps for modules that use import.meta.hot. (#12402)

  • Improve compilation throughput, warm response latency, and memory usage across scripts, styles, and cached file transforms. Cold getScriptEntry() and getPreloads() calls now compute the optimized module graph once and resolve/emit dependencies concurrently, warm getScriptEntry() calls avoid structuredClone, watch mode no longer clears the oxc-resolver cache on every module with a bare import, and active browser HMR channels no longer spawn a second chokidar watcher. (#12469)

    Reduce memory retention by releasing intermediate transform state after emit when watch is false, bounding emitted script and style caches with an LRU byte limit, skipping duplicate .map assets when sourceMaps is 'inline', and avoiding redundant body hashing on createFsFileCache() hits. Asset responses now include Content-Length on 200 and HEAD responses and Cache-Control on 304 responses.

  • Fix asset source maps attributing explicitly unmapped generated code to preceding authored source locations after loader transforms or minification. (#12397)

  • Bumped @remix-run/* dependencies:

Don't miss a new remix release

NewReleases is sending notifications on new releases.