mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 18:17:48 -05:00
1587387bcc
1. Moves the npm registries to their own dedicated ports. 2. Moves the data files out of `tests/testdata/npm/registry` to `tests/registry/npm`.
17 lines
604 B
JavaScript
17 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;
|
|
}
|