1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00
denoland-deno/tests/testdata/npm/registry/@denotest/esm-import-cjs-default/1.0.0/index.mjs

18 lines
604 B
JavaScript
Raw Normal View History

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;
}