diff --git a/package.json b/package.json index 87ecaedb2..c5ae94f0e 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,7 @@ "main": "dist/aquarium.mjs", "files": [ "dist/aquarium.mjs", - "dist/index.d.ts", - "dist/components" + "dist/index.d.ts" ], "dependencies": { "@fortawesome/fontawesome-svg-core": "6.5.1", diff --git a/src/components/index.ts b/src/components/index.ts index 363c27d41..c7f900d10 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,4 +1,4 @@ -export { Button, type IButtonProps } from "./general/Button/Button"; +export { Button, type IButtonProps } from "./general/Button/Button"; export { FloatButton, type IFloatButtonProps } from "./general/FloatButton/FloatButton"; export { Rate, type IRateProps } from "./data-entry/Rate/Rate"; export { Form, type IFormProps } from "./data-entry/Form/Form"; diff --git a/vite.config.js b/vite.config.js index 10e6892a2..070a070ad 100644 --- a/vite.config.js +++ b/vite.config.js @@ -19,7 +19,7 @@ export default defineConfig({ fileName: 'aquarium', }, rollupOptions: { - external: ['react', 'antd'], + external: ['react', 'react/jsx-runtime', 'antd'], output: { globals: { antd: 'antd',