Skip to content

Commit 2682e62

Browse files
committed
build: vite resolves through tsconfig now
1 parent e5fe1f9 commit 2682e62

File tree

4 files changed

+77
-117
lines changed

4 files changed

+77
-117
lines changed

package-lock.json

Lines changed: 47 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"react-dom": "^18.3.1",
4444
"react-icons": "^5.2.1",
4545
"react-router-dom": "^6.20.0",
46+
"vite-tsconfig-paths": "5.1.4",
4647
"y-partykit": "^0.0.25",
4748
"yjs": "^13.6.15"
4849
},

playground/vite.config.mts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* eslint-disable import/no-extraneous-dependencies */
2+
import react from "@vitejs/plugin-react";
3+
import auto from "autoprefixer";
4+
import { webpackStats } from "rollup-plugin-webpack-stats";
5+
import tailwindcss from "tailwindcss";
6+
import nesting from "tailwindcss/nesting";
7+
import { defineConfig } from "vite";
8+
import tsconfigPaths from "vite-tsconfig-paths";
9+
10+
// https://vitejs.dev/config/
11+
export default defineConfig((conf) => ({
12+
plugins: [react(), tsconfigPaths(), webpackStats()] as any,
13+
optimizeDeps: {
14+
// link: ['vite-react-ts-components'],
15+
},
16+
build: {
17+
sourcemap: true,
18+
},
19+
css: {
20+
postcss: {
21+
plugins: [
22+
nesting,
23+
tailwindcss("../packages/shadcn/tailwind.config.js"),
24+
auto,
25+
],
26+
},
27+
// postcss: "../packages/shadcn/postcss.config.js",
28+
},
29+
}));

playground/vite.config.ts

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)