We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e.g.
The text was updated successfully, but these errors were encountered:
I have adapted the Webpack example for Vite: https://github.com/jianyuan/learnkit/blob/d056ffea583643af0c3fa8181ee9243c81425bc5/vite.config.ts#L4-L16
Sorry, something went wrong.
vite.config.ts
import { vitePlugin as remix } from '@remix-run/dev' import { defineConfig } from 'vite' import tsconfigPaths from 'vite-tsconfig-paths' async function startVelite(isDev: boolean, isBuild: boolean) { if (!process.env.VELITE_STARTED && (isDev || isBuild)) { process.env.VELITE_STARTED = '1' const { build } = await import('velite') await build({ watch: isDev, clean: !isDev }) } } export default defineConfig(async ({ command, mode }) => { const isDev = mode === 'development' const isBuild = command === 'build' await startVelite(isDev, isBuild) return { plugins: [ remix({ future: { v3_fetcherPersist: true, v3_relativeSplatPath: true, v3_throwAbortReason: true, }, }), tsconfigPaths(), ], } })
No branches or pull requests
e.g.
The text was updated successfully, but these errors were encountered: