Skip to content

Commit

Permalink
Merge pull request #70 from IgnacioNMiranda/chore/update-bundle
Browse files Browse the repository at this point in the history
chore: remove react/jsx-runtime from bundle
  • Loading branch information
IgnacioNMiranda committed Aug 9, 2023
2 parents 8e7c193 + 85e881e commit 941c79a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/components/atoms/at-button/at-button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { describe, it, expect } from 'vitest'
import { render, screen } from '@testing-library/react'
import { AtButton } from './index'

// The two tests marked with concurrent will be run in parallel
describe('AtButton', () => {
it('should render', async () => {
const label = 'test button'
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ const app = async (): Promise<UserConfigExport> => {
fileName: (format) => `${name}.${format}.js`,
},
rollupOptions: {
external: ['react', 'react-dom', 'tailwindcss'],
external: ['react', 'react/jsx-runtime', 'react-dom', 'tailwindcss'],
output: {
globals: {
react: 'React',
'react/jsx-runtime': 'react/jsx-runtime',
'react-dom': 'ReactDOM',
tailwindcss: 'tailwindcss',
},
Expand Down

0 comments on commit 941c79a

Please sign in to comment.