@jsenv/plugin-preact 1.6.29 → 1.6.31
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.
|
|
3
|
+
"version": "1.6.31",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,8 +24,8 @@
|
|
|
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
|
-
"@jsenv/ast": "6.4.
|
|
28
|
-
"@jsenv/sourcemap": "1.2.
|
|
27
|
+
"@jsenv/ast": "6.4.1",
|
|
28
|
+
"@jsenv/sourcemap": "1.2.28",
|
|
29
29
|
"@jsenv/url-meta": "8.5.2",
|
|
30
30
|
"@prefresh/babel-plugin": "0.5.1",
|
|
31
31
|
"@prefresh/core": "1.5.3",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@jsenv/core": "*"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"preact": "10.25.
|
|
39
|
-
"react-redux": "9.
|
|
38
|
+
"preact": "10.25.1",
|
|
39
|
+
"react-redux": "9.2.0",
|
|
40
40
|
"redux": "5.0.1"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseHtml,
|
|
10
10
|
stringifyHtmlAst,
|
|
11
11
|
} from "@jsenv/ast";
|
|
12
|
-
import {
|
|
12
|
+
import { createMagicSource } from "@jsenv/sourcemap";
|
|
13
13
|
import { URL_META } from "@jsenv/url-meta";
|
|
14
14
|
|
|
15
15
|
export const jsenvPluginPreact = ({
|
|
@@ -172,7 +172,9 @@ export const jsenvPluginPreact = ({
|
|
|
172
172
|
source: "jsenv_preact",
|
|
173
173
|
});
|
|
174
174
|
code = afterJsxReplace.content;
|
|
175
|
-
|
|
175
|
+
// can't do this: ths resulting sourcemap is wrong by a few lines
|
|
176
|
+
// (3-4) and would makes debugging experience close to horrible
|
|
177
|
+
// map = await composeTwoSourcemaps(map, afterJsxReplace.sourcemap);
|
|
176
178
|
}
|
|
177
179
|
if (refreshEnabled) {
|
|
178
180
|
const hasReg = /\$RefreshReg\$\(/.test(code);
|