mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types(Poppperjs): export types (#8165)
This commit is contained in:
parent
9e05d21445
commit
b410ea46f1
@ -14,5 +14,8 @@ export default {
|
|||||||
format: 'esm',
|
format: 'esm',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
plugins: [nodeResolve(), babel({ babelHelpers: 'runtime' })],
|
plugins: [
|
||||||
|
babel({ babelHelpers: 'runtime', extensions: ['.js', '.ts'] }),
|
||||||
|
nodeResolve(),
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import { createPopper } from '@popperjs/core/lib/popper-lite';
|
import { createPopper } from '@popperjs/core/lib/popper-lite';
|
||||||
import offsetModifier from '@popperjs/core/lib/modifiers/offset';
|
import offsetModifier from '@popperjs/core/lib/modifiers/offset';
|
||||||
|
import type { Instance, Placement } from '@popperjs/core';
|
||||||
|
|
||||||
export { createPopper, offsetModifier };
|
export { createPopper, offsetModifier };
|
||||||
|
export type { Instance, Placement };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user