Skip to content

Commit

Permalink
Remove Tailwind from rollup external deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mderazon committed Oct 27, 2023
1 parent f7aedda commit fbb9c1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import path from 'node:path';
import { defineConfig } from 'vitest/config';
import dts from 'vite-plugin-dts';
import tailwindcss from 'tailwindcss';
import { peerDependencies } from './package.json';
import { UserConfigExport } from 'vite';
import { name } from './package.json';

Expand Down Expand Up @@ -34,7 +35,7 @@ const app = async (): Promise<UserConfigExport> => {
fileName: (format) => `${formattedName}.${format}.js`,
},
rollupOptions: {
external: ['react', 'react/jsx-runtime', 'react-dom', 'tailwindcss'],
external: [...Object.keys(peerDependencies)],
output: {
globals: {
react: 'React',
Expand Down

0 comments on commit fbb9c1f

Please sign in to comment.