mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-02 08:35:07 +08:00
* fix(compiler): support implicit top-level await modules - Match Node 24 syntax detection by treating top-level await as an ES module marker. - Add differential corpus coverage for TypeScript files without explicit imports or exports. * fix Node ESM classification for top-level await * fix ESM require diagnostics and classification caching * fix require binding and package type precedence * fix: align top-level await module detection with Node
9 lines
147 B
JavaScript
9 lines
147 B
JavaScript
await Promise.resolve();
|
|
|
|
function load() {
|
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
require("node:path");
|
|
}
|
|
|
|
load();
|