mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-11 20:23:36 +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'
|
||||
|
||||
export default {
|
||||
external: [/@tiptap\/pm\/.*/],
|
||||
external: [/@tiptap\/pm\/.*/, 'lodash/debounce'],
|
||||
input: 'src/index.ts',
|
||||
output: [
|
||||
{
|
||||
|
@ -3,7 +3,7 @@ import {
|
||||
} from '@tiptap/core'
|
||||
import { EditorState, Plugin, PluginKey } from '@tiptap/pm/state'
|
||||
import { EditorView } from '@tiptap/pm/view'
|
||||
import { debounce } from 'lodash'
|
||||
import debounce from 'lodash/debounce'
|
||||
import tippy, { Instance, Props } from 'tippy.js'
|
||||
|
||||
export interface BubbleMenuPluginProps {
|
||||
|
Loading…
Reference in New Issue
Block a user