types(Poppperjs): export types (#8165)

This commit is contained in:
neverland 2021-02-16 12:54:37 +08:00 committed by GitHub
parent 9e05d21445
commit b410ea46f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -14,5 +14,8 @@ export default {
format: 'esm',
},
],
plugins: [nodeResolve(), babel({ babelHelpers: 'runtime' })],
plugins: [
babel({ babelHelpers: 'runtime', extensions: ['.js', '.ts'] }),
nodeResolve(),
],
};

View File

@ -1,4 +1,6 @@
import { createPopper } from '@popperjs/core/lib/popper-lite';
import offsetModifier from '@popperjs/core/lib/modifiers/offset';
import type { Instance, Placement } from '@popperjs/core';
export { createPopper, offsetModifier };
export type { Instance, Placement };