Skip to content

Commit

Permalink
🐛 remove vite react plugin, add react-dom to external packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mlshv committed Dec 1, 2022
1 parent 281f093 commit 769b2f4
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 33 deletions.
111 changes: 83 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"classnames": "2.3.2"
},
"peerDependencies": {
"react": "18.2.0"
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@babel/core": "7.20.2",
Expand All @@ -49,12 +50,10 @@
"@storybook/testing-library": "0.0.13",
"@types/react": "18.0.24",
"@types/react-dom": "18.0.8",
"@vitejs/plugin-react": "2.2.0",
"autoprefixer": "10.4.13",
"babel-loader": "8.3.0",
"json": "11.0.0",
"postcss": "8.4.18",
"react-dom": "18.2.0",
"tailwindcss": "3.2.2",
"typescript": "4.6.4",
"vite": "3.2.3",
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { defineConfig } from 'vite'
import path from 'node:path'
import react from '@vitejs/plugin-react'
import dts from 'vite-plugin-dts'
import packageJson from './package.json'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
dts({
insertTypesEntry: true,
}),
Expand All @@ -25,6 +23,7 @@ export default defineConfig({
output: {
globals: {
react: 'React',
'react-dom': 'ReactDOM',
},
},
},
Expand Down

0 comments on commit 769b2f4

Please sign in to comment.