@jsenv/plugin-react 1.5.47 → 1.5.49
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": "1.5.
|
|
3
|
+
"version": "1.5.49",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/plugin-transform-react-jsx": "7.25.9",
|
|
25
25
|
"@babel/plugin-transform-react-jsx-development": "7.25.9",
|
|
26
|
-
"@jsenv/ast": "6.
|
|
26
|
+
"@jsenv/ast": "6.4.0",
|
|
27
27
|
"@jsenv/plugin-commonjs": "2.9.2",
|
|
28
28
|
"@jsenv/sourcemap": "1.2.27",
|
|
29
29
|
"@jsenv/url-meta": "8.5.2",
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { applyBabelPlugins } from "@jsenv/ast";
|
|
6
6
|
import { jsenvPluginCommonJs } from "@jsenv/plugin-commonjs";
|
|
7
|
-
import {
|
|
7
|
+
import { createMagicSource } from "@jsenv/sourcemap";
|
|
8
8
|
import { URL_META } from "@jsenv/url-meta";
|
|
9
|
-
|
|
10
9
|
import { jsenvPluginReactRefreshPreamble } from "./jsenv_plugin_react_refresh_preamble.js";
|
|
11
10
|
|
|
12
11
|
export const jsenvPluginReact = ({
|
|
@@ -167,7 +166,7 @@ import.meta.hot.accept(__react_refresh__.acceptCallback);`);
|
|
|
167
166
|
const result = magicSource.toContentAndSourcemap();
|
|
168
167
|
return {
|
|
169
168
|
content: result.content,
|
|
170
|
-
sourcemap:
|
|
169
|
+
sourcemap: map,
|
|
171
170
|
// "no sourcemap is better than wrong sourcemap":
|
|
172
171
|
// I don't know exactly what is resulting in bad sourcemaps
|
|
173
172
|
// but I suspect hooknames or prefresh to be responsible
|