@jsenv/plugin-preact 1.8.3 → 1.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-preact",
3
- "version": "1.8.3",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,6 +8,9 @@
8
8
  "directory": "packages/related/plugin-preact"
9
9
  },
10
10
  "license": "MIT",
11
+ "engines": {
12
+ "node": "^22.18.0 || >=24.11.0"
13
+ },
11
14
  "exports": {
12
15
  ".": {
13
16
  "import": "./src/main.js"
@@ -21,10 +24,9 @@
21
24
  "@jsenv/core": "*"
22
25
  },
23
26
  "dependencies": {
24
- "@babel/plugin-transform-react-jsx": "7.29.7",
25
- "@babel/plugin-transform-react-jsx-development": "7.29.7",
26
- "@babel/plugin-transform-react-jsx-source": "7.29.7",
27
- "@jsenv/ast": "6.9.3",
27
+ "@babel/plugin-transform-react-jsx": "8.0.1",
28
+ "@babel/plugin-transform-react-jsx-development": "8.0.1",
29
+ "@jsenv/ast": "6.10.0",
28
30
  "@jsenv/sourcemap": "1.4.3",
29
31
  "@jsenv/url-meta": "8.5.7",
30
32
  "@prefresh/babel-plugin": "0.5.3",
@@ -129,13 +129,13 @@ export const jsenvPluginPreact = ({
129
129
  {
130
130
  runtime: "automatic",
131
131
  importSource: "preact",
132
+ // babel 8 folded "@babel/plugin-transform-react-jsx-source"
133
+ // into this option of the development plugin
134
+ ...(urlInfo.context.dev ? { sourceSelf: true } : {}),
132
135
  },
133
136
  ],
134
137
  ]
135
138
  : []),
136
- ...(jsxEnabled && urlInfo.context.dev
137
- ? ["@babel/plugin-transform-react-jsx-source"]
138
- : []),
139
139
  ...(hookNamesEnabled ? ["babel-plugin-transform-hook-names"] : []),
140
140
  ...(refreshEnabled ? ["@prefresh/babel-plugin"] : []),
141
141
  ],