Skip to content

Commit 497fda7

Browse files
committed
fix: resolve ESM import issue in the package.
1 parent f8ef268 commit 497fda7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

core/src/components/ToolBar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Fragment } from 'react';
2-
import { type ICommand, defaultCommands } from '../../commands';
2+
import { type ICommand, defaultCommands } from '../../commands/index';
33
import { IMarkdownEditor, ToolBarProps } from '../..';
44
import './index.less';
55

core/src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import { EditorView, type ViewUpdate } from '@codemirror/view';
55
import * as events from '@uiw/codemirror-extensions-events';
66
import CodeMirror, { type ReactCodeMirrorProps, type ReactCodeMirrorRef } from '@uiw/react-codemirror';
77
import MarkdownPreview, { MarkdownPreviewProps } from '@uiw/react-markdown-preview';
8-
import ToolBar, { type Commands } from './components/ToolBar';
9-
import { getCommands, getModeCommands } from './commands';
8+
import ToolBar, { type Commands } from './components/ToolBar/index';
9+
import { getCommands, getModeCommands } from './commands/index';
1010
import { defaultTheme } from './theme';
1111
import './index.less';
1212

1313
export * from './theme';
14-
export * from './commands';
14+
export * from './commands/index';
1515
export * from '@uiw/react-markdown-preview';
1616

1717
export const scrollerStyle = EditorView.theme({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"lint-staged": "^15.0.1",
3535
"lerna": "^8.0.0",
3636
"prettier": "^3.0.0",
37-
"tsbb": "^4.1.14"
37+
"tsbb": "^4.5.1"
3838
}
3939
}

0 commit comments

Comments
 (0)