Skip to content

Commit

Permalink
edit vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
antivixen committed Aug 28, 2023
1 parent 9326b01 commit c28703c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-plums-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@antivixen/react-if-else": patch
---

edit vite config
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,18 @@
"sourceType": "module"
}
},
"peerDependencies": {
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@testing-library/jest-dom": "^6.0.1",
"@testing-library/react": "^14.0.0",
"@types/react": ">=18.0.0",
"@types/react-dom": ">=18.0.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.4",
"eslint": "^8.47.0",
"eslint-plugin-react": "^7.33.2",
"jsdom": "^22.1.0",
"react": ">=18.0.0",
"react-dom": ">=18.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.1.3",
"vite": "^4.4.9",
"vite-plugin-dts": "^3.5.2",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

3 changes: 1 addition & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import dts from "vite-plugin-dts";
import * as packageJson from "./package.json";

export default defineConfig({
esbuild: {
Expand All @@ -18,7 +17,7 @@ export default defineConfig({
fileName: (format) => `index.${format}.js`,
},
rollupOptions: {
external: [...Object.keys(packageJson.peerDependencies)],
external: ["react", "react-dom"],
output: {
globals: {
react: "React",
Expand Down

0 comments on commit c28703c

Please sign in to comment.