2022-10-21 11:20:18 -04:00
|
|
|
// @ts-check
|
2022-09-10 15:00:45 -04:00
|
|
|
import cjsDefault, {
|
|
|
|
MyClass as MyCjsClass,
|
|
|
|
} from "npm:@denotest/cjs-default-export";
|
|
|
|
import * as cjsNamespace from "npm:@denotest/cjs-default-export";
|
|
|
|
import esmDefault from "npm:@denotest/esm-import-cjs-default";
|
|
|
|
import * as esmNamespace from "npm:@denotest/esm-import-cjs-default";
|
|
|
|
|
|
|
|
console.log("Deno esm importing node cjs");
|
|
|
|
console.log("===========================");
|
|
|
|
console.log(cjsDefault);
|
|
|
|
console.log(cjsNamespace);
|
|
|
|
console.log("===========================");
|
|
|
|
|
|
|
|
console.log("Deno esm importing node esm");
|
|
|
|
console.log("===========================");
|
|
|
|
console.log(esmDefault);
|
|
|
|
console.log(esmNamespace);
|
|
|
|
console.log("===========================");
|
|
|
|
|
2022-09-12 14:28:51 -04:00
|
|
|
console.log(cjsDefault.default());
|
2022-09-10 15:00:45 -04:00
|
|
|
console.log(esmDefault());
|
|
|
|
console.log(MyCjsClass.someStaticMethod());
|