@jsenv/plugin-react 0.1.5 → 0.1.8

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.1.5",
3
+ "version": "0.1.8",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,13 +14,12 @@
14
14
  "type": "module",
15
15
  "exports": {
16
16
  ".": {
17
- "import": "./main.js"
17
+ "import": "./src/main.js"
18
18
  },
19
19
  "./*": "./*"
20
20
  },
21
21
  "files": [
22
- "/src/",
23
- "/main.js"
22
+ "/src/"
24
23
  ],
25
24
  "scripts": {
26
25
  "test": "node --conditions=development ./scripts/test.mjs"
@@ -28,9 +27,9 @@
28
27
  "dependencies": {
29
28
  "@babel/plugin-transform-react-jsx": "7.17.3",
30
29
  "@babel/plugin-transform-react-jsx-development": "7.16.7",
31
- "@jsenv/plugin-commonjs": "0.0.14",
30
+ "@jsenv/plugin-commonjs": "0.0.16",
32
31
  "@jsenv/url-meta": "7.0.0",
33
- "@jsenv/utils": "1.8.10",
32
+ "@jsenv/utils": "1.9.0",
34
33
  "react-refresh": "0.13.0"
35
34
  },
36
35
  "peerDependencies": {
@@ -39,8 +38,6 @@
39
38
  },
40
39
  "devDependencies": {
41
40
  "@jsenv/assert": "2.5.4",
42
- "@jsenv/core": "../../",
43
- "playwright": "1.20.2",
44
41
  "react": "17.0.2",
45
42
  "react-dom": "17.0.2"
46
43
  }
@@ -12,7 +12,8 @@ import { jsenvPluginReactRefreshPreamble } from "./jsenv_plugin_react_refresh_pr
12
12
 
13
13
  export const jsenvPluginReact = ({
14
14
  asJsModuleLogLevel,
15
- hotRefreshPatterns,
15
+ jsxInclude,
16
+ refreshInclude,
16
17
  } = {}) => {
17
18
  return [
18
19
  jsenvPluginCommonJs({
@@ -28,7 +29,8 @@ export const jsenvPluginReact = ({
28
29
  }),
29
30
  jsenvPluginReactRefreshPreamble(),
30
31
  jsenvPluginJsxAndRefresh({
31
- hotRefreshPatterns,
32
+ jsxInclude,
33
+ refreshInclude,
32
34
  }),
33
35
  ]
34
36
  }
package/src/main.js ADDED
@@ -0,0 +1 @@
1
+ export { jsenvPluginReact } from "./jsenv_plugin_react.js"
package/main.js DELETED
@@ -1 +0,0 @@
1
- export { jsenvPluginReact } from "./src/jsenv_plugin_react.js"