From 85e881ecf85ecad6aa356a90fad4f8ceb6ea9930 Mon Sep 17 00:00:00 2001 From: IgnacioNMiranda Date: Wed, 9 Aug 2023 16:59:57 -0400 Subject: [PATCH] chore: remove react/jsx-runtime from bundle Release-As: 2.0.2 --- src/lib/components/atoms/at-button/at-button.test.tsx | 1 - vite.config.ts | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/atoms/at-button/at-button.test.tsx b/src/lib/components/atoms/at-button/at-button.test.tsx index 4f4dc83..810d783 100644 --- a/src/lib/components/atoms/at-button/at-button.test.tsx +++ b/src/lib/components/atoms/at-button/at-button.test.tsx @@ -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' diff --git a/vite.config.ts b/vite.config.ts index 705d18a..18f847a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -27,10 +27,11 @@ const app = async (): Promise => { 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', },