github remix-run/remix assets@0.2.0
assets v0.2.0

latest releases: ui@0.1.0, terminal@0.1.0, static-middleware@0.4.7...
4 hours ago

Minor Changes

  • BREAKING CHANGE: target configuration is now configured at the top level with an object format, supporting es version targets along with browser version targets.

    Browser targets are configured with string versions such as target: { chrome: '109', safari: '16.4' }, and scripts can specify es as a year of 2015 or higher such as target: { es: '2020' }.

    To migrate existing script configuration, replace scripts.target options like scripts: { target: 'es2020' } with target: { es: '2020' }.

  • BREAKING CHANGE: Shared compiler options are now provided at the top level of createAssetServer(). Use sourceMaps, sourceMapSourcePaths, and minify directly on the asset server options instead of being nested under scripts. This allows these options to also be used for styles as well as scripts.

    To migrate existing configuration, move scripts.minify, scripts.sourceMaps, scripts.sourceMapSourcePaths to the top-level asset server options.

  • createAssetServer() now compiles and serves .css files alongside scripts, including local @import rewriting, fingerprinting, and shared compiler options for minification, source maps, and browser compatibility targeting.

Patch Changes

  • Fix matching of dot-prefixed files and directories in allow and deny globs

  • Improve asset server import errors to include the resolved file path when a resolved import is later rejected by validation for allow/deny rules, supported file types and fileMap configuration.

Don't miss a new remix release

NewReleases is sending notifications on new releases.