@hyperframes/inspector 0.9.103 → 0.9.104

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/dist/live.js CHANGED
@@ -464,7 +464,14 @@ import { extname, join, posix, relative, resolve } from "node:path";
464
464
  import { createHash as createHash2 } from "node:crypto";
465
465
  import { parse as parse2 } from "acorn";
466
466
  import { Parser } from "htmlparser2";
467
+
468
+ // ../parsers/dist/postcss.js
467
469
  import postcss from "postcss";
470
+ function parseCss(css) {
471
+ return postcss.parse(css, { map: false });
472
+ }
473
+
474
+ // src/sources.ts
468
475
  import { TraceMap, originalPositionFor } from "@jridgewell/trace-mapping";
469
476
 
470
477
  // src/sourceDependencies.ts
@@ -765,7 +772,7 @@ var Sources = class {
765
772
  }
766
773
  addCss(file, text, offset) {
767
774
  try {
768
- postcss.parse(text).walkRules((rule) => {
775
+ parseCss(text).walkRules((rule) => {
769
776
  const start = rule.source?.start?.offset;
770
777
  const end = rule.source?.end?.offset;
771
778
  if (start != null && end != null)