Skip to content

Commit

Permalink
fix: build errors because of iife
Browse files Browse the repository at this point in the history
  • Loading branch information
avarayr committed Sep 20, 2024
1 parent 326f68f commit c0f2f93
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 25 deletions.
Binary file modified bun.lockb
Binary file not shown.
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-switch": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@tanstack/react-query": "^5.55.4",
"@tanstack/react-router": "^1.57.9",
"@tanstack/router-devtools": "^1.57.9",
"@tanstack/router-vite-plugin": "^1.57.9",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-router": "^1.58.3",
"@tanstack/router-devtools": "^1.58.3",
"@tanstack/router-vite-plugin": "^1.58.4",
"@trpc/client": "^11.0.0-rc.502",
"@trpc/react-query": "^11.0.0-rc.364",
"@trpc/server": "^11.0.0-rc.364",
Expand All @@ -49,19 +49,19 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"color": "^4.2.3",
"date-fns": "^3.6.0",
"date-fns": "^4.1.0",
"dotenv": "^16.4.5",
"eslint-plugin-react": "^7.35.2",
"eslint-plugin-react-compiler": "^0.0.0-experimental-5c9a529-20240911",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-react-compiler": "^0.0.0-experimental-92aaa43-20240919",
"eventsource-parser": "^2.0.1",
"framer-motion": "12.0.0-alpha.1",
"hono": "^4.6.1",
"jotai": "^2.9.3",
"hono": "^4.6.2",
"jotai": "^2.10.0",
"lodash": "^4.17.21",
"lucide-react": "^0.439.0",
"lucide-react": "^0.441.0",
"markdown-to-jsx": "^7.5.0",
"ollama": "^0.5.9",
"openai": "^4.59.0",
"openai": "^4.63.0",
"prismjs": "^1.29.0",
"qrcode": "^1.5.4",
"react": "^19.0.0-rc-d6cb4e77-20240911",
Expand All @@ -83,9 +83,9 @@
"superjson": "^2.2.1",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"tsx": "^4.19.0",
"tsx": "^4.19.1",
"usehooks-ts": "^3.1.0",
"vinxi": "^0.4.2",
"vinxi": "^0.4.3",
"virtua": "^0.34.2",
"vite-plugin-pwa": "^0.20.5",
"vite-tsconfig-paths": "^5.0.1",
Expand All @@ -95,24 +95,24 @@
"devDependencies": {
"@types/bun": "^1.1.9",
"@types/eslint": "^9.6.1",
"@types/node": "^22.5.4",
"@types/node": "^22.5.5",
"@types/qrcode": "^1.5.5",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react-scroll-to-bottom": "^4.2.5",
"@types/web-push": "^3.6.3",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"@typescript-eslint/eslint-plugin": "^8.6.0",
"@typescript-eslint/parser": "^8.6.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.11",
"postcss": "^8.4.45",
"eslint-plugin-react-refresh": "^0.4.12",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwindcss": "^3.4.10",
"tailwindcss": "^3.4.12",
"typescript": "^5.6.2",
"vite": "^5.4.4",
"vite": "^5.4.7",
"workbox-core": "^7.1.0",
"workbox-precaching": "^7.1.0",
"workbox-window": "^7.1.0"
Expand Down
16 changes: 11 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ export default createApp({
type: "spa",
handler: "./index.html",
plugins: () => [
config("custom", {
optimizeDeps: {
include: ["react", "react-dom", "openai"],
},
worker: {
format: "es",
},
}),
tsconfigPaths(),
react({
babel: {
Expand All @@ -46,6 +54,9 @@ export default createApp({
strategies: "injectManifest",
registerType: "autoUpdate",
useCredentials: true,
injectManifest: {
rollupFormat: "es",
},
devOptions: {
enabled: true,
type: "module",
Expand Down Expand Up @@ -76,11 +87,6 @@ export default createApp({
},
}),
TanStackRouterVite(),
config("custom", {
optimizeDeps: {
include: ["react", "react-dom", "openai"],
},
}),
],
},
],
Expand Down

0 comments on commit c0f2f93

Please sign in to comment.