Add shims for TypeScript's 'node' module resolution algorithm. The exports map is only used with the `node16` algorithm. Write types in CommonJS, so they can be exported from ESM files. The other way around is prone to, at the very least, confusing warnings.
4 lines
156 B
TypeScript
4 lines
156 B
TypeScript
// For compatibility with resolution algorithms other than Node16.
|
|
|
|
export * from './entrypoints/main.cjs';
|
|
export {default} from './entrypoints/main.cjs';
|