mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-23 06:10:02 +08:00
* fix(compiler): resolve package imports in npm graphs - Resolve package-scoped import maps with edge-specific conditions and diagnostics. - Add Chalk-compatible ambient typing and differential coverage across import forms. Fixes #374 Co-authored-by: Hagege Ruben <20857346+HagegeR@users.noreply.github.com> * test(compiler): make resolver parity paths portable - Normalize path separators before excluding package runtime trees from resolver parity sweeps. --------- Co-authored-by: Hagege Ruben <20857346+HagegeR@users.noreply.github.com>
15 lines
446 B
JavaScript
15 lines
446 B
JavaScript
import { createRequire } from "node:module";
|
|
import { flavor } from "#external";
|
|
import { exact } from "#exact";
|
|
import { condition } from "#condition";
|
|
import { pattern } from "#pattern/value";
|
|
|
|
const require = createRequire(import.meta.url);
|
|
const required = require("#mode");
|
|
|
|
export const summary = [exact, pattern, condition, flavor, required.mode].join(":");
|
|
|
|
export async function importedMode() {
|
|
return (await import("#mode")).mode;
|
|
}
|