mirror of
https://github.com/stackblitz/bolt.new
synced 2024-11-27 06:20:40 +00:00
22 lines
597 B
TypeScript
22 lines
597 B
TypeScript
|
import { cloudflareDevProxyVitePlugin as remixCloudflareDevProxy, vitePlugin as remixVitePlugin } from '@remix-run/dev';
|
||
|
import UnoCSS from 'unocss/vite';
|
||
|
import { defineConfig } from 'vite';
|
||
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
||
|
|
||
|
export default defineConfig((config) => {
|
||
|
return {
|
||
|
plugins: [
|
||
|
config.mode !== 'test' && remixCloudflareDevProxy(),
|
||
|
remixVitePlugin({
|
||
|
future: {
|
||
|
v3_fetcherPersist: true,
|
||
|
v3_relativeSplatPath: true,
|
||
|
v3_throwAbortReason: true,
|
||
|
},
|
||
|
}),
|
||
|
UnoCSS(),
|
||
|
tsconfigPaths(),
|
||
|
],
|
||
|
};
|
||
|
});
|