mirror of
https://github.com/denoland/deno.git
synced 2025-02-13 17:25:28 -05:00
![David Sherret](/assets/img/avatar_default.png)
* 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>
7 lines
135 B
TypeScript
7 lines
135 B
TypeScript
// non-analyzable
|
|
const moduleName = "./output.cjs";
|
|
function getModuleName() {
|
|
return moduleName;
|
|
}
|
|
|
|
await import(getModuleName());
|