@jsenv/plugin-react 1.5.48 → 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.48",
3
+ "version": "1.5.49",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -4,9 +4,8 @@
4
4
 
5
5
  import { applyBabelPlugins } from "@jsenv/ast";
6
6
  import { jsenvPluginCommonJs } from "@jsenv/plugin-commonjs";
7
- import { composeTwoSourcemaps, createMagicSource } from "@jsenv/sourcemap";
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: await composeTwoSourcemaps(map, result.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