mirror of
https://github.com/denoland/deno.git
synced 2024-12-14 19:37:59 -05:00
18 lines
604 B
JavaScript
18 lines
604 B
JavaScript
|
import defaultImport, { MyClass } from "@denotest/cjs-default-export";
|
||
|
import * as namespaceImport from "@denotest/cjs-default-export";
|
||
|
import localDefaultImport from "./local.cjs";
|
||
|
import * as localNamespaceImport from "./local.cjs";
|
||
|
|
||
|
console.log("Node esm importing node cjs");
|
||
|
console.log("===========================");
|
||
|
console.log(defaultImport);
|
||
|
console.log(localDefaultImport);
|
||
|
console.log(namespaceImport);
|
||
|
console.log(localNamespaceImport);
|
||
|
console.log("===========================");
|
||
|
console.log(MyClass.someStaticMethod());
|
||
|
|
||
|
export default function() {
|
||
|
return defaultImport.default() * 5;
|
||
|
}
|