Skip to content

Commit

Permalink
chore: reduce build size
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Jul 27, 2024
1 parent a70f624 commit ac60c25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineConfig({
fileName: (format) => `components.${format}.js`,
},
rollupOptions: {
external: ['react', 'react-dom'],
external: ['react', 'react-dom', 'react/jsx-runtime', 'react-dom/client'],
output: {
globals: {
react: 'React',
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineConfig({
fileName: (format) => `icons.${format}.js`,
},
rollupOptions: {
external: ['react', 'react-dom'],
external: ['react', 'react-dom', 'react/jsx-runtime', 'react-dom/client'],
output: {
globals: {
react: 'React',
Expand Down

0 comments on commit ac60c25

Please sign in to comment.