Open kobayang opened 1 year ago
I'm trying to y-prosemirror with TypeScript moduleResolution: "Bundler" mode. But TypeScript can not find y-prosemirror type definition in this mode.
moduleResolution: "Bundler"
To import the type in ESM, we need to add exports.types field. https://www.typescriptlang.org/docs/handbook/esm-node.html
exports.types
I'm trying to y-prosemirror with TypeScript
moduleResolution: "Bundler"
mode. But TypeScript can not find y-prosemirror type definition in this mode.To import the type in ESM, we need to add
exports.types
field. https://www.typescriptlang.org/docs/handbook/esm-node.html