Skip to content
Medium
Modules/ESM/CJS

Module interop

Type a CJS module with declare module, then import it in ESM style with correct default/named interop.

Solution

Loading...
Run your code to see output and diagnostics.

Built by Antigravity. The source code is available on GitHub.