From dd7f9ac1c8da2313d9a250f95eee88cbefee2515 Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Wed, 17 Jul 2024 15:11:48 +0200 Subject: [PATCH] build: resolve default exports properly in cjs --- .changeset/angry-trains-thank.md | 58 +++++++++++++++++++ packages/core/rollup.config.js | 5 +- .../extension-blockquote/rollup.config.js | 5 +- packages/extension-bold/rollup.config.js | 5 +- .../extension-bubble-menu/rollup.config.js | 5 +- .../extension-bullet-list/rollup.config.js | 5 +- .../rollup.config.js | 5 +- .../rollup.config.js | 5 +- .../extension-code-block/rollup.config.js | 5 +- packages/extension-code/rollup.config.js | 5 +- .../rollup.config.js | 5 +- .../extension-collaboration/rollup.config.js | 5 +- packages/extension-color/rollup.config.js | 5 +- packages/extension-document/rollup.config.js | 5 +- .../extension-dropcursor/rollup.config.js | 5 +- .../extension-floating-menu/rollup.config.js | 5 +- packages/extension-focus/rollup.config.js | 5 +- .../extension-font-family/rollup.config.js | 5 +- packages/extension-gapcursor/rollup.config.js | 5 +- .../extension-hard-break/rollup.config.js | 5 +- packages/extension-heading/rollup.config.js | 5 +- packages/extension-highlight/rollup.config.js | 5 +- packages/extension-history/rollup.config.js | 5 +- .../rollup.config.js | 5 +- packages/extension-image/rollup.config.js | 5 +- packages/extension-italic/rollup.config.js | 5 +- packages/extension-link/rollup.config.js | 5 +- packages/extension-list-item/rollup.config.js | 5 +- .../extension-list-keymap/rollup.config.js | 5 +- packages/extension-mention/rollup.config.js | 5 +- .../extension-ordered-list/rollup.config.js | 5 +- packages/extension-paragraph/rollup.config.js | 5 +- .../extension-placeholder/rollup.config.js | 5 +- packages/extension-strike/rollup.config.js | 5 +- packages/extension-subscript/rollup.config.js | 5 +- .../extension-superscript/rollup.config.js | 5 +- .../extension-table-cell/rollup.config.js | 5 +- .../extension-table-header/rollup.config.js | 5 +- packages/extension-table-row/rollup.config.js | 5 +- packages/extension-table/rollup.config.js | 5 +- packages/extension-task-item/rollup.config.js | 5 +- packages/extension-task-list/rollup.config.js | 5 +- .../extension-text-align/rollup.config.js | 5 +- .../extension-text-style/rollup.config.js | 5 +- packages/extension-text/rollup.config.js | 5 +- .../extension-typography/rollup.config.js | 5 +- packages/extension-underline/rollup.config.js | 5 +- packages/extension-youtube/rollup.config.js | 5 +- packages/html/rollup.config.js | 5 +- packages/react/rollup.config.js | 5 +- packages/starter-kit/rollup.config.js | 5 +- packages/suggestion/rollup.config.js | 5 +- packages/vue-2/rollup.config.js | 5 +- packages/vue-3/rollup.config.js | 5 +- turbo.json | 2 +- 55 files changed, 271 insertions(+), 54 deletions(-) create mode 100644 .changeset/angry-trains-thank.md diff --git a/.changeset/angry-trains-thank.md b/.changeset/angry-trains-thank.md new file mode 100644 index 00000000000..b15b0561c5d --- /dev/null +++ b/.changeset/angry-trains-thank.md @@ -0,0 +1,58 @@ +--- +"@tiptap/extension-collaboration-cursor": patch +"@tiptap/extension-code-block-lowlight": patch +"@tiptap/extension-character-count": patch +"@tiptap/extension-horizontal-rule": patch +"@tiptap/extension-collaboration": patch +"@tiptap/extension-floating-menu": patch +"@tiptap/extension-ordered-list": patch +"@tiptap/extension-table-header": patch +"@tiptap/extension-bubble-menu": patch +"@tiptap/extension-bullet-list": patch +"@tiptap/extension-font-family": patch +"@tiptap/extension-list-keymap": patch +"@tiptap/extension-placeholder": patch +"@tiptap/extension-superscript": patch +"@tiptap/extension-blockquote": patch +"@tiptap/extension-code-block": patch +"@tiptap/extension-dropcursor": patch +"@tiptap/extension-hard-break": patch +"@tiptap/extension-table-cell": patch +"@tiptap/extension-text-align": patch +"@tiptap/extension-text-style": patch +"@tiptap/extension-typography": patch +"@tiptap/extension-gapcursor": patch +"@tiptap/extension-highlight": patch +"@tiptap/extension-list-item": patch +"@tiptap/extension-paragraph": patch +"@tiptap/extension-subscript": patch +"@tiptap/extension-table-row": patch +"@tiptap/extension-task-item": patch +"@tiptap/extension-task-list": patch +"@tiptap/extension-underline": patch +"@tiptap/extension-document": patch +"@tiptap/extension-heading": patch +"@tiptap/extension-history": patch +"@tiptap/extension-mention": patch +"@tiptap/extension-youtube": patch +"@tiptap/extension-italic": patch +"@tiptap/extension-strike": patch +"@tiptap/extension-color": patch +"@tiptap/extension-focus": patch +"@tiptap/extension-image": patch +"@tiptap/extension-table": patch +"@tiptap/extension-bold": patch +"@tiptap/extension-code": patch +"@tiptap/extension-link": patch +"@tiptap/extension-text": patch +"@tiptap/starter-kit": patch +"@tiptap/suggestion": patch +"@tiptap/react": patch +"@tiptap/vue-2": patch +"@tiptap/vue-3": patch +"@tiptap/core": patch +"@tiptap/html": patch +"@tiptap/pm": patch +--- + +There was an issue with the cjs bundling of packages and default exports, now we resolve default exports in legacy compatible way diff --git a/packages/core/rollup.config.js b/packages/core/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/core/rollup.config.js +++ b/packages/core/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-blockquote/rollup.config.js b/packages/extension-blockquote/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-blockquote/rollup.config.js +++ b/packages/extension-blockquote/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-bold/rollup.config.js b/packages/extension-bold/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-bold/rollup.config.js +++ b/packages/extension-bold/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-bubble-menu/rollup.config.js b/packages/extension-bubble-menu/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-bubble-menu/rollup.config.js +++ b/packages/extension-bubble-menu/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-bullet-list/rollup.config.js b/packages/extension-bullet-list/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-bullet-list/rollup.config.js +++ b/packages/extension-bullet-list/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-character-count/rollup.config.js b/packages/extension-character-count/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-character-count/rollup.config.js +++ b/packages/extension-character-count/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-code-block-lowlight/rollup.config.js b/packages/extension-code-block-lowlight/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-code-block-lowlight/rollup.config.js +++ b/packages/extension-code-block-lowlight/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-code-block/rollup.config.js b/packages/extension-code-block/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-code-block/rollup.config.js +++ b/packages/extension-code-block/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-code/rollup.config.js b/packages/extension-code/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-code/rollup.config.js +++ b/packages/extension-code/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-collaboration-cursor/rollup.config.js b/packages/extension-collaboration-cursor/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-collaboration-cursor/rollup.config.js +++ b/packages/extension-collaboration-cursor/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-collaboration/rollup.config.js b/packages/extension-collaboration/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-collaboration/rollup.config.js +++ b/packages/extension-collaboration/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-color/rollup.config.js b/packages/extension-color/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-color/rollup.config.js +++ b/packages/extension-color/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-document/rollup.config.js b/packages/extension-document/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-document/rollup.config.js +++ b/packages/extension-document/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-dropcursor/rollup.config.js b/packages/extension-dropcursor/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-dropcursor/rollup.config.js +++ b/packages/extension-dropcursor/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-floating-menu/rollup.config.js b/packages/extension-floating-menu/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-floating-menu/rollup.config.js +++ b/packages/extension-floating-menu/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-focus/rollup.config.js b/packages/extension-focus/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-focus/rollup.config.js +++ b/packages/extension-focus/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-font-family/rollup.config.js b/packages/extension-font-family/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-font-family/rollup.config.js +++ b/packages/extension-font-family/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-gapcursor/rollup.config.js b/packages/extension-gapcursor/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-gapcursor/rollup.config.js +++ b/packages/extension-gapcursor/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-hard-break/rollup.config.js b/packages/extension-hard-break/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-hard-break/rollup.config.js +++ b/packages/extension-hard-break/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-heading/rollup.config.js b/packages/extension-heading/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-heading/rollup.config.js +++ b/packages/extension-heading/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-highlight/rollup.config.js b/packages/extension-highlight/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-highlight/rollup.config.js +++ b/packages/extension-highlight/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-history/rollup.config.js b/packages/extension-history/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-history/rollup.config.js +++ b/packages/extension-history/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-horizontal-rule/rollup.config.js b/packages/extension-horizontal-rule/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-horizontal-rule/rollup.config.js +++ b/packages/extension-horizontal-rule/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-image/rollup.config.js b/packages/extension-image/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-image/rollup.config.js +++ b/packages/extension-image/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-italic/rollup.config.js b/packages/extension-italic/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-italic/rollup.config.js +++ b/packages/extension-italic/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-link/rollup.config.js b/packages/extension-link/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-link/rollup.config.js +++ b/packages/extension-link/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-list-item/rollup.config.js b/packages/extension-list-item/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-list-item/rollup.config.js +++ b/packages/extension-list-item/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-list-keymap/rollup.config.js b/packages/extension-list-keymap/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-list-keymap/rollup.config.js +++ b/packages/extension-list-keymap/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-mention/rollup.config.js b/packages/extension-mention/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-mention/rollup.config.js +++ b/packages/extension-mention/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-ordered-list/rollup.config.js b/packages/extension-ordered-list/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-ordered-list/rollup.config.js +++ b/packages/extension-ordered-list/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-paragraph/rollup.config.js b/packages/extension-paragraph/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-paragraph/rollup.config.js +++ b/packages/extension-paragraph/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-placeholder/rollup.config.js b/packages/extension-placeholder/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-placeholder/rollup.config.js +++ b/packages/extension-placeholder/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-strike/rollup.config.js b/packages/extension-strike/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-strike/rollup.config.js +++ b/packages/extension-strike/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-subscript/rollup.config.js b/packages/extension-subscript/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-subscript/rollup.config.js +++ b/packages/extension-subscript/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-superscript/rollup.config.js b/packages/extension-superscript/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-superscript/rollup.config.js +++ b/packages/extension-superscript/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-table-cell/rollup.config.js b/packages/extension-table-cell/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-table-cell/rollup.config.js +++ b/packages/extension-table-cell/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-table-header/rollup.config.js b/packages/extension-table-header/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-table-header/rollup.config.js +++ b/packages/extension-table-header/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-table-row/rollup.config.js b/packages/extension-table-row/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-table-row/rollup.config.js +++ b/packages/extension-table-row/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-table/rollup.config.js b/packages/extension-table/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-table/rollup.config.js +++ b/packages/extension-table/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-task-item/rollup.config.js b/packages/extension-task-item/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-task-item/rollup.config.js +++ b/packages/extension-task-item/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-task-list/rollup.config.js b/packages/extension-task-list/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-task-list/rollup.config.js +++ b/packages/extension-task-list/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-text-align/rollup.config.js b/packages/extension-text-align/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-text-align/rollup.config.js +++ b/packages/extension-text-align/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-text-style/rollup.config.js b/packages/extension-text-style/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-text-style/rollup.config.js +++ b/packages/extension-text-style/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-text/rollup.config.js b/packages/extension-text/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-text/rollup.config.js +++ b/packages/extension-text/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-typography/rollup.config.js b/packages/extension-typography/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-typography/rollup.config.js +++ b/packages/extension-typography/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-underline/rollup.config.js b/packages/extension-underline/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-underline/rollup.config.js +++ b/packages/extension-underline/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/extension-youtube/rollup.config.js b/packages/extension-youtube/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/extension-youtube/rollup.config.js +++ b/packages/extension-youtube/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/html/rollup.config.js b/packages/html/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/html/rollup.config.js +++ b/packages/html/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/react/rollup.config.js b/packages/react/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/react/rollup.config.js +++ b/packages/react/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/starter-kit/rollup.config.js b/packages/starter-kit/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/starter-kit/rollup.config.js +++ b/packages/starter-kit/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/suggestion/rollup.config.js b/packages/suggestion/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/suggestion/rollup.config.js +++ b/packages/suggestion/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/vue-2/rollup.config.js b/packages/vue-2/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/vue-2/rollup.config.js +++ b/packages/vue-2/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/packages/vue-3/rollup.config.js b/packages/vue-3/rollup.config.js index e9300f7f93b..3394eaf7c1e 100644 --- a/packages/vue-3/rollup.config.js +++ b/packages/vue-3/rollup.config.js @@ -16,19 +16,22 @@ export default { file: pkg.umd, format: 'umd', sourcemap: true, + exports: 'named', }, { name: pkg.name, file: pkg.main, format: 'cjs', + interop: 'compat', sourcemap: true, - exports: 'auto', + exports: 'named', }, { name: pkg.name, file: pkg.module, format: 'es', sourcemap: true, + exports: 'named', }, ], plugins: [ diff --git a/turbo.json b/turbo.json index 7ec8cdb2e28..db854deb70c 100644 --- a/turbo.json +++ b/turbo.json @@ -2,7 +2,7 @@ "$schema": "https://turbo.build/schema.json", "tasks": { "build": { - "inputs": ["src/**"], + "inputs": ["src/**", "rollup.config.js"], "dependsOn": ["^build"], "outputs": ["dist/**"] },