mirror of
https://github.com/facebook/lexical.git
synced 2025-05-20 08:37:41 +08:00
Generate default entry in package.json exports last & use .mjs for esm modules (#5737)
This commit is contained in:
@ -85,7 +85,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
// These aren't compiled, but they're written in module JS
|
// These aren't compiled, but they're written in module JS
|
||||||
files: ['packages/lexical-playground/esm/*.js'],
|
files: ['packages/lexical-playground/esm/*.mjs'],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
},
|
},
|
||||||
|
@ -25,6 +25,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-clipboard"
|
"directory": "packages/lexical-clipboard"
|
||||||
},
|
},
|
||||||
"module": "LexicalClipboard.esm.js",
|
"module": "LexicalClipboard.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/prismjs": "^1.26.0"
|
"@types/prismjs": "^1.26.0"
|
||||||
},
|
},
|
||||||
"module": "LexicalCode.esm.js",
|
"module": "LexicalCode.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-dragon"
|
"directory": "packages/lexical-dragon"
|
||||||
},
|
},
|
||||||
"module": "LexicalDragon.esm.js",
|
"module": "LexicalDragon.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-file"
|
"directory": "packages/lexical-file"
|
||||||
},
|
},
|
||||||
"module": "LexicalFile.esm.js",
|
"module": "LexicalFile.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-hashtag"
|
"directory": "packages/lexical-hashtag"
|
||||||
},
|
},
|
||||||
"module": "LexicalHashtag.esm.js",
|
"module": "LexicalHashtag.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-headless"
|
"directory": "packages/lexical-headless"
|
||||||
},
|
},
|
||||||
"module": "LexicalHeadless.esm.js",
|
"module": "LexicalHeadless.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-history"
|
"directory": "packages/lexical-history"
|
||||||
},
|
},
|
||||||
"module": "LexicalHistory.esm.js",
|
"module": "LexicalHistory.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,6 @@
|
|||||||
"@lexical/selection": "0.14.2",
|
"@lexical/selection": "0.14.2",
|
||||||
"@lexical/utils": "0.14.2"
|
"@lexical/utils": "0.14.2"
|
||||||
},
|
},
|
||||||
"module": "LexicalHtml.esm.js",
|
"module": "LexicalHtml.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-link"
|
"directory": "packages/lexical-link"
|
||||||
},
|
},
|
||||||
"module": "LexicalLink.esm.js",
|
"module": "LexicalLink.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-list"
|
"directory": "packages/lexical-list"
|
||||||
},
|
},
|
||||||
"module": "LexicalList.esm.js",
|
"module": "LexicalList.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-mark"
|
"directory": "packages/lexical-mark"
|
||||||
},
|
},
|
||||||
"module": "LexicalMark.esm.js",
|
"module": "LexicalMark.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-markdown"
|
"directory": "packages/lexical-markdown"
|
||||||
},
|
},
|
||||||
"module": "LexicalMarkdown.esm.js",
|
"module": "LexicalMarkdown.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-offset"
|
"directory": "packages/lexical-offset"
|
||||||
},
|
},
|
||||||
"module": "LexicalOffset.esm.js",
|
"module": "LexicalOffset.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-overflow"
|
"directory": "packages/lexical-overflow"
|
||||||
},
|
},
|
||||||
"module": "LexicalOverflow.esm.js",
|
"module": "LexicalOverflow.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-plain-text"
|
"directory": "packages/lexical-plain-text"
|
||||||
},
|
},
|
||||||
"module": "LexicalPlainText.esm.js",
|
"module": "LexicalPlainText.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -21,17 +21,17 @@
|
|||||||
<script type="importmap">
|
<script type="importmap">
|
||||||
{
|
{
|
||||||
"imports": {
|
"imports": {
|
||||||
"lexical": "./dist/Lexical.esm.js",
|
"lexical": "./dist/Lexical.mjs",
|
||||||
"@lexical/clipboard": "./dist/LexicalClipboard.esm.js",
|
"@lexical/clipboard": "./dist/LexicalClipboard.mjs",
|
||||||
"@lexical/dragon": "./dist/LexicalDragon.esm.js",
|
"@lexical/dragon": "./dist/LexicalDragon.mjs",
|
||||||
"@lexical/history": "./dist/LexicalHistory.esm.js",
|
"@lexical/history": "./dist/LexicalHistory.mjs",
|
||||||
"@lexical/html": "./dist/LexicalHtml.esm.js",
|
"@lexical/html": "./dist/LexicalHtml.mjs",
|
||||||
"@lexical/rich-text": "./dist/LexicalRichText.esm.js",
|
"@lexical/rich-text": "./dist/LexicalRichText.mjs",
|
||||||
"@lexical/selection": "./dist/LexicalSelection.esm.js",
|
"@lexical/selection": "./dist/LexicalSelection.mjs",
|
||||||
"@lexical/utils": "./dist/LexicalUtils.esm.js"
|
"@lexical/utils": "./dist/LexicalUtils.mjs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script type="module" src="./index.esm.js"></script>
|
<script type="module" src="./index.mjs"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -12,7 +12,7 @@ import {HeadingNode, QuoteNode, registerRichText} from '@lexical/rich-text';
|
|||||||
import {mergeRegister} from '@lexical/utils';
|
import {mergeRegister} from '@lexical/utils';
|
||||||
import {createEditor} from 'lexical';
|
import {createEditor} from 'lexical';
|
||||||
|
|
||||||
import prepopulatedRichText from './prepopulatedRichText.esm.js';
|
import prepopulatedRichText from './prepopulatedRichText.mjs';
|
||||||
|
|
||||||
const editorRef = document.getElementById('lexical-editor');
|
const editorRef = document.getElementById('lexical-editor');
|
||||||
const stateRef = document.getElementById('lexical-state');
|
const stateRef = document.getElementById('lexical-state');
|
@ -43,560 +43,560 @@
|
|||||||
"./LexicalAutoEmbedPlugin": {
|
"./LexicalAutoEmbedPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalAutoEmbedPlugin.d.ts",
|
"types": "./LexicalAutoEmbedPlugin.d.ts",
|
||||||
"default": "./LexicalAutoEmbedPlugin.esm.js"
|
"default": "./LexicalAutoEmbedPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalAutoEmbedPlugin.js"
|
"require": "./LexicalAutoEmbedPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalAutoEmbedPlugin.js": {
|
"./LexicalAutoEmbedPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalAutoEmbedPlugin.d.ts",
|
"types": "./LexicalAutoEmbedPlugin.d.ts",
|
||||||
"default": "./LexicalAutoEmbedPlugin.esm.js"
|
"default": "./LexicalAutoEmbedPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalAutoEmbedPlugin.js"
|
"require": "./LexicalAutoEmbedPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalAutoFocusPlugin": {
|
"./LexicalAutoFocusPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalAutoFocusPlugin.d.ts",
|
"types": "./LexicalAutoFocusPlugin.d.ts",
|
||||||
"default": "./LexicalAutoFocusPlugin.esm.js"
|
"default": "./LexicalAutoFocusPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalAutoFocusPlugin.js"
|
"require": "./LexicalAutoFocusPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalAutoFocusPlugin.js": {
|
"./LexicalAutoFocusPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalAutoFocusPlugin.d.ts",
|
"types": "./LexicalAutoFocusPlugin.d.ts",
|
||||||
"default": "./LexicalAutoFocusPlugin.esm.js"
|
"default": "./LexicalAutoFocusPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalAutoFocusPlugin.js"
|
"require": "./LexicalAutoFocusPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalAutoLinkPlugin": {
|
"./LexicalAutoLinkPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalAutoLinkPlugin.d.ts",
|
"types": "./LexicalAutoLinkPlugin.d.ts",
|
||||||
"default": "./LexicalAutoLinkPlugin.esm.js"
|
"default": "./LexicalAutoLinkPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalAutoLinkPlugin.js"
|
"require": "./LexicalAutoLinkPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalAutoLinkPlugin.js": {
|
"./LexicalAutoLinkPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalAutoLinkPlugin.d.ts",
|
"types": "./LexicalAutoLinkPlugin.d.ts",
|
||||||
"default": "./LexicalAutoLinkPlugin.esm.js"
|
"default": "./LexicalAutoLinkPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalAutoLinkPlugin.js"
|
"require": "./LexicalAutoLinkPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalBlockWithAlignableContents": {
|
"./LexicalBlockWithAlignableContents": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalBlockWithAlignableContents.d.ts",
|
"types": "./LexicalBlockWithAlignableContents.d.ts",
|
||||||
"default": "./LexicalBlockWithAlignableContents.esm.js"
|
"default": "./LexicalBlockWithAlignableContents.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalBlockWithAlignableContents.js"
|
"require": "./LexicalBlockWithAlignableContents.js"
|
||||||
},
|
},
|
||||||
"./LexicalBlockWithAlignableContents.js": {
|
"./LexicalBlockWithAlignableContents.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalBlockWithAlignableContents.d.ts",
|
"types": "./LexicalBlockWithAlignableContents.d.ts",
|
||||||
"default": "./LexicalBlockWithAlignableContents.esm.js"
|
"default": "./LexicalBlockWithAlignableContents.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalBlockWithAlignableContents.js"
|
"require": "./LexicalBlockWithAlignableContents.js"
|
||||||
},
|
},
|
||||||
"./LexicalCharacterLimitPlugin": {
|
"./LexicalCharacterLimitPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalCharacterLimitPlugin.d.ts",
|
"types": "./LexicalCharacterLimitPlugin.d.ts",
|
||||||
"default": "./LexicalCharacterLimitPlugin.esm.js"
|
"default": "./LexicalCharacterLimitPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalCharacterLimitPlugin.js"
|
"require": "./LexicalCharacterLimitPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalCharacterLimitPlugin.js": {
|
"./LexicalCharacterLimitPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalCharacterLimitPlugin.d.ts",
|
"types": "./LexicalCharacterLimitPlugin.d.ts",
|
||||||
"default": "./LexicalCharacterLimitPlugin.esm.js"
|
"default": "./LexicalCharacterLimitPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalCharacterLimitPlugin.js"
|
"require": "./LexicalCharacterLimitPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalCheckListPlugin": {
|
"./LexicalCheckListPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalCheckListPlugin.d.ts",
|
"types": "./LexicalCheckListPlugin.d.ts",
|
||||||
"default": "./LexicalCheckListPlugin.esm.js"
|
"default": "./LexicalCheckListPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalCheckListPlugin.js"
|
"require": "./LexicalCheckListPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalCheckListPlugin.js": {
|
"./LexicalCheckListPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalCheckListPlugin.d.ts",
|
"types": "./LexicalCheckListPlugin.d.ts",
|
||||||
"default": "./LexicalCheckListPlugin.esm.js"
|
"default": "./LexicalCheckListPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalCheckListPlugin.js"
|
"require": "./LexicalCheckListPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalClearEditorPlugin": {
|
"./LexicalClearEditorPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalClearEditorPlugin.d.ts",
|
"types": "./LexicalClearEditorPlugin.d.ts",
|
||||||
"default": "./LexicalClearEditorPlugin.esm.js"
|
"default": "./LexicalClearEditorPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalClearEditorPlugin.js"
|
"require": "./LexicalClearEditorPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalClearEditorPlugin.js": {
|
"./LexicalClearEditorPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalClearEditorPlugin.d.ts",
|
"types": "./LexicalClearEditorPlugin.d.ts",
|
||||||
"default": "./LexicalClearEditorPlugin.esm.js"
|
"default": "./LexicalClearEditorPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalClearEditorPlugin.js"
|
"require": "./LexicalClearEditorPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalClickableLinkPlugin": {
|
"./LexicalClickableLinkPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalClickableLinkPlugin.d.ts",
|
"types": "./LexicalClickableLinkPlugin.d.ts",
|
||||||
"default": "./LexicalClickableLinkPlugin.esm.js"
|
"default": "./LexicalClickableLinkPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalClickableLinkPlugin.js"
|
"require": "./LexicalClickableLinkPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalClickableLinkPlugin.js": {
|
"./LexicalClickableLinkPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalClickableLinkPlugin.d.ts",
|
"types": "./LexicalClickableLinkPlugin.d.ts",
|
||||||
"default": "./LexicalClickableLinkPlugin.esm.js"
|
"default": "./LexicalClickableLinkPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalClickableLinkPlugin.js"
|
"require": "./LexicalClickableLinkPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalCollaborationContext": {
|
"./LexicalCollaborationContext": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalCollaborationContext.d.ts",
|
"types": "./LexicalCollaborationContext.d.ts",
|
||||||
"default": "./LexicalCollaborationContext.esm.js"
|
"default": "./LexicalCollaborationContext.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalCollaborationContext.js"
|
"require": "./LexicalCollaborationContext.js"
|
||||||
},
|
},
|
||||||
"./LexicalCollaborationContext.js": {
|
"./LexicalCollaborationContext.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalCollaborationContext.d.ts",
|
"types": "./LexicalCollaborationContext.d.ts",
|
||||||
"default": "./LexicalCollaborationContext.esm.js"
|
"default": "./LexicalCollaborationContext.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalCollaborationContext.js"
|
"require": "./LexicalCollaborationContext.js"
|
||||||
},
|
},
|
||||||
"./LexicalCollaborationPlugin": {
|
"./LexicalCollaborationPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalCollaborationPlugin.d.ts",
|
"types": "./LexicalCollaborationPlugin.d.ts",
|
||||||
"default": "./LexicalCollaborationPlugin.esm.js"
|
"default": "./LexicalCollaborationPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalCollaborationPlugin.js"
|
"require": "./LexicalCollaborationPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalCollaborationPlugin.js": {
|
"./LexicalCollaborationPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalCollaborationPlugin.d.ts",
|
"types": "./LexicalCollaborationPlugin.d.ts",
|
||||||
"default": "./LexicalCollaborationPlugin.esm.js"
|
"default": "./LexicalCollaborationPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalCollaborationPlugin.js"
|
"require": "./LexicalCollaborationPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalComposer": {
|
"./LexicalComposer": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalComposer.d.ts",
|
"types": "./LexicalComposer.d.ts",
|
||||||
"default": "./LexicalComposer.esm.js"
|
"default": "./LexicalComposer.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalComposer.js"
|
"require": "./LexicalComposer.js"
|
||||||
},
|
},
|
||||||
"./LexicalComposer.js": {
|
"./LexicalComposer.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalComposer.d.ts",
|
"types": "./LexicalComposer.d.ts",
|
||||||
"default": "./LexicalComposer.esm.js"
|
"default": "./LexicalComposer.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalComposer.js"
|
"require": "./LexicalComposer.js"
|
||||||
},
|
},
|
||||||
"./LexicalComposerContext": {
|
"./LexicalComposerContext": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalComposerContext.d.ts",
|
"types": "./LexicalComposerContext.d.ts",
|
||||||
"default": "./LexicalComposerContext.esm.js"
|
"default": "./LexicalComposerContext.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalComposerContext.js"
|
"require": "./LexicalComposerContext.js"
|
||||||
},
|
},
|
||||||
"./LexicalComposerContext.js": {
|
"./LexicalComposerContext.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalComposerContext.d.ts",
|
"types": "./LexicalComposerContext.d.ts",
|
||||||
"default": "./LexicalComposerContext.esm.js"
|
"default": "./LexicalComposerContext.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalComposerContext.js"
|
"require": "./LexicalComposerContext.js"
|
||||||
},
|
},
|
||||||
"./LexicalContentEditable": {
|
"./LexicalContentEditable": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalContentEditable.d.ts",
|
"types": "./LexicalContentEditable.d.ts",
|
||||||
"default": "./LexicalContentEditable.esm.js"
|
"default": "./LexicalContentEditable.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalContentEditable.js"
|
"require": "./LexicalContentEditable.js"
|
||||||
},
|
},
|
||||||
"./LexicalContentEditable.js": {
|
"./LexicalContentEditable.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalContentEditable.d.ts",
|
"types": "./LexicalContentEditable.d.ts",
|
||||||
"default": "./LexicalContentEditable.esm.js"
|
"default": "./LexicalContentEditable.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalContentEditable.js"
|
"require": "./LexicalContentEditable.js"
|
||||||
},
|
},
|
||||||
"./LexicalContextMenuPlugin": {
|
"./LexicalContextMenuPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalContextMenuPlugin.d.ts",
|
"types": "./LexicalContextMenuPlugin.d.ts",
|
||||||
"default": "./LexicalContextMenuPlugin.esm.js"
|
"default": "./LexicalContextMenuPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalContextMenuPlugin.js"
|
"require": "./LexicalContextMenuPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalContextMenuPlugin.js": {
|
"./LexicalContextMenuPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalContextMenuPlugin.d.ts",
|
"types": "./LexicalContextMenuPlugin.d.ts",
|
||||||
"default": "./LexicalContextMenuPlugin.esm.js"
|
"default": "./LexicalContextMenuPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalContextMenuPlugin.js"
|
"require": "./LexicalContextMenuPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalDecoratorBlockNode": {
|
"./LexicalDecoratorBlockNode": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalDecoratorBlockNode.d.ts",
|
"types": "./LexicalDecoratorBlockNode.d.ts",
|
||||||
"default": "./LexicalDecoratorBlockNode.esm.js"
|
"default": "./LexicalDecoratorBlockNode.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalDecoratorBlockNode.js"
|
"require": "./LexicalDecoratorBlockNode.js"
|
||||||
},
|
},
|
||||||
"./LexicalDecoratorBlockNode.js": {
|
"./LexicalDecoratorBlockNode.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalDecoratorBlockNode.d.ts",
|
"types": "./LexicalDecoratorBlockNode.d.ts",
|
||||||
"default": "./LexicalDecoratorBlockNode.esm.js"
|
"default": "./LexicalDecoratorBlockNode.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalDecoratorBlockNode.js"
|
"require": "./LexicalDecoratorBlockNode.js"
|
||||||
},
|
},
|
||||||
"./LexicalEditorRefPlugin": {
|
"./LexicalEditorRefPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalEditorRefPlugin.d.ts",
|
"types": "./LexicalEditorRefPlugin.d.ts",
|
||||||
"default": "./LexicalEditorRefPlugin.esm.js"
|
"default": "./LexicalEditorRefPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalEditorRefPlugin.js"
|
"require": "./LexicalEditorRefPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalEditorRefPlugin.js": {
|
"./LexicalEditorRefPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalEditorRefPlugin.d.ts",
|
"types": "./LexicalEditorRefPlugin.d.ts",
|
||||||
"default": "./LexicalEditorRefPlugin.esm.js"
|
"default": "./LexicalEditorRefPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalEditorRefPlugin.js"
|
"require": "./LexicalEditorRefPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalErrorBoundary": {
|
"./LexicalErrorBoundary": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalErrorBoundary.d.ts",
|
"types": "./LexicalErrorBoundary.d.ts",
|
||||||
"default": "./LexicalErrorBoundary.esm.js"
|
"default": "./LexicalErrorBoundary.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalErrorBoundary.js"
|
"require": "./LexicalErrorBoundary.js"
|
||||||
},
|
},
|
||||||
"./LexicalErrorBoundary.js": {
|
"./LexicalErrorBoundary.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalErrorBoundary.d.ts",
|
"types": "./LexicalErrorBoundary.d.ts",
|
||||||
"default": "./LexicalErrorBoundary.esm.js"
|
"default": "./LexicalErrorBoundary.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalErrorBoundary.js"
|
"require": "./LexicalErrorBoundary.js"
|
||||||
},
|
},
|
||||||
"./LexicalHashtagPlugin": {
|
"./LexicalHashtagPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalHashtagPlugin.d.ts",
|
"types": "./LexicalHashtagPlugin.d.ts",
|
||||||
"default": "./LexicalHashtagPlugin.esm.js"
|
"default": "./LexicalHashtagPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalHashtagPlugin.js"
|
"require": "./LexicalHashtagPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalHashtagPlugin.js": {
|
"./LexicalHashtagPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalHashtagPlugin.d.ts",
|
"types": "./LexicalHashtagPlugin.d.ts",
|
||||||
"default": "./LexicalHashtagPlugin.esm.js"
|
"default": "./LexicalHashtagPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalHashtagPlugin.js"
|
"require": "./LexicalHashtagPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalHistoryPlugin": {
|
"./LexicalHistoryPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalHistoryPlugin.d.ts",
|
"types": "./LexicalHistoryPlugin.d.ts",
|
||||||
"default": "./LexicalHistoryPlugin.esm.js"
|
"default": "./LexicalHistoryPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalHistoryPlugin.js"
|
"require": "./LexicalHistoryPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalHistoryPlugin.js": {
|
"./LexicalHistoryPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalHistoryPlugin.d.ts",
|
"types": "./LexicalHistoryPlugin.d.ts",
|
||||||
"default": "./LexicalHistoryPlugin.esm.js"
|
"default": "./LexicalHistoryPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalHistoryPlugin.js"
|
"require": "./LexicalHistoryPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalHorizontalRuleNode": {
|
"./LexicalHorizontalRuleNode": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalHorizontalRuleNode.d.ts",
|
"types": "./LexicalHorizontalRuleNode.d.ts",
|
||||||
"default": "./LexicalHorizontalRuleNode.esm.js"
|
"default": "./LexicalHorizontalRuleNode.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalHorizontalRuleNode.js"
|
"require": "./LexicalHorizontalRuleNode.js"
|
||||||
},
|
},
|
||||||
"./LexicalHorizontalRuleNode.js": {
|
"./LexicalHorizontalRuleNode.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalHorizontalRuleNode.d.ts",
|
"types": "./LexicalHorizontalRuleNode.d.ts",
|
||||||
"default": "./LexicalHorizontalRuleNode.esm.js"
|
"default": "./LexicalHorizontalRuleNode.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalHorizontalRuleNode.js"
|
"require": "./LexicalHorizontalRuleNode.js"
|
||||||
},
|
},
|
||||||
"./LexicalHorizontalRulePlugin": {
|
"./LexicalHorizontalRulePlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalHorizontalRulePlugin.d.ts",
|
"types": "./LexicalHorizontalRulePlugin.d.ts",
|
||||||
"default": "./LexicalHorizontalRulePlugin.esm.js"
|
"default": "./LexicalHorizontalRulePlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalHorizontalRulePlugin.js"
|
"require": "./LexicalHorizontalRulePlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalHorizontalRulePlugin.js": {
|
"./LexicalHorizontalRulePlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalHorizontalRulePlugin.d.ts",
|
"types": "./LexicalHorizontalRulePlugin.d.ts",
|
||||||
"default": "./LexicalHorizontalRulePlugin.esm.js"
|
"default": "./LexicalHorizontalRulePlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalHorizontalRulePlugin.js"
|
"require": "./LexicalHorizontalRulePlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalLinkPlugin": {
|
"./LexicalLinkPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalLinkPlugin.d.ts",
|
"types": "./LexicalLinkPlugin.d.ts",
|
||||||
"default": "./LexicalLinkPlugin.esm.js"
|
"default": "./LexicalLinkPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalLinkPlugin.js"
|
"require": "./LexicalLinkPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalLinkPlugin.js": {
|
"./LexicalLinkPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalLinkPlugin.d.ts",
|
"types": "./LexicalLinkPlugin.d.ts",
|
||||||
"default": "./LexicalLinkPlugin.esm.js"
|
"default": "./LexicalLinkPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalLinkPlugin.js"
|
"require": "./LexicalLinkPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalListPlugin": {
|
"./LexicalListPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalListPlugin.d.ts",
|
"types": "./LexicalListPlugin.d.ts",
|
||||||
"default": "./LexicalListPlugin.esm.js"
|
"default": "./LexicalListPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalListPlugin.js"
|
"require": "./LexicalListPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalListPlugin.js": {
|
"./LexicalListPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalListPlugin.d.ts",
|
"types": "./LexicalListPlugin.d.ts",
|
||||||
"default": "./LexicalListPlugin.esm.js"
|
"default": "./LexicalListPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalListPlugin.js"
|
"require": "./LexicalListPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalMarkdownShortcutPlugin": {
|
"./LexicalMarkdownShortcutPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalMarkdownShortcutPlugin.d.ts",
|
"types": "./LexicalMarkdownShortcutPlugin.d.ts",
|
||||||
"default": "./LexicalMarkdownShortcutPlugin.esm.js"
|
"default": "./LexicalMarkdownShortcutPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalMarkdownShortcutPlugin.js"
|
"require": "./LexicalMarkdownShortcutPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalMarkdownShortcutPlugin.js": {
|
"./LexicalMarkdownShortcutPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalMarkdownShortcutPlugin.d.ts",
|
"types": "./LexicalMarkdownShortcutPlugin.d.ts",
|
||||||
"default": "./LexicalMarkdownShortcutPlugin.esm.js"
|
"default": "./LexicalMarkdownShortcutPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalMarkdownShortcutPlugin.js"
|
"require": "./LexicalMarkdownShortcutPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalNestedComposer": {
|
"./LexicalNestedComposer": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalNestedComposer.d.ts",
|
"types": "./LexicalNestedComposer.d.ts",
|
||||||
"default": "./LexicalNestedComposer.esm.js"
|
"default": "./LexicalNestedComposer.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalNestedComposer.js"
|
"require": "./LexicalNestedComposer.js"
|
||||||
},
|
},
|
||||||
"./LexicalNestedComposer.js": {
|
"./LexicalNestedComposer.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalNestedComposer.d.ts",
|
"types": "./LexicalNestedComposer.d.ts",
|
||||||
"default": "./LexicalNestedComposer.esm.js"
|
"default": "./LexicalNestedComposer.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalNestedComposer.js"
|
"require": "./LexicalNestedComposer.js"
|
||||||
},
|
},
|
||||||
"./LexicalNodeEventPlugin": {
|
"./LexicalNodeEventPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalNodeEventPlugin.d.ts",
|
"types": "./LexicalNodeEventPlugin.d.ts",
|
||||||
"default": "./LexicalNodeEventPlugin.esm.js"
|
"default": "./LexicalNodeEventPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalNodeEventPlugin.js"
|
"require": "./LexicalNodeEventPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalNodeEventPlugin.js": {
|
"./LexicalNodeEventPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalNodeEventPlugin.d.ts",
|
"types": "./LexicalNodeEventPlugin.d.ts",
|
||||||
"default": "./LexicalNodeEventPlugin.esm.js"
|
"default": "./LexicalNodeEventPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalNodeEventPlugin.js"
|
"require": "./LexicalNodeEventPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalNodeMenuPlugin": {
|
"./LexicalNodeMenuPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalNodeMenuPlugin.d.ts",
|
"types": "./LexicalNodeMenuPlugin.d.ts",
|
||||||
"default": "./LexicalNodeMenuPlugin.esm.js"
|
"default": "./LexicalNodeMenuPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalNodeMenuPlugin.js"
|
"require": "./LexicalNodeMenuPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalNodeMenuPlugin.js": {
|
"./LexicalNodeMenuPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalNodeMenuPlugin.d.ts",
|
"types": "./LexicalNodeMenuPlugin.d.ts",
|
||||||
"default": "./LexicalNodeMenuPlugin.esm.js"
|
"default": "./LexicalNodeMenuPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalNodeMenuPlugin.js"
|
"require": "./LexicalNodeMenuPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalOnChangePlugin": {
|
"./LexicalOnChangePlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalOnChangePlugin.d.ts",
|
"types": "./LexicalOnChangePlugin.d.ts",
|
||||||
"default": "./LexicalOnChangePlugin.esm.js"
|
"default": "./LexicalOnChangePlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalOnChangePlugin.js"
|
"require": "./LexicalOnChangePlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalOnChangePlugin.js": {
|
"./LexicalOnChangePlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalOnChangePlugin.d.ts",
|
"types": "./LexicalOnChangePlugin.d.ts",
|
||||||
"default": "./LexicalOnChangePlugin.esm.js"
|
"default": "./LexicalOnChangePlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalOnChangePlugin.js"
|
"require": "./LexicalOnChangePlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalPlainTextPlugin": {
|
"./LexicalPlainTextPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalPlainTextPlugin.d.ts",
|
"types": "./LexicalPlainTextPlugin.d.ts",
|
||||||
"default": "./LexicalPlainTextPlugin.esm.js"
|
"default": "./LexicalPlainTextPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalPlainTextPlugin.js"
|
"require": "./LexicalPlainTextPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalPlainTextPlugin.js": {
|
"./LexicalPlainTextPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalPlainTextPlugin.d.ts",
|
"types": "./LexicalPlainTextPlugin.d.ts",
|
||||||
"default": "./LexicalPlainTextPlugin.esm.js"
|
"default": "./LexicalPlainTextPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalPlainTextPlugin.js"
|
"require": "./LexicalPlainTextPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalRichTextPlugin": {
|
"./LexicalRichTextPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalRichTextPlugin.d.ts",
|
"types": "./LexicalRichTextPlugin.d.ts",
|
||||||
"default": "./LexicalRichTextPlugin.esm.js"
|
"default": "./LexicalRichTextPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalRichTextPlugin.js"
|
"require": "./LexicalRichTextPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalRichTextPlugin.js": {
|
"./LexicalRichTextPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalRichTextPlugin.d.ts",
|
"types": "./LexicalRichTextPlugin.d.ts",
|
||||||
"default": "./LexicalRichTextPlugin.esm.js"
|
"default": "./LexicalRichTextPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalRichTextPlugin.js"
|
"require": "./LexicalRichTextPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalTabIndentationPlugin": {
|
"./LexicalTabIndentationPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalTabIndentationPlugin.d.ts",
|
"types": "./LexicalTabIndentationPlugin.d.ts",
|
||||||
"default": "./LexicalTabIndentationPlugin.esm.js"
|
"default": "./LexicalTabIndentationPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalTabIndentationPlugin.js"
|
"require": "./LexicalTabIndentationPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalTabIndentationPlugin.js": {
|
"./LexicalTabIndentationPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalTabIndentationPlugin.d.ts",
|
"types": "./LexicalTabIndentationPlugin.d.ts",
|
||||||
"default": "./LexicalTabIndentationPlugin.esm.js"
|
"default": "./LexicalTabIndentationPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalTabIndentationPlugin.js"
|
"require": "./LexicalTabIndentationPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalTableOfContents": {
|
"./LexicalTableOfContents": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalTableOfContents.d.ts",
|
"types": "./LexicalTableOfContents.d.ts",
|
||||||
"default": "./LexicalTableOfContents.esm.js"
|
"default": "./LexicalTableOfContents.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalTableOfContents.js"
|
"require": "./LexicalTableOfContents.js"
|
||||||
},
|
},
|
||||||
"./LexicalTableOfContents.js": {
|
"./LexicalTableOfContents.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalTableOfContents.d.ts",
|
"types": "./LexicalTableOfContents.d.ts",
|
||||||
"default": "./LexicalTableOfContents.esm.js"
|
"default": "./LexicalTableOfContents.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalTableOfContents.js"
|
"require": "./LexicalTableOfContents.js"
|
||||||
},
|
},
|
||||||
"./LexicalTablePlugin": {
|
"./LexicalTablePlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalTablePlugin.d.ts",
|
"types": "./LexicalTablePlugin.d.ts",
|
||||||
"default": "./LexicalTablePlugin.esm.js"
|
"default": "./LexicalTablePlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalTablePlugin.js"
|
"require": "./LexicalTablePlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalTablePlugin.js": {
|
"./LexicalTablePlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalTablePlugin.d.ts",
|
"types": "./LexicalTablePlugin.d.ts",
|
||||||
"default": "./LexicalTablePlugin.esm.js"
|
"default": "./LexicalTablePlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalTablePlugin.js"
|
"require": "./LexicalTablePlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalTreeView": {
|
"./LexicalTreeView": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalTreeView.d.ts",
|
"types": "./LexicalTreeView.d.ts",
|
||||||
"default": "./LexicalTreeView.esm.js"
|
"default": "./LexicalTreeView.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalTreeView.js"
|
"require": "./LexicalTreeView.js"
|
||||||
},
|
},
|
||||||
"./LexicalTreeView.js": {
|
"./LexicalTreeView.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalTreeView.d.ts",
|
"types": "./LexicalTreeView.d.ts",
|
||||||
"default": "./LexicalTreeView.esm.js"
|
"default": "./LexicalTreeView.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalTreeView.js"
|
"require": "./LexicalTreeView.js"
|
||||||
},
|
},
|
||||||
"./LexicalTypeaheadMenuPlugin": {
|
"./LexicalTypeaheadMenuPlugin": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalTypeaheadMenuPlugin.d.ts",
|
"types": "./LexicalTypeaheadMenuPlugin.d.ts",
|
||||||
"default": "./LexicalTypeaheadMenuPlugin.esm.js"
|
"default": "./LexicalTypeaheadMenuPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalTypeaheadMenuPlugin.js"
|
"require": "./LexicalTypeaheadMenuPlugin.js"
|
||||||
},
|
},
|
||||||
"./LexicalTypeaheadMenuPlugin.js": {
|
"./LexicalTypeaheadMenuPlugin.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./LexicalTypeaheadMenuPlugin.d.ts",
|
"types": "./LexicalTypeaheadMenuPlugin.d.ts",
|
||||||
"default": "./LexicalTypeaheadMenuPlugin.esm.js"
|
"default": "./LexicalTypeaheadMenuPlugin.mjs"
|
||||||
},
|
},
|
||||||
"require": "./LexicalTypeaheadMenuPlugin.js"
|
"require": "./LexicalTypeaheadMenuPlugin.js"
|
||||||
},
|
},
|
||||||
"./useLexicalEditable": {
|
"./useLexicalEditable": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./useLexicalEditable.d.ts",
|
"types": "./useLexicalEditable.d.ts",
|
||||||
"default": "./useLexicalEditable.esm.js"
|
"default": "./useLexicalEditable.mjs"
|
||||||
},
|
},
|
||||||
"require": "./useLexicalEditable.js"
|
"require": "./useLexicalEditable.js"
|
||||||
},
|
},
|
||||||
"./useLexicalEditable.js": {
|
"./useLexicalEditable.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./useLexicalEditable.d.ts",
|
"types": "./useLexicalEditable.d.ts",
|
||||||
"default": "./useLexicalEditable.esm.js"
|
"default": "./useLexicalEditable.mjs"
|
||||||
},
|
},
|
||||||
"require": "./useLexicalEditable.js"
|
"require": "./useLexicalEditable.js"
|
||||||
},
|
},
|
||||||
"./useLexicalIsTextContentEmpty": {
|
"./useLexicalIsTextContentEmpty": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./useLexicalIsTextContentEmpty.d.ts",
|
"types": "./useLexicalIsTextContentEmpty.d.ts",
|
||||||
"default": "./useLexicalIsTextContentEmpty.esm.js"
|
"default": "./useLexicalIsTextContentEmpty.mjs"
|
||||||
},
|
},
|
||||||
"require": "./useLexicalIsTextContentEmpty.js"
|
"require": "./useLexicalIsTextContentEmpty.js"
|
||||||
},
|
},
|
||||||
"./useLexicalIsTextContentEmpty.js": {
|
"./useLexicalIsTextContentEmpty.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./useLexicalIsTextContentEmpty.d.ts",
|
"types": "./useLexicalIsTextContentEmpty.d.ts",
|
||||||
"default": "./useLexicalIsTextContentEmpty.esm.js"
|
"default": "./useLexicalIsTextContentEmpty.mjs"
|
||||||
},
|
},
|
||||||
"require": "./useLexicalIsTextContentEmpty.js"
|
"require": "./useLexicalIsTextContentEmpty.js"
|
||||||
},
|
},
|
||||||
"./useLexicalNodeSelection": {
|
"./useLexicalNodeSelection": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./useLexicalNodeSelection.d.ts",
|
"types": "./useLexicalNodeSelection.d.ts",
|
||||||
"default": "./useLexicalNodeSelection.esm.js"
|
"default": "./useLexicalNodeSelection.mjs"
|
||||||
},
|
},
|
||||||
"require": "./useLexicalNodeSelection.js"
|
"require": "./useLexicalNodeSelection.js"
|
||||||
},
|
},
|
||||||
"./useLexicalNodeSelection.js": {
|
"./useLexicalNodeSelection.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./useLexicalNodeSelection.d.ts",
|
"types": "./useLexicalNodeSelection.d.ts",
|
||||||
"default": "./useLexicalNodeSelection.esm.js"
|
"default": "./useLexicalNodeSelection.mjs"
|
||||||
},
|
},
|
||||||
"require": "./useLexicalNodeSelection.js"
|
"require": "./useLexicalNodeSelection.js"
|
||||||
},
|
},
|
||||||
"./useLexicalSubscription": {
|
"./useLexicalSubscription": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./useLexicalSubscription.d.ts",
|
"types": "./useLexicalSubscription.d.ts",
|
||||||
"default": "./useLexicalSubscription.esm.js"
|
"default": "./useLexicalSubscription.mjs"
|
||||||
},
|
},
|
||||||
"require": "./useLexicalSubscription.js"
|
"require": "./useLexicalSubscription.js"
|
||||||
},
|
},
|
||||||
"./useLexicalSubscription.js": {
|
"./useLexicalSubscription.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./useLexicalSubscription.d.ts",
|
"types": "./useLexicalSubscription.d.ts",
|
||||||
"default": "./useLexicalSubscription.esm.js"
|
"default": "./useLexicalSubscription.mjs"
|
||||||
},
|
},
|
||||||
"require": "./useLexicalSubscription.js"
|
"require": "./useLexicalSubscription.js"
|
||||||
},
|
},
|
||||||
"./useLexicalTextEntity": {
|
"./useLexicalTextEntity": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./useLexicalTextEntity.d.ts",
|
"types": "./useLexicalTextEntity.d.ts",
|
||||||
"default": "./useLexicalTextEntity.esm.js"
|
"default": "./useLexicalTextEntity.mjs"
|
||||||
},
|
},
|
||||||
"require": "./useLexicalTextEntity.js"
|
"require": "./useLexicalTextEntity.js"
|
||||||
},
|
},
|
||||||
"./useLexicalTextEntity.js": {
|
"./useLexicalTextEntity.js": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./useLexicalTextEntity.d.ts",
|
"types": "./useLexicalTextEntity.d.ts",
|
||||||
"default": "./useLexicalTextEntity.esm.js"
|
"default": "./useLexicalTextEntity.mjs"
|
||||||
},
|
},
|
||||||
"require": "./useLexicalTextEntity.js"
|
"require": "./useLexicalTextEntity.js"
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-rich-text"
|
"directory": "packages/lexical-rich-text"
|
||||||
},
|
},
|
||||||
"module": "LexicalRichText.esm.js",
|
"module": "LexicalRichText.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-selection"
|
"directory": "packages/lexical-selection"
|
||||||
},
|
},
|
||||||
"module": "LexicalSelection.esm.js",
|
"module": "LexicalSelection.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-table"
|
"directory": "packages/lexical-table"
|
||||||
},
|
},
|
||||||
"module": "LexicalTable.esm.js",
|
"module": "LexicalTable.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-text"
|
"directory": "packages/lexical-text"
|
||||||
},
|
},
|
||||||
"module": "LexicalText.esm.js",
|
"module": "LexicalText.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-utils"
|
"directory": "packages/lexical-utils"
|
||||||
},
|
},
|
||||||
"module": "LexicalUtils.esm.js",
|
"module": "LexicalUtils.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical-yjs"
|
"directory": "packages/lexical-yjs"
|
||||||
},
|
},
|
||||||
"module": "LexicalYjs.esm.js",
|
"module": "LexicalYjs.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
"url": "https://github.com/facebook/lexical",
|
"url": "https://github.com/facebook/lexical",
|
||||||
"directory": "packages/lexical"
|
"directory": "packages/lexical"
|
||||||
},
|
},
|
||||||
"module": "Lexical.esm.js",
|
"module": "Lexical.mjs",
|
||||||
"sideEffects": false
|
"sideEffects": false
|
||||||
}
|
}
|
||||||
|
@ -149,7 +149,7 @@ Object.keys(wwwMappings).forEach((mapping) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function getExtension(format) {
|
function getExtension(format) {
|
||||||
return `${format === 'esm' ? '.esm' : ''}.js`;
|
return `.${format === 'esm' ? 'm' : ''}js`;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function build(name, inputFile, outputPath, outputFile, isProd, format) {
|
async function build(name, inputFile, outputPath, outputFile, isProd, format) {
|
||||||
|
@ -55,7 +55,19 @@ function updateVersion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function withEsmExtension(fileName) {
|
function withEsmExtension(fileName) {
|
||||||
return fileName.replace(/\.js$/, '.esm.js');
|
return fileName.replace(/\.js$/, '.mjs');
|
||||||
|
}
|
||||||
|
|
||||||
|
function exportEntry(file) {
|
||||||
|
return {
|
||||||
|
import: {
|
||||||
|
types: `./${file.replace(/\.js$/, '.d.ts')}`,
|
||||||
|
// webpack requires default to be the last entry per #5731
|
||||||
|
// eslint-disable-next-line sort-keys-fix/sort-keys-fix
|
||||||
|
default: `./${withEsmExtension(file)}`,
|
||||||
|
},
|
||||||
|
require: `./${file}`,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateModule(packageJSON, pkg) {
|
function updateModule(packageJSON, pkg) {
|
||||||
@ -68,23 +80,12 @@ function updateModule(packageJSON, pkg) {
|
|||||||
const exports = {};
|
const exports = {};
|
||||||
for (const file of fs.readdirSync(`./packages/${pkg}/dist`)) {
|
for (const file of fs.readdirSync(`./packages/${pkg}/dist`)) {
|
||||||
if (/^[^.]+\.js$/.test(file)) {
|
if (/^[^.]+\.js$/.test(file)) {
|
||||||
|
const entry = exportEntry(file);
|
||||||
// support for import "@lexical/react/LexicalComposer"
|
// support for import "@lexical/react/LexicalComposer"
|
||||||
exports[`./${file.replace(/\.js$/, '')}`] = {
|
exports[`./${file.replace(/\.js$/, '')}`] = entry;
|
||||||
import: {
|
|
||||||
default: `./${withEsmExtension(file)}`,
|
|
||||||
types: `./${file.replace(/\.js$/, '.d.ts')}`,
|
|
||||||
},
|
|
||||||
require: `./${file}`,
|
|
||||||
};
|
|
||||||
// support for import "@lexical/react/LexicalComposer.js"
|
// support for import "@lexical/react/LexicalComposer.js"
|
||||||
// @mdxeditor/editor uses this at least as of 2.13.1
|
// @mdxeditor/editor uses this at least as of 2.13.1
|
||||||
exports[`./${file}`] = {
|
exports[`./${file}`] = entry;
|
||||||
import: {
|
|
||||||
default: `./${withEsmExtension(file)}`,
|
|
||||||
types: `./${file.replace(/\.js$/, '.d.ts')}`,
|
|
||||||
},
|
|
||||||
require: `./${file}`,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
packageJSON.exports = exports;
|
packageJSON.exports = exports;
|
||||||
|
Reference in New Issue
Block a user