mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-26 06:34:20 +08:00
9 lines
360 B
JavaScript
9 lines
360 B
JavaScript
// The "import" condition's entry — a real ES module (the package is
|
|
// "type": "module"). Node hands THIS file to import/import() sites and
|
|
// dist/index.cjs to require() sites: two distinct module instances, the
|
|
// documented dual-package hazard.
|
|
export const flavor = "esm";
|
|
export function parse(src) {
|
|
return { flavor, length: String(src).length };
|
|
}
|