@jsenv/plugin-preact 1.6.29 → 1.6.30

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": "1.6.29",
3
+ "version": "1.6.30",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@ import {
9
9
  parseHtml,
10
10
  stringifyHtmlAst,
11
11
  } from "@jsenv/ast";
12
- import { composeTwoSourcemaps, createMagicSource } from "@jsenv/sourcemap";
12
+ import { createMagicSource } from "@jsenv/sourcemap";
13
13
  import { URL_META } from "@jsenv/url-meta";
14
14
 
15
15
  export const jsenvPluginPreact = ({
@@ -172,7 +172,9 @@ export const jsenvPluginPreact = ({
172
172
  source: "jsenv_preact",
173
173
  });
174
174
  code = afterJsxReplace.content;
175
- map = await composeTwoSourcemaps(map, afterJsxReplace.sourcemap);
175
+ // can't do this: ths resulting sourcemap is wrong by a few lines
176
+ // (3-4) and would makes debugging experience close to horrible
177
+ // map = await composeTwoSourcemaps(map, afterJsxReplace.sourcemap);
176
178
  }
177
179
  if (refreshEnabled) {
178
180
  const hasReg = /\$RefreshReg\$\(/.test(code);