Skip to content

Commit

Permalink
build: remove react/jsx-runtime in bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-dickman committed Jan 24, 2024
1 parent 222f1b5 commit 1960061
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineConfig({
fileName: 'aquarium',
},
rollupOptions: {
external: ['react', 'antd'],
external: ['react', 'react/jsx-runtime', 'antd'],
output: {
globals: {
antd: 'antd',
Expand Down

0 comments on commit 1960061

Please sign in to comment.