hazo_core 2.0.2 → 2.0.3
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/debug/index.d.ts.map +1 -1
- package/dist/debug/index.js +14 -5
- package/dist/debug/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/debug/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,aAAa;IAC5B,oDAAoD;IACpD,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC9C;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/debug/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,aAAa;IAC5B,oDAAoD;IACpD,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC9C;AAqFD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAUtD"}
|
package/dist/debug/index.js
CHANGED
|
@@ -8,14 +8,23 @@ let hazoDebugModule = null;
|
|
|
8
8
|
// Fire-and-forget: populates hazoDebugModule as soon as the microtask queue runs.
|
|
9
9
|
// Using dynamic import() with bundler-ignore hints so Turbopack/webpack/Vite never
|
|
10
10
|
// try to statically resolve this optional peer dep and emit "Module not found"
|
|
11
|
-
// errors/warnings.
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
11
|
+
// errors/warnings.
|
|
12
|
+
//
|
|
13
|
+
// The specifier MUST be a variable, not a string literal. Vite's import-analysis
|
|
14
|
+
// (which Vitest also runs through) only honours `@vite-ignore` when it can't
|
|
15
|
+
// statically determine the specifier — es-module-lexer resolves a literal
|
|
16
|
+
// `import('hazo_debug')` to a concrete specifier regardless of any ignore
|
|
17
|
+
// comment, so Vite still tries to resolve it and hard-fails the whole module
|
|
18
|
+
// graph when the package isn't installed, bypassing this try/catch entirely.
|
|
19
|
+
// Routing the name through `hazoDebugPkg` makes the specifier unanalyzable,
|
|
20
|
+
// which is what actually makes Vite skip resolution (the `@vite-ignore` here
|
|
21
|
+
// only suppresses its "cannot analyze" warning, per the same file's
|
|
22
|
+
// `optional_import` in `../utils/index.ts`).
|
|
23
|
+
const hazoDebugPkg = 'hazo_debug';
|
|
15
24
|
void (async () => {
|
|
16
25
|
try {
|
|
17
26
|
hazoDebugModule = (await import(
|
|
18
|
-
/* turbopackIgnore: true */ /* webpackIgnore: true */ /* @vite-ignore */
|
|
27
|
+
/* turbopackIgnore: true */ /* webpackIgnore: true */ /* @vite-ignore */ hazoDebugPkg));
|
|
19
28
|
}
|
|
20
29
|
catch {
|
|
21
30
|
// hazo_debug not installed — use no-op fallback
|
package/dist/debug/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/debug/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAoBH,IAAI,eAAe,GAA2B,IAAI,CAAC;AAEnD,kFAAkF;AAClF,mFAAmF;AACnF,+EAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/debug/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAoBH,IAAI,eAAe,GAA2B,IAAI,CAAC;AAEnD,kFAAkF;AAClF,mFAAmF;AACnF,+EAA+E;AAC/E,mBAAmB;AACnB,EAAE;AACF,iFAAiF;AACjF,6EAA6E;AAC7E,0EAA0E;AAC1E,0EAA0E;AAC1E,6EAA6E;AAC7E,6EAA6E;AAC7E,4EAA4E;AAC5E,6EAA6E;AAC7E,oEAAoE;AACpE,6CAA6C;AAC7C,MAAM,YAAY,GAAG,YAAY,CAAC;AAClC,KAAK,CAAC,KAAK,IAAI,EAAE;IAC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