Skip to content

Commit

Permalink
chore: remove react/jsx-runtime from bundle
Browse files Browse the repository at this point in the history
Release-As: 2.0.2
  • Loading branch information
IgnacioNMiranda committed Aug 9, 2023
1 parent 8e7c193 commit 85e881e
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 85e881e

Please sign in to comment.