Change8

assets@0.3.0

Breaking Changes
📦 remixView on GitHub →
1 breaking🔧 2 symbols

Summary

This release introduces a breaking change to `createAssetServer` by requiring a `basePath` option and updates the asset server to automatically serve the `@oxc-project/runtime` package.

⚠️ Breaking Changes

  • The signature of `createAssetServer()` has changed: it now requires a `basePath` option. Consequently, `fileMap` URL patterns are now interpreted relative to this new `basePath`.

Migration Steps

  1. When calling `createAssetServer()`, add the `basePath` option and adjust `fileMap` entries to be relative to this new base path, as shown in the example.
  2. Manual installation of `@oxc-project/runtime` is no longer required as it is now served automatically by the asset server.

Affected Symbols