@hirarijs/loader 1.0.12 → 1.0.13
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/index.js +2 -2
- package/dist/loader.cjs +3 -3
- package/dist/loader.js +1 -1
- package/dist/register-auto.js +2 -2
- package/dist/register.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
register
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HIXSUEUX.js";
|
|
4
4
|
import {
|
|
5
5
|
IMPORT_META_URL_VARIABLE,
|
|
6
6
|
createRuntime,
|
|
7
7
|
loadHirariConfig,
|
|
8
8
|
resolvePlugins
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KAQUSKWG.js";
|
|
10
10
|
export {
|
|
11
11
|
IMPORT_META_URL_VARIABLE,
|
|
12
12
|
createRuntime,
|
package/dist/loader.cjs
CHANGED
|
@@ -235,7 +235,7 @@ async function loaderResolve(specifier, context, next, runtime2) {
|
|
|
235
235
|
if (runtime2.loaderConfig.debug) {
|
|
236
236
|
console.log(`[hirari-loader] resolve ${note} ${specifier} -> ${url}`);
|
|
237
237
|
}
|
|
238
|
-
return { url };
|
|
238
|
+
return { url, shortCircuit: true };
|
|
239
239
|
}
|
|
240
240
|
const indexCandidate = import_path3.default.join(basePath, "index" + ext2);
|
|
241
241
|
if (import_fs3.default.existsSync(indexCandidate) && import_fs3.default.statSync(indexCandidate).isFile()) {
|
|
@@ -243,7 +243,7 @@ async function loaderResolve(specifier, context, next, runtime2) {
|
|
|
243
243
|
if (runtime2.loaderConfig.debug) {
|
|
244
244
|
console.log(`[hirari-loader] resolve ${note} ${specifier} -> ${url}`);
|
|
245
245
|
}
|
|
246
|
-
return { url };
|
|
246
|
+
return { url, shortCircuit: true };
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
return null;
|
|
@@ -261,7 +261,7 @@ async function loaderResolve(specifier, context, next, runtime2) {
|
|
|
261
261
|
if (res) return res;
|
|
262
262
|
}
|
|
263
263
|
if (next) return next(specifier, context);
|
|
264
|
-
return { url: specifier };
|
|
264
|
+
return { url: specifier, shortCircuit: true };
|
|
265
265
|
}
|
|
266
266
|
async function loaderLoad(url, context, next, runtime2) {
|
|
267
267
|
const { format: expectedFormat } = runtime2;
|
package/dist/loader.js
CHANGED
package/dist/register-auto.js
CHANGED
package/dist/register.js
CHANGED