rspack-contrib / rspack-plugin-preact-refresh

Preact refresh plugin for Rspack
MIT License
6 stars 0 forks source link

fix: reduce alias and allow to use esm bundles of preact #6

Closed chenjiahan closed 3 weeks ago

chenjiahan commented 3 weeks ago
  1. Use dirname(require.resolve('preact/package.json')) to alias preact runtime modules. This change can allow users to use the ESM bundles of preact.
  2. Use /node_modules[\\/]preact[\\/]/ to exclude preact internal packages. This change can reduce rule conditions and improve build performance.