mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-12 21:00:02 +08:00
fix(bubble-menu): fix lodash import
This commit is contained in:
parent
9e9e489368
commit
06a3d6300d
@ -9,7 +9,7 @@ import typescript from 'rollup-plugin-typescript2'
|
|||||||
import pkg from './package.json'
|
import pkg from './package.json'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
external: [/@tiptap\/pm\/.*/],
|
external: [/@tiptap\/pm\/.*/, 'lodash/debounce'],
|
||||||
input: 'src/index.ts',
|
input: 'src/index.ts',
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,7 @@ import {
|
|||||||
} from '@tiptap/core'
|
} from '@tiptap/core'
|
||||||
import { EditorState, Plugin, PluginKey } from '@tiptap/pm/state'
|
import { EditorState, Plugin, PluginKey } from '@tiptap/pm/state'
|
||||||
import { EditorView } from '@tiptap/pm/view'
|
import { EditorView } from '@tiptap/pm/view'
|
||||||
import { debounce } from 'lodash'
|
import debounce from 'lodash/debounce'
|
||||||
import tippy, { Instance, Props } from 'tippy.js'
|
import tippy, { Instance, Props } from 'tippy.js'
|
||||||
|
|
||||||
export interface BubbleMenuPluginProps {
|
export interface BubbleMenuPluginProps {
|
||||||
|
Loading…
Reference in New Issue
Block a user