mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
826e42a5b5
* cts support * better cjs/cts type checking * deno compile cjs/cts support * More efficient detect cjs (going towards stabilization) * Determination of whether .js, .ts, .jsx, or .tsx is cjs or esm is only done after loading * Support `import x = require(...);` Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
13 lines
748 B
Text
13 lines
748 B
Text
[Module: null prototype] { sync_js: 1 }
|
|
[Module: null prototype] { sync_mjs: 1 }
|
|
error: Uncaught (in promise) Error: Top-level await is not allowed in synchronous evaluation
|
|
at loadESMFromCJS (node:module:[WILDCARD])
|
|
at Module._compile (node:module:[WILDCARD])
|
|
at Object.Module._extensions..js (node:module:[WILDCARD])
|
|
at Module.load (node:module:[WILDCARD])
|
|
at Function.Module._load (node:module:[WILDCARD])
|
|
at Module.require (node:module:[WILDCARD])
|
|
at require (node:module:[WILDCARD])
|
|
at Object.<anonymous> (file:[WILDCARD]/tests/specs/run/require_esm/main.cjs:[WILDCARD])
|
|
at Object.<anonymous> (file:[WILDCARD]/tests/specs/run/require_esm/main.cjs:[WILDCARD])
|
|
at Module._compile (node:module:[WILDCARD])
|