@jsenv/plugin-preact 0.2.2 → 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-preact",
3
- "version": "0.2.2",
3
+ "version": "0.2.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,8 +8,7 @@
8
8
  "directory": "packages/jsenv-plugin-preact"
9
9
  },
10
10
  "publishConfig": {
11
- "access": "public",
12
- "registry": "https://registry.npmjs.org"
11
+ "access": "public"
13
12
  },
14
13
  "type": "module",
15
14
  "exports": {
@@ -26,9 +25,9 @@
26
25
  },
27
26
  "dependencies": {
28
27
  "babel-plugin-transform-hook-names": "1.0.2",
29
- "@babel/plugin-transform-react-jsx": "7.17.12",
30
- "@babel/plugin-transform-react-jsx-development": "7.16.7",
31
- "@jsenv/ast": "1.1.1",
28
+ "@babel/plugin-transform-react-jsx": "7.18.6",
29
+ "@babel/plugin-transform-react-jsx-development": "7.18.6",
30
+ "@jsenv/ast": "1.1.2",
32
31
  "@jsenv/sourcemap": "1.0.1",
33
32
  "@jsenv/url-meta": "7.0.0",
34
33
  "@prefresh/babel-plugin": "0.4.3",
@@ -37,11 +36,12 @@
37
36
  },
38
37
  "peerDependencies": {
39
38
  "@jsenv/core": "*",
40
- "preact": "10.8.2"
39
+ "preact": "10.9.0"
41
40
  },
42
41
  "devDependencies": {
43
- "preact": "10.8.2",
42
+ "@jsenv/core": "../../",
43
+ "preact": "10.9.0",
44
44
  "react-redux": "8.0.2",
45
45
  "redux": "4.2.0"
46
46
  }
47
- }
47
+ }
@@ -24,7 +24,6 @@ export const jsenvPluginPreact = ({
24
24
  },
25
25
  hookNamesInclude = {
26
26
  "./**/*": true,
27
- "./**/node_modules/": false,
28
27
  },
29
28
  preactDevtoolsDuringBuild = false,
30
29
  } = {}) => {
@@ -175,6 +174,10 @@ import.meta.hot.accept(__preact_refresh__.acceptCallback)`)
175
174
  return {
176
175
  content: result.content,
177
176
  sourcemap: await composeTwoSourcemaps(map, result.sourcemap),
177
+ // "no sourcemap is better than wrong sourcemap":
178
+ // I don't know exactly what is resulting in bad sourcemaps
179
+ // but I suspect hooknames or prefresh to be responsible
180
+ sourcemapIsWrong: jsxEnabled && refreshEnabled,
178
181
  }
179
182
  },
180
183
  },