milestone 23 s2: react aria primitives and their cluster
This commit is contained in:
+9
-1
@@ -7,7 +7,14 @@ import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig(({ mode }) => ({
|
||||
plugins: [
|
||||
stylex.vite({ useCSSLayers: true, dev: mode === "development", runtimeInjection: false }),
|
||||
// StyleX resolves the `.stylex.ts` theme file itself, so it needs the `@`
|
||||
// alias too — `resolve.alias` below is Vite's and the plugin cannot see it.
|
||||
stylex.vite({
|
||||
useCSSLayers: true,
|
||||
dev: mode === "development",
|
||||
runtimeInjection: false,
|
||||
aliases: { "@/*": [fileURLToPath(new URL("./src/*", import.meta.url))] },
|
||||
}),
|
||||
react(),
|
||||
tailwindcss(),
|
||||
],
|
||||
@@ -25,5 +32,6 @@ export default defineConfig(({ mode }) => ({
|
||||
test: {
|
||||
environment: "jsdom",
|
||||
globals: true,
|
||||
setupFiles: ["./vitest.setup.ts"],
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user