From 19600611727138a3e04609048369babf797b2c74 Mon Sep 17 00:00:00 2001 From: jdickman Date: Wed, 24 Jan 2024 20:35:39 +0000 Subject: [PATCH] build: remove react/jsx-runtime in bundle --- package.json | 3 +-- src/components/index.ts | 2 +- vite.config.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) 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',