vite
vite copied to clipboard
Next generation frontend tooling. It's fast!
### Describe the bug in this case. when i have a `.env` file ```shell VITE_APP_BASE_ROUTE=/ VITE_APP_BASE_URL=$VITE_APP_BASE_ROUTE ``` and when i build for some mode . i will add `.env.mode` like...
### Describe the bug I'm using the `?url` suffix to import a TypeScript file to use it in an AudioWorklet. ```js import workletUrl from './audio.worklet.ts?url'; const audioContext = new AudioContext();...
### Clear and concise description of the problem Currently when building in lib mode we do not minify the ES build because that would remove pure annotations and break treeshaking....
### Describe the bug When `base` is set to relative (empty string or `'./'`) then in prod build when dynamically importing a module that has some CSS dependencies these dependencies...
### Description There's one failing test for legacy for some reason. WIP Ref #9976 ### Additional context --- ### What is the purpose of this pull request? - [ ]...
### Describe the bug when I use React.lazy(),like this: ``` // router/index.ts import React from 'react'; const Home = React.lazy(() => import('../views/Home')); const About = React.lazy(() => import('../views/About')); const routes...
### Describe the bug Trying to `pnpm install` a freshly cloned Vite repo leads to `ERR_PNPM_NO_MATCHING_VERSION No matching version found for [email protected]` : ![image](https://user-images.githubusercontent.com/11949623/188269675-321a9f6f-d48e-4a59-a3f5-927ba235f517.png) Note that I have `strict-peer-dependencies=false` in...
### Description Following the following PR : https://github.com/vitejs/vite/pull/2440 This one add the `css.postcssImportOptions` config which is passed to `postcss-import` in order to customize its behavior. If that sounds good to...
### Description While I'm doing my efforts in sveltejs/kit#6265 to add legacy support to SvelteKit on the Vite way, I had noticed that when navigating from one page to the...
### Clear and concise description of the problem Hey there! Recently came across a problem where we need to load some mocks or test files conditionally, like this: This is...