Skip to content

Commit 4118472

Browse files
fix: 移除 barrel index.js 中的 export type 语句,避免 esbuild 解析失败
1 parent 99ffd24 commit 4118472

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

packages/components/scripts/build.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ export { showToast, configureToast } from './toast.js';
4646
export { createConfigPanel } from './config-panel.js';
4747
export { createFloatingPanel } from './floating-panel.js';
4848
export { createAnimatedSlider } from './animated-slider.js';
49-
export type { ToastOptions, ToastPosition } from './toast.js';
50-
export type { ConfigPanelOptions, ConfigField } from './config-panel.js';
51-
export type { FloatingPanelOptions } from './floating-panel.js';
52-
export type { AnimatedSliderOptions, AnimatedSliderInstance } from './animated-slider.js';
5349
`;
5450
writeFileSync(resolve(distDir, 'index.js'), barrel);
5551
console.log(' → dist/index.js (barrel)');

0 commit comments

Comments
 (0)