@jsenv/plugin-react 0.2.3 → 0.2.6
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-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"test": "node --conditions=development ./scripts/test.mjs"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/plugin-transform-react-jsx": "7.
|
|
28
|
-
"@babel/plugin-transform-react-jsx-development": "7.
|
|
29
|
-
"@jsenv/ast": "1.1.
|
|
30
|
-
"@jsenv/plugin-commonjs": "0.3.
|
|
27
|
+
"@babel/plugin-transform-react-jsx": "7.18.6",
|
|
28
|
+
"@babel/plugin-transform-react-jsx-development": "7.18.6",
|
|
29
|
+
"@jsenv/ast": "1.1.2",
|
|
30
|
+
"@jsenv/plugin-commonjs": "0.3.2",
|
|
31
31
|
"@jsenv/sourcemap": "1.0.1",
|
|
32
32
|
"@jsenv/url-meta": "7.0.0",
|
|
33
33
|
"react-refresh": "0.14.0"
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"react": "18.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
+
"@jsenv/core": "../../",
|
|
40
41
|
"react": "18.2.0",
|
|
41
42
|
"react-dom": "18.2.0"
|
|
42
43
|
}
|
|
@@ -142,6 +142,10 @@ import.meta.hot.accept(__react_refresh__.acceptCallback)`)
|
|
|
142
142
|
return {
|
|
143
143
|
content: result.content,
|
|
144
144
|
sourcemap: await composeTwoSourcemaps(map, result.sourcemap),
|
|
145
|
+
// "no sourcemap is better than wrong sourcemap":
|
|
146
|
+
// I don't know exactly what is resulting in bad sourcemaps
|
|
147
|
+
// but I suspect hooknames or prefresh to be responsible
|
|
148
|
+
sourcemapIsWrong: jsxEnabled && refreshEnabled,
|
|
145
149
|
}
|
|
146
150
|
},
|
|
147
151
|
},
|