uup
Joined 4 years ago
Karma
329
Submissions
124
Member since
Sep 20
Joined 4 years ago
Source? I think most people are going to understand that speech you disagree with is part of freedom of speech.
Try this:
// tsconfig.json
{
"compilerOptions": {
"outDir": "dist",
"module": "es2020",
"allowJs": true
},
"files": ["index.ts"]
}
// index.ts
import('./test.mjs').then(console.log)
> npx tsc && node ./dist/index.js
[Module: null prototype] { Foo: [Function: Foo] }