github web-infra-dev/rsbuild v2.0.7

2 hours ago

Highlights

Web Worker Query Imports

Rsbuild now supports importing worker scripts with ?worker, ?worker&inline, and ?inline&worker:

import MyWorker from './worker.ts?worker';
import InlineWorker from './worker.ts?worker&inline';

const worker = new MyWorker();
const inlineWorker = new InlineWorker({ name: 'inline-worker' });

Automatic Dependency Externalization

output.autoExternal reads dependencies from the root package.json and generates output.externals rules for matching packages and subpath imports. This is useful for Node.js and SSR bundles where runtime dependencies should stay external.

export default {
  output: {
    target: 'node',
    autoExternal: true,
  },
};

What's Changed

New Features 🎉

Performance 🚀

Bug Fixes 🐞

Refactor 🔨

Document 📖

Other Changes

New Contributors

Full Changelog: v2.0.6...v2.0.7

Don't miss a new rsbuild release

NewReleases is sending notifications on new releases.