Skip to content

Commit

Permalink
fix: remove react and react-dom as dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
seanes committed Jan 21, 2025
1 parent 91f656b commit d9c8f37
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ import { libInjectCss } from 'vite-plugin-lib-inject-css';
import { viteStaticCopy } from 'vite-plugin-static-copy';
import pkg from './package.json';

const dependencies = Object.keys({
...(pkg.devDependencies || {}),
...(pkg.peerDependencies || {}),
});
const dependencies = [
...Object.keys({
...(pkg.devDependencies || {}),
...(pkg.peerDependencies || {}),
}),
'react',
'react-dom',
];

// https://vitejs.dev/config/
export default () => {
Expand Down

0 comments on commit d9c8f37

Please sign in to comment.