@jsenv/plugin-react 1.2.20 → 1.2.23

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,11 +1,11 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-react",
3
- "version": "1.2.20",
3
+ "version": "1.2.23",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/jsenv/core",
8
- "directory": "packages/jsenv-plugin-react"
8
+ "directory": "packages/related/plugin-react"
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public"
@@ -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.21.5",
27
+ "@babel/plugin-transform-react-jsx": "7.22.3",
28
28
  "@babel/plugin-transform-react-jsx-development": "7.18.6",
29
- "@jsenv/ast": "4.0.0",
30
- "@jsenv/plugin-commonjs": "2.0.7",
29
+ "@jsenv/ast": "4.0.3",
30
+ "@jsenv/plugin-commonjs": "2.0.8",
31
31
  "@jsenv/sourcemap": "1.0.10",
32
32
  "@jsenv/url-meta": "8.1.0",
33
33
  "react-refresh": "0.14.0"
@@ -36,7 +36,6 @@
36
36
  "@jsenv/core": "*"
37
37
  },
38
38
  "devDependencies": {
39
- "@jsenv/core": "../../",
40
39
  "react": "18.2.0",
41
40
  "react-dom": "18.2.0"
42
41
  }
@@ -106,7 +106,10 @@ const jsenvPluginJsxAndRefresh = ({
106
106
  ];
107
107
  const { code, map } = await applyBabelPlugins({
108
108
  babelPlugins,
109
- urlInfo,
109
+ input: urlInfo.content,
110
+ inputIsJsModule: true,
111
+ inputUrl: urlInfo.url,
112
+ outputUrl: urlInfo.generatedUrl,
110
113
  });
111
114
  const magicSource = createMagicSource(code);
112
115
  if (jsxEnabled) {