Repository navigation
v2.0.0
Upgrade Guide
Pure ESM package
@rspack/plugin-preact-refresh is now pure ESM (the same as Rspack 2.0).
Default export removed
The plugin now provides a named export only.
- import PreactRefreshRspackPlugin from '@rspack/plugin-preact-refresh';
+ import { PreactRefreshRspackPlugin } from '@rspack/plugin-preact-refresh';Default option changes
The default extension filter has moved from include to test.
Before:
test:undefinedinclude:/\.([cm]js|[jt]sx?|flow)$/i
Now:
test:/\.(?:js|jsx|mjs|cjs|ts|tsx|mts|cts)$/include:undefined
This makes custom include safer: when include points to a directory, the plugin still only applies to supported JS/TS module extensions by default.
What's Changed
- chore: build before stage publish by @chenjiahan in #67
- chore(deps): update all non-major dependencies by @renovate[bot] in #68
- feat!: make package pure ESM by @chenjiahan in #69
- feat!: remove default plugin export by @chenjiahan in #70
- feat!: add test option to preact refresh plugin by @chenjiahan in #71
Full Changelog: v1.1.6...v2.0.0