@jsenv/plugin-preact 1.6.31 → 1.6.33

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.6.31",
3
+ "version": "1.6.33",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,8 +24,9 @@
24
24
  "babel-plugin-transform-hook-names": "1.0.2",
25
25
  "@babel/plugin-transform-react-jsx": "7.25.9",
26
26
  "@babel/plugin-transform-react-jsx-development": "7.25.9",
27
+ "@babel/plugin-transform-react-jsx-source": "7.25.9",
27
28
  "@jsenv/ast": "6.4.1",
28
- "@jsenv/sourcemap": "1.2.28",
29
+ "@jsenv/sourcemap": "1.2.29",
29
30
  "@jsenv/url-meta": "8.5.2",
30
31
  "@prefresh/babel-plugin": "0.5.1",
31
32
  "@prefresh/core": "1.5.3",
@@ -35,7 +36,7 @@
35
36
  "@jsenv/core": "*"
36
37
  },
37
38
  "devDependencies": {
38
- "preact": "10.25.1",
39
+ "preact": "10.25.4",
39
40
  "react-redux": "9.2.0",
40
41
  "redux": "5.0.1"
41
42
  }
@@ -128,6 +128,9 @@ export const jsenvPluginPreact = ({
128
128
  ],
129
129
  ]
130
130
  : []),
131
+ ...(jsxEnabled && urlInfo.context.dev
132
+ ? ["@babel/plugin-transform-react-jsx-source"]
133
+ : []),
131
134
  ...(hookNamesEnabled ? ["babel-plugin-transform-hook-names"] : []),
132
135
  ...(refreshEnabled ? ["@prefresh/babel-plugin"] : []),
133
136
  ],
@@ -172,7 +175,7 @@ export const jsenvPluginPreact = ({
172
175
  source: "jsenv_preact",
173
176
  });
174
177
  code = afterJsxReplace.content;
175
- // can't do this: ths resulting sourcemap is wrong by a few lines
178
+ // can't compose import maps: the resulting sourcemap is wrong by a few lines
176
179
  // (3-4) and would makes debugging experience close to horrible
177
180
  // map = await composeTwoSourcemaps(map, afterJsxReplace.sourcemap);
178
181
  }