@rsbuild/plugin-preact 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -127,6 +127,14 @@ const pluginPreact = (userOptions = {})=>({
127
127
  tools: {
128
128
  swc: {
129
129
  jsc: {
130
+ experimental: {
131
+ plugins: usePrefresh ? [
132
+ [
133
+ src_require.resolve('@swc/plugin-prefresh'),
134
+ {}
135
+ ]
136
+ ] : void 0
137
+ },
130
138
  parser: {
131
139
  syntax: 'typescript',
132
140
  // enable supports for JSX/TSX compilation
package/dist/index.js CHANGED
@@ -26,6 +26,14 @@ const pluginPreact = (userOptions = {})=>({
26
26
  tools: {
27
27
  swc: {
28
28
  jsc: {
29
+ experimental: {
30
+ plugins: usePrefresh ? [
31
+ [
32
+ src_require.resolve('@swc/plugin-prefresh'),
33
+ {}
34
+ ]
35
+ ] : void 0
36
+ },
29
37
  parser: {
30
38
  syntax: 'typescript',
31
39
  // enable supports for JSX/TSX compilation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-preact",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Preact plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,16 +24,17 @@
24
24
  "dependencies": {
25
25
  "@prefresh/core": "^1.5.2",
26
26
  "@prefresh/utils": "^1.2.0",
27
- "@rspack/plugin-preact-refresh": "^1.1.0"
27
+ "@rspack/plugin-preact-refresh": "^1.1.0",
28
+ "@swc/plugin-prefresh": "^3.0.3"
28
29
  },
29
30
  "devDependencies": {
30
31
  "@types/node": "18.x",
31
32
  "preact": "^10.24.3",
32
33
  "typescript": "^5.6.3",
33
- "@rsbuild/core": "1.0.18"
34
+ "@rsbuild/core": "1.0.19"
34
35
  },
35
36
  "peerDependencies": {
36
- "@rsbuild/core": "1.x || ^1.0.1-rc.0"
37
+ "@rsbuild/core": "1.x"
37
38
  },
38
39
  "publishConfig": {
39
40
  "access": "public",