sveltejs/svelte-preprocess
### [`v5.0.0`](https://togithub.com/sveltejs/svelte-preprocess/blob/HEAD/CHANGELOG.md#500-httpsgithubcomsveltejssvelte-preprocesscomparev4105v500-2022-12-10)
[Compare Source](https://togithub.com/sveltejs/svelte-preprocess/compare/78a0c5571e9271eb1a0881725b4d2ebbfbdcdaf4...v5.0.0)
##### Bug Fixes
- ๐ add sugarss v3 and v4 as supported ([3f2687b](https://togithub.com/sveltejs/svelte-preprocess/commit/3f2687bc2c3036c96a95a0d491a9491f18e5c28f))
- ๐ remove support for 'type' attribute ([07bc8aa](https://togithub.com/sveltejs/svelte-preprocess/commit/07bc8aae571300413c52af05554b08451d338443))
- ๐ remove support for custom default languages ([3d60856](https://togithub.com/sveltejs/svelte-preprocess/commit/3d6085611120895b5527f4e17868105d6ec81c4d))
- ๐ map .sss as .css to support sugarss extension ([2c0bd45](https://togithub.com/sveltejs/svelte-preprocess/commit/2c0bd4561fc3dd53ff525509925bcc9c5f7b436b))
##### Performance Improvements
- โก๏ธ remove support for deprecated node-sass ([a617fe1](https://togithub.com/sveltejs/svelte-preprocess/commit/a617fe13b0922188346775475325ab8af83c56f7))
##### BREAKING CHANGES
- ๐งจ Languages must be explicitly defined via the lang attribute.
- ๐งจ Minimum node version was bumped from 9 to 14
- ๐งจ Cannot use "type" attribute to identify the language of a style or
script tag anymore. Use `lang` instead
- ๐งจ node-sass is not supported anymore. Use `sass` instead
- minimum node version changed to v14
#### [4.10.7](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.5...v4.10.7) (2022-06-04)
##### Bug Fixes
- add pug const mixin ([#518](https://togithub.com/sveltejs/svelte-preprocess/issues/518)) ([0551a9b](https://togithub.com/sveltejs/svelte-preprocess/commit/0551a9b557ee18bb05a3e9021a8c9aa1f7b8c665)), closes [#467](https://togithub.com/sveltejs/svelte-preprocess/issues/467)
- paths in postcss sourcemap sources array ([#500](https://togithub.com/sveltejs/svelte-preprocess/issues/500)) ([2027375](https://togithub.com/sveltejs/svelte-preprocess/commit/2027375969255d11708340ee40eb2e3ded7ddb35))
- preserve `[@font-face](https://togithub.com/font-face)` inside `:global` block ([#486](https://togithub.com/sveltejs/svelte-preprocess/issues/486)) ([8064473](https://togithub.com/sveltejs/svelte-preprocess/commit/8064473ae107f6e2d34eb9590e4befa70ce4618c)), closes [#236](https://togithub.com/sveltejs/svelte-preprocess/issues/236)
- stylus - handle relative sourcemap sources([#513](https://togithub.com/sveltejs/svelte-preprocess/issues/513)) ([77bd3bf](https://togithub.com/sveltejs/svelte-preprocess/commit/77bd3bf69554afbc45d6f1e34a4eb5abf398a933))
#### [4.10.6](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.5...v4.10.6) (2022-04-13)
##### Bug Fixes
- paths in postcss sourcemap sources array ([#500](https://togithub.com/sveltejs/svelte-preprocess/issues/500)) ([2027375](https://togithub.com/sveltejs/svelte-preprocess/commit/2027375969255d11708340ee40eb2e3ded7ddb35))
- preserve `[@font-face](https://togithub.com/font-face)` inside `:global` block ([#486](https://togithub.com/sveltejs/svelte-preprocess/issues/486)) ([8064473](https://togithub.com/sveltejs/svelte-preprocess/commit/8064473ae107f6e2d34eb9590e4befa70ce4618c)), closes [#236](https://togithub.com/sveltejs/svelte-preprocess/issues/236)
#### [4.10.5](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.4...v4.10.5) (2022-04-04)
##### Bug Fixes
- always use absolute paths for less imports ([#495](https://togithub.com/sveltejs/svelte-preprocess/issues/495)) ([#496](https://togithub.com/sveltejs/svelte-preprocess/issues/496)) ([be0fda4](https://togithub.com/sveltejs/svelte-preprocess/commit/be0fda4ddbe95040221ff248ccbb492fb5555334))
#### [4.10.4](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.3...v4.10.4) (2022-02-23)
##### Bug Fixes
- only try to load external files with relative paths ([#487](https://togithub.com/sveltejs/svelte-preprocess/issues/487)) ([80d87ed](https://togithub.com/sveltejs/svelte-preprocess/commit/80d87edac4723401db47d06ed03bb6cd388c21d9))
#### [4.10.3](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.2...v4.10.3) (2022-02-09)
##### Bug Fixes
- add # and numbers to ts store regex ([#473](https://togithub.com/sveltejs/svelte-preprocess/issues/473)) ([881f3c9](https://togithub.com/sveltejs/svelte-preprocess/commit/881f3c9ad6118fb66b560494a67042944567e0ec)), closes [#466](https://togithub.com/sveltejs/svelte-preprocess/issues/466)
- adjust typescript peer dep ([#479](https://togithub.com/sveltejs/svelte-preprocess/issues/479)) ([68fae2c](https://togithub.com/sveltejs/svelte-preprocess/commit/68fae2c56fb3e22ff21f12c9aab74b42ad4f7bb8))
#### [4.10.2](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.1...v4.10.2) (2022-01-17)
##### Bug Fixes
- accept less v4 as peer dep ([#455](https://togithub.com/sveltejs/svelte-preprocess/issues/455)) ([fbc484a](https://togithub.com/sveltejs/svelte-preprocess/commit/fbc484a6d0394928c1318b70dfe007fed1d9fdac))
- better pug error message ([#448](https://togithub.com/sveltejs/svelte-preprocess/issues/448)) ([a239e82](https://togithub.com/sveltejs/svelte-preprocess/commit/a239e829295bde5f62383697266cefe7767dd0e2)), closes [#447](https://togithub.com/sveltejs/svelte-preprocess/issues/447)
- provide caller information to Babel ([#449](https://togithub.com/sveltejs/svelte-preprocess/issues/449)) ([51007ab](https://togithub.com/sveltejs/svelte-preprocess/commit/51007abf946ffdd1d407c6bcf86439d38e113626))
- ts preprocessor - consider store suffixed with number ([#461](https://togithub.com/sveltejs/svelte-preprocess/issues/461)) ([a7a94cf](https://togithub.com/sveltejs/svelte-preprocess/commit/a7a94cfb29f6ea85cfafd1afa2c61363f72cb4b3)), closes [sveltejs/svelte#7120](https://togithub.com/sveltejs/svelte/issues/7120)
#### [4.10.1](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.0...v4.10.1) (2021-12-17)
##### Bug Fixes
- adjust store regex ([#441](https://togithub.com/sveltejs/svelte-preprocess/issues/441)) ([85a86c8](https://togithub.com/sveltejs/svelte-preprocess/commit/85a86c86513f98c2b02f2d314a18b0e68378c8f6)), closes [#433](https://togithub.com/sveltejs/svelte-preprocess/issues/433)
- generate high resolution source map ([#443](https://togithub.com/sveltejs/svelte-preprocess/issues/443)) ([57012ba](https://togithub.com/sveltejs/svelte-preprocess/commit/57012ba9f87abfec99f061196fb955da4ccfa384))
vitejs/vite
### [`v4.0.0`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#400-2022-12-09)
[Compare Source](https://togithub.com/vitejs/vite/compare/v3.2.5...566d4c7bb51cf56550a5374ee46e1e1cbea1cf1f)
![Vite 4 Announcement Cover Image](/og-image-announcing-vite4.png)
Read the announcement blog post: [Announcing Vite 4](https://vitejs.dev/blog/announcing-vite4)
Quick links:
- [Docs](https://vitejs.dev)
- [Migration Guide](https://vitejs.dev/guide/migration)
Docs in other languages:
- [็ฎไฝไธญๆ](https://cn.vitejs.dev/)
- [ๆฅๆฌ่ช](https://ja.vitejs.dev/)
- [Espaรฑol](https://es.vitejs.dev/)
##### Main Changes
This major is smaller in scope compared to Vite 3, with the main objective of upgrading to Rollup 3. We've worked with the ecosystem to ensure a smooth upgrade path for this new major.
##### Rollup 3
Vite is now using [Rollup 3](https://togithub.com/vitejs/vite/issues/9870), which allowed us to simplify Vite's internal asset handling and has many improvements. See the [Rollup 3 release notes here](https://togithub.com/rollup/rollup/releases).
##### Framework Plugins out of the Vite core monorepo
[`@vitejs/plugin-vue`](https://togithub.com/vitejs/vite-plugin-vue) and [`@vitejs/plugin-react`](https://togithub.com/vitejs/vite-plugin-react) have been part of Vite core monorepo since the first versions of Vite. This helped us to get a close feedback loop when making changes as we were getting both Core and the plugins tested and released together. With [vite-ecosystem-ci](https://togithub.com/vitejs/vite-ecosystem-ci) we can get this feedback with these plugins developed on independent repositories, so from Vite 4, [they have been moved out of the Vite core monorepo](https://togithub.com/vitejs/vite/pull/11158). This is meaningful for Vite's framework-agnostic story, and will allow us to build independent teams to maintain each of the plugins. If you have bugs to report or features to request, please create issues on the new repositories moving forward: [`vitejs/vite-plugin-vue`](https://togithub.com/vitejs/vite-plugin-vue) and [`vitejs/vite-plugin-react`](https://togithub.com/vitejs/vite-plugin-react).
##### New React plugin using SWC during development
[SWC](https://swc.rs/) is now a mature replacement for [Babel](https://babeljs.io/), especially in the context of React projects. SWC's React Fast Refresh implementation is a lot faster than Babel, and for some projects, it is now a better alternative. From Vite 4, two plugins are available for React projects with different tradeoffs. We believe that both approaches are worth supporting at this point, and we'll continue to explore improvements to both plugins in the future.
##### [@vitejs/plugin-react](https://togithub.com/vitejs/plugin-react)
[@vitejs/plugin-react](https://togithub.com/vitejs/vite-plugin-react) is a plugin that uses esbuild and Babel, achieving fast HMR with a small package footprint and the flexibility of being able to use the babel transform pipeline.
##### [@vitejs/plugin-react-swc](https://togithub.com/vitejs/plugin-react-swc) (new)
[@vitejs/plugin-react-swc](https://togithub.com/vitejs/vite-plugin-react-swc) is a new plugin that uses esbuild during build, but replaces Babel with SWC during development. For big projects that don't require non-standard React extensions, cold start and Hot Module Replacement (HMR) can be significantly faster.
##### Compatibility
The modern browser build now targets `safari14` by default for wider ES2020 compatibility ([https://github.com/vitejs/vite/issues/9063](https://togithub.com/vitejs/vite/issues/9063)). This means that modern builds can now use [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) and that the [nullish coallessing operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing) isn't transpiled anymore. If you need to support older browsers, you can add [`@vitejs/plugin-legacy`](https://togithub.com/vitejs/vite/tree/main/packages/plugin-legacy) as usual.
##### Importing CSS as a string
In Vite 3, importing the default export of a `.css` file could introduce a double loading of CSS.
```ts
import cssString from './global.css';
```
This double loading could occur since a `.css` file will be emitted and it's likely that the CSS string will also be used by the application code โ for example, injected by the framework runtime. From Vite 4, the `.css` default export [has been deprecated](https://togithub.com/vitejs/vite/issues/11094). The `?inline` query suffix modifier needs to be used in this case, as that doesn't emit the imported `.css` styles.
```ts
import stuff from './global.css?inline'
```
##### Other features
- Support for patch-package when pre bundling dependencies ([#10286](https://togithub.com/vitejs/vite/issues/10286))
- Cleaner build logs output ([#10895](https://togithub.com/vitejs/vite/issues/10895)) and switch to `kB` to align with browser dev tools ([#10982](https://togithub.com/vitejs/vite/issues/10982))
- Improved error messages during SSR ([#11156](https://togithub.com/vitejs/vite/issues/11156))
##### Features
- feat: add CLI keyboard shortcuts ([#11228](https://togithub.com/vitejs/vite/issues/11228)) ([87973f1](https://togithub.com/vitejs/vite/commit/87973f1)), closes [#11228](https://togithub.com/vitejs/vite/issues/11228)
- feat: export error message generator ([#11155](https://togithub.com/vitejs/vite/issues/11155)) ([493ba1e](https://togithub.com/vitejs/vite/commit/493ba1e)), closes [#11155](https://togithub.com/vitejs/vite/issues/11155)
- feat(node/plugins): esbuild options ([#11049](https://togithub.com/vitejs/vite/issues/11049)) ([735b98b](https://togithub.com/vitejs/vite/commit/735b98b)), closes [#11049](https://togithub.com/vitejs/vite/issues/11049)
- feat: improve the error message of `expand` ([#11141](https://togithub.com/vitejs/vite/issues/11141)) ([825c793](https://togithub.com/vitejs/vite/commit/825c793)), closes [#11141](https://togithub.com/vitejs/vite/issues/11141)
- feat: update [@types/node](https://togithub.com/types/node) to v18 ([#11195](https://togithub.com/vitejs/vite/issues/11195)) ([4ec9f53](https://togithub.com/vitejs/vite/commit/4ec9f53)), closes [#11195](https://togithub.com/vitejs/vite/issues/11195)
- feat(client)!: remove never implemented hot.decline ([#11036](https://togithub.com/vitejs/vite/issues/11036)) ([e257e3b](https://togithub.com/vitejs/vite/commit/e257e3b)), closes [#11036](https://togithub.com/vitejs/vite/issues/11036)
- feat!: support `safari14` by default for wider ES2020 compatibility ([#9063](https://togithub.com/vitejs/vite/issues/9063)) ([3cc65d7](https://togithub.com/vitejs/vite/commit/3cc65d7)), closes [#9063](https://togithub.com/vitejs/vite/issues/9063)
- feat!: support multiline values in env files ([#10826](https://togithub.com/vitejs/vite/issues/10826)) ([606e60d](https://togithub.com/vitejs/vite/commit/606e60d)), closes [#10826](https://togithub.com/vitejs/vite/issues/10826)
- feat(ssr)!: remove dedupe and mode support for CJS ([#11101](https://togithub.com/vitejs/vite/issues/11101)) ([3090564](https://togithub.com/vitejs/vite/commit/3090564)), closes [#11101](https://togithub.com/vitejs/vite/issues/11101)
- feat: align object interface for `transformIndexHtml` hook ([#9669](https://togithub.com/vitejs/vite/issues/9669)) ([1db52bf](https://togithub.com/vitejs/vite/commit/1db52bf)), closes [#9669](https://togithub.com/vitejs/vite/issues/9669)
- feat(build): cleaner logs output ([#10895](https://togithub.com/vitejs/vite/issues/10895)) ([7d24b5f](https://togithub.com/vitejs/vite/commit/7d24b5f)), closes [#10895](https://togithub.com/vitejs/vite/issues/10895)
- feat(css): deprecate css default export ([#11094](https://togithub.com/vitejs/vite/issues/11094)) ([01dee1b](https://togithub.com/vitejs/vite/commit/01dee1b)), closes [#11094](https://togithub.com/vitejs/vite/issues/11094)
- feat(optimizer): support patch-package ([#10286](https://togithub.com/vitejs/vite/issues/10286)) ([4fb7ad0](https://togithub.com/vitejs/vite/commit/4fb7ad0)), closes [#10286](https://togithub.com/vitejs/vite/issues/10286)
- feat(build): Use kB in build reporter ([#10982](https://togithub.com/vitejs/vite/issues/10982)) ([b57acfa](https://togithub.com/vitejs/vite/commit/b57acfa)), closes [#10982](https://togithub.com/vitejs/vite/issues/10982)
- feat(css): upgrade postcss-modules ([#10987](https://togithub.com/vitejs/vite/issues/10987)) ([892916d](https://togithub.com/vitejs/vite/commit/892916d)), closes [#10987](https://togithub.com/vitejs/vite/issues/10987)
- feat(hmr): invalidate message ([#10946](https://togithub.com/vitejs/vite/issues/10946)) ([0d73473](https://togithub.com/vitejs/vite/commit/0d73473)), closes [#10946](https://togithub.com/vitejs/vite/issues/10946)
- feat(client): expose hot.prune API ([#11016](https://togithub.com/vitejs/vite/issues/11016)) ([f40c18d](https://togithub.com/vitejs/vite/commit/f40c18d)), closes [#11016](https://togithub.com/vitejs/vite/issues/11016)
- feat(hmr): deduplicate paths and join them with commas ([#10891](https://togithub.com/vitejs/vite/issues/10891)) ([967299a](https://togithub.com/vitejs/vite/commit/967299a)), closes [#10891](https://togithub.com/vitejs/vite/issues/10891)
- feat: base without trailing slash ([#10723](https://togithub.com/vitejs/vite/issues/10723)) ([8f87282](https://togithub.com/vitejs/vite/commit/8f87282)), closes [#10723](https://togithub.com/vitejs/vite/issues/10723)
- feat: handle static assets in case-sensitive manner ([#10475](https://togithub.com/vitejs/vite/issues/10475)) ([c1368c3](https://togithub.com/vitejs/vite/commit/c1368c3)), closes [#10475](https://togithub.com/vitejs/vite/issues/10475)
- feat(cli): build --profile ([#10719](https://togithub.com/vitejs/vite/issues/10719)) ([9c808cd](https://togithub.com/vitejs/vite/commit/9c808cd)), closes [#10719](https://togithub.com/vitejs/vite/issues/10719)
- feat(env): support dotenv-expand to contains process env ([#10370](https://togithub.com/vitejs/vite/issues/10370)) ([d5fe92c](https://togithub.com/vitejs/vite/commit/d5fe92c)), closes [#10370](https://togithub.com/vitejs/vite/issues/10370)
- feat!: set esbuild default charset to utf8 ([#10753](https://togithub.com/vitejs/vite/issues/10753)) ([4caf4b6](https://togithub.com/vitejs/vite/commit/4caf4b6)), closes [#10753](https://togithub.com/vitejs/vite/issues/10753)
- feat: rollup 3 ([#9870](https://togithub.com/vitejs/vite/issues/9870)) ([beb7166](https://togithub.com/vitejs/vite/commit/beb7166)), closes [#9870](https://togithub.com/vitejs/vite/issues/9870)
##### Bug Fixes
- fix: add `\0` to virtual files id ([#11261](https://togithub.com/vitejs/vite/issues/11261)) ([02cdfa9](https://togithub.com/vitejs/vite/commit/02cdfa9)), closes [#11261](https://togithub.com/vitejs/vite/issues/11261)
- fix: skip shortcuts on non-tty stdin ([#11263](https://togithub.com/vitejs/vite/issues/11263)) ([9602686](https://togithub.com/vitejs/vite/commit/9602686)), closes [#11263](https://togithub.com/vitejs/vite/issues/11263)
- fix(ssr): skip rewriting stack trace if it's already rewritten (fixes [#11037](https://togithub.com/vitejs/vite/issues/11037)) ([#11070](https://togithub.com/vitejs/vite/issues/11070)) ([feb8ce0](https://togithub.com/vitejs/vite/commit/feb8ce0)), closes [#11037](https://togithub.com/vitejs/vite/issues/11037) [#11070](https://togithub.com/vitejs/vite/issues/11070)
- refactor(optimizer): await depsOptimizer.scanProcessing ([#11251](https://togithub.com/vitejs/vite/issues/11251)) ([fa64c8e](https://togithub.com/vitejs/vite/commit/fa64c8e)), closes [#11251](https://togithub.com/vitejs/vite/issues/11251)
- fix: improve CLI shortcuts help display ([#11247](https://togithub.com/vitejs/vite/issues/11247)) ([bb235b2](https://togithub.com/vitejs/vite/commit/bb235b2)), closes [#11247](https://togithub.com/vitejs/vite/issues/11247)
- fix: less promises for scanning and await with allSettled ([#11245](https://togithub.com/vitejs/vite/issues/11245)) ([45b170e](https://togithub.com/vitejs/vite/commit/45b170e)), closes [#11245](https://togithub.com/vitejs/vite/issues/11245)
- fix(optimizer): escape entrypoints when running scanner ([#11250](https://togithub.com/vitejs/vite/issues/11250)) ([b61894e](https://togithub.com/vitejs/vite/commit/b61894e)), closes [#11250](https://togithub.com/vitejs/vite/issues/11250)
- fix: await scanner ([#11242](https://togithub.com/vitejs/vite/issues/11242)) ([52a6732](https://togithub.com/vitejs/vite/commit/52a6732)), closes [#11242](https://togithub.com/vitejs/vite/issues/11242)
- fix(css): fix css lang regex ([#11237](https://togithub.com/vitejs/vite/issues/11237)) ([a55d0b3](https://togithub.com/vitejs/vite/commit/a55d0b3)), closes [#11237](https://togithub.com/vitejs/vite/issues/11237)
- fix: don't print urls on restart with default port ([#11230](https://togithub.com/vitejs/vite/issues/11230)) ([5aaecb6](https://togithub.com/vitejs/vite/commit/5aaecb6)), closes [#11230](https://togithub.com/vitejs/vite/issues/11230)
- fix: serialize bundleWorkerEntry ([#11218](https://togithub.com/vitejs/vite/issues/11218)) ([306bed0](https://togithub.com/vitejs/vite/commit/306bed0)), closes [#11218](https://togithub.com/vitejs/vite/issues/11218)
- fix(config): resolve dynamic import as esm ([#11220](https://togithub.com/vitejs/vite/issues/11220)) ([f8c1ed0](https://togithub.com/vitejs/vite/commit/f8c1ed0)), closes [#11220](https://togithub.com/vitejs/vite/issues/11220)
- fix(env): prevent env expand on process.env ([#11213](https://togithub.com/vitejs/vite/issues/11213)) ([d4a1e2b](https://togithub.com/vitejs/vite/commit/d4a1e2b)), closes [#11213](https://togithub.com/vitejs/vite/issues/11213)
- fix: add type for function localsConvention value ([#11152](https://togithub.com/vitejs/vite/issues/11152)) ([c9274b4](https://togithub.com/vitejs/vite/commit/c9274b4)), closes [#11152](https://togithub.com/vitejs/vite/issues/11152)
- fix: cacheDir should be ignored from watch ([#10242](https://togithub.com/vitejs/vite/issues/10242)) ([75dbca2](https://togithub.com/vitejs/vite/commit/75dbca2)), closes [#10242](https://togithub.com/vitejs/vite/issues/10242)
- fix: don't check .yarn/patches for computing dependencies hash ([#11168](https://togithub.com/vitejs/vite/issues/11168)) ([65bcccf](https://togithub.com/vitejs/vite/commit/65bcccf)), closes [#11168](https://togithub.com/vitejs/vite/issues/11168)
- fix: formatError() outside rollup context ([#11156](https://togithub.com/vitejs/vite/issues/11156)) ([2aee2eb](https://togithub.com/vitejs/vite/commit/2aee2eb)), closes [#11156](https://togithub.com/vitejs/vite/issues/11156)
- fix: Revert "fix: missing js sourcemaps with rewritten imports broke debugging ([#7767](https://togithub.com/vitejs/vite/issues/7767)) ([#9476](https://togithub.com/vitejs/vite/issues/9476))" ([#11](https://togithub.com/vitejs/vite/issues/11) ([fdc6f3a](https://togithub.com/vitejs/vite/commit/fdc6f3a)), closes [#7767](https://togithub.com/vitejs/vite/issues/7767) [#9476](https://togithub.com/vitejs/vite/issues/9476) [#11144](https://togithub.com/vitejs/vite/issues/11144)
- fix: Dev SSR dep optimization + respect optimizeDeps.include ([#11123](https://togithub.com/vitejs/vite/issues/11123)) ([515caa5](https://togithub.com/vitejs/vite/commit/515caa5)), closes [#11123](https://togithub.com/vitejs/vite/issues/11123)
- fix: export preprocessCSS in CJS ([#11067](https://togithub.com/vitejs/vite/issues/11067)) ([793255d](https://togithub.com/vitejs/vite/commit/793255d)), closes [#11067](https://togithub.com/vitejs/vite/issues/11067)
- fix: glob import parsing ([#10949](https://togithub.com/vitejs/vite/issues/10949)) ([#11056](https://togithub.com/vitejs/vite/issues/11056)) ([ac2cfd6](https://togithub.com/vitejs/vite/commit/ac2cfd6)), closes [#10949](https://togithub.com/vitejs/vite/issues/10949) [#11056](https://togithub.com/vitejs/vite/issues/11056)
- fix: import.meta.env and process.env undefined variable replacement (fix [#8663](https://togithub.com/vitejs/vite/issues/8663)) ([#10958](https://togithub.com/vitejs/vite/issues/10958)) ([3e0cd3d](https://togithub.com/vitejs/vite/commit/3e0cd3d)), closes [#8663](https://togithub.com/vitejs/vite/issues/8663) [#10958](https://togithub.com/vitejs/vite/issues/10958)
- fix: missing js sourcemaps with rewritten imports broke debugging ([#7767](https://togithub.com/vitejs/vite/issues/7767)) ([#9476](https://togithub.com/vitejs/vite/issues/9476)) ([3fa96f6](https://togithub.com/vitejs/vite/commit/3fa96f6)), closes [#7767](https://togithub.com/vitejs/vite/issues/7767) [#9476](https://togithub.com/vitejs/vite/issues/9476)
- fix: preserve default export from externalized packages (fixes [#10258](https://togithub.com/vitejs/vite/issues/10258)) ([#10406](https://togithub.com/vitejs/vite/issues/10406)) ([88b001b](https://togithub.com/vitejs/vite/commit/88b001b)), closes [#10258](https://togithub.com/vitejs/vite/issues/10258) [#10406](https://togithub.com/vitejs/vite/issues/10406)
- fix: reset global regex before match ([#11132](https://togithub.com/vitejs/vite/issues/11132)) ([db8df14](https://togithub.com/vitejs/vite/commit/db8df14)), closes [#11132](https://togithub.com/vitejs/vite/issues/11132)
- fix(css): handle environment with browser globals ([#11079](https://togithub.com/vitejs/vite/issues/11079)) ([e92d025](https://togithub.com/vitejs/vite/commit/e92d025)), closes [#11079](https://togithub.com/vitejs/vite/issues/11079)
- fix(deps): update all non-major dependencies ([#11091](https://togithub.com/vitejs/vite/issues/11091)) ([073a4bf](https://togithub.com/vitejs/vite/commit/073a4bf)), closes [#11091](https://togithub.com/vitejs/vite/issues/11091)
- fix(esbuild): handle inline sourcemap option ([#11120](https://togithub.com/vitejs/vite/issues/11120)) ([4c85c0a](https://togithub.com/vitejs/vite/commit/4c85c0a)), closes [#11120](https://togithub.com/vitejs/vite/issues/11120)
- fix(importGlob): don't warn when CSS default import is not used ([#11121](https://togithub.com/vitejs/vite/issues/11121)) ([97f8b4d](https://togithub.com/vitejs/vite/commit/97f8b4d)), closes [#11121](https://togithub.com/vitejs/vite/issues/11121)
- fix(importGlob): preserve line count for sourcemap ([#11122](https://togithub.com/vitejs/vite/issues/11122)) ([14980a1](https://togithub.com/vitejs/vite/commit/14980a1)), closes [#11122](https://togithub.com/vitejs/vite/issues/11122)
- fix(importGlob): warn on default import css ([#11103](https://togithub.com/vitejs/vite/issues/11103)) ([fc0d9e3](https://togithub.com/vitejs/vite/commit/fc0d9e3)), closes [#11103](https://togithub.com/vitejs/vite/issues/11103)
- fix(plugin-vue): support scss/sass/less... hmr on custom template languages (fix [#10677](https://togithub.com/vitejs/vite/issues/10677)) ([#10844](https://togithub.com/vitejs/vite/issues/10844)) ([d413848](https://togithub.com/vitejs/vite/commit/d413848)), closes [#10677](https://togithub.com/vitejs/vite/issues/10677) [#10844](https://togithub.com/vitejs/vite/issues/10844)
- fix(ssr): preserve require for external node ([#11057](https://togithub.com/vitejs/vite/issues/11057)) ([1ec0176](https://togithub.com/vitejs/vite/commit/1ec0176)), closes [#11057](https://togithub.com/vitejs/vite/issues/11057)
- fix(worker): disable build reporter plugin when bundling worker ([#11058](https://togithub.com/vitejs/vite/issues/11058)) ([7b72069](https://togithub.com/vitejs/vite/commit/7b72069)), closes [#11058](https://togithub.com/vitejs/vite/issues/11058)
- fix!: make `NODE_ENV` more predictable ([#10996](https://togithub.com/vitejs/vite/issues/10996)) ([8148af7](https://togithub.com/vitejs/vite/commit/8148af7)), closes [#10996](https://togithub.com/vitejs/vite/issues/10996)
- fix(config)!: support development build ([#11045](https://togithub.com/vitejs/vite/issues/11045)) ([8b3d656](https://togithub.com/vitejs/vite/commit/8b3d656)), closes [#11045](https://togithub.com/vitejs/vite/issues/11045)
- refactor: use function to eval worker and glob options ([#10999](https://togithub.com/vitejs/vite/issues/10999)) ([f4c1264](https://togithub.com/vitejs/vite/commit/f4c1264)), closes [#10999](https://togithub.com/vitejs/vite/issues/10999)
- refactor(client): simplify fetchUpdate code ([#11004](https://togithub.com/vitejs/vite/issues/11004)) ([f777b55](https://togithub.com/vitejs/vite/commit/f777b55)), closes [#11004](https://togithub.com/vitejs/vite/issues/11004)
- fix(html): transform relative path with long base in /index.html ([#10990](https://togithub.com/vitejs/vite/issues/10990)) ([752740c](https://togithub.com/vitejs/vite/commit/752740c)), closes [#10990](https://togithub.com/vitejs/vite/issues/10990)
- fix(mpa): support mpa fallback ([#10985](https://togithub.com/vitejs/vite/issues/10985)) ([61165f0](https://togithub.com/vitejs/vite/commit/61165f0)), closes [#10985](https://togithub.com/vitejs/vite/issues/10985)
- feat: align default chunk and asset file names with rollup ([#10927](https://togithub.com/vitejs/vite/issues/10927)) ([cc2adb3](https://togithub.com/vitejs/vite/commit/cc2adb3)), closes [#10927](https://togithub.com/vitejs/vite/issues/10927)
- fix: make `addWatchFile()` work (fix [#7024](https://togithub.com/vitejs/vite/issues/7024)) ([#9723](https://togithub.com/vitejs/vite/issues/9723)) ([34db08b](https://togithub.com/vitejs/vite/commit/34db08b)), closes [#7024](https://togithub.com/vitejs/vite/issues/7024) [#9723](https://togithub.com/vitejs/vite/issues/9723)
- fix(config): exclude config.assetsInclude empty array ([#10941](https://togithub.com/vitejs/vite/issues/10941)) ([18c71dc](https://togithub.com/vitejs/vite/commit/18c71dc)), closes [#10941](https://togithub.com/vitejs/vite/issues/10941)
- fix(ssr): skip optional peer dep resolve ([#10593](https://togithub.com/vitejs/vite/issues/10593)) ([0a69985](https://togithub.com/vitejs/vite/commit/0a69985)), closes [#10593](https://togithub.com/vitejs/vite/issues/10593)
- perf: regexp perf issues, refactor regexp stylistic issues ([#10905](https://togithub.com/vitejs/vite/issues/10905)) ([fc007df](https://togithub.com/vitejs/vite/commit/fc007df)), closes [#10905](https://togithub.com/vitejs/vite/issues/10905)
- refactor: move CSS emitFile logic closer to rollup ([#10909](https://togithub.com/vitejs/vite/issues/10909)) ([92a206b](https://togithub.com/vitejs/vite/commit/92a206b)), closes [#10909](https://togithub.com/vitejs/vite/issues/10909)
- refactor: use rollup hashing when emitting assets ([#10878](https://togithub.com/vitejs/vite/issues/10878)) ([78c77be](https://togithub.com/vitejs/vite/commit/78c77be)), closes [#10878](https://togithub.com/vitejs/vite/issues/10878)
- fix: don't throw on malformed URLs ([#10901](https://togithub.com/vitejs/vite/issues/10901)) ([feb9b10](https://togithub.com/vitejs/vite/commit/feb9b10)), closes [#10901](https://togithub.com/vitejs/vite/issues/10901)
- fix: gracefully handle forbidden filesystem access ([#10793](https://togithub.com/vitejs/vite/issues/10793)) ([92637a2](https://togithub.com/vitejs/vite/commit/92637a2)), closes [#10793](https://togithub.com/vitejs/vite/issues/10793)
- fix(types): remove `null` from `CSSModulesOptions.localsConvention` ([#10904](https://togithub.com/vitejs/vite/issues/10904)) ([a9978dd](https://togithub.com/vitejs/vite/commit/a9978dd)), closes [#10904](https://togithub.com/vitejs/vite/issues/10904)
- refactor(types)!: remove facade type files ([#10903](https://togithub.com/vitejs/vite/issues/10903)) ([a309058](https://togithub.com/vitejs/vite/commit/a309058)), closes [#10903](https://togithub.com/vitejs/vite/issues/10903)
- fix: inconsistent handling of non-ASCII `base` in `resolveConfig` and dev server ([#10247](https://togithub.com/vitejs/vite/issues/10247)) ([16e4123](https://togithub.com/vitejs/vite/commit/16e4123)), closes [#10247](https://togithub.com/vitejs/vite/issues/10247)
- fix: prevent cache on optional package resolve ([#10812](https://togithub.com/vitejs/vite/issues/10812)) ([c599a2e](https://togithub.com/vitejs/vite/commit/c599a2e)), closes [#10812](https://togithub.com/vitejs/vite/issues/10812)
- fix: relocated logger to respect config. ([#10787](https://togithub.com/vitejs/vite/issues/10787)) ([52e64eb](https://togithub.com/vitejs/vite/commit/52e64eb)), closes [#10787](https://togithub.com/vitejs/vite/issues/10787)
- fix: throw missing name error only when 'umd' or 'iife' are used ([#9886](https://togithub.com/vitejs/vite/issues/9886)) ([b8aa825](https://togithub.com/vitejs/vite/commit/b8aa825)), closes [#9886](https://togithub.com/vitejs/vite/issues/9886)
- fix(deps): update all non-major dependencies ([#10804](https://togithub.com/vitejs/vite/issues/10804)) ([f686afa](https://togithub.com/vitejs/vite/commit/f686afa)), closes [#10804](https://togithub.com/vitejs/vite/issues/10804)
- fix(ssr): improve missing file error ([#10880](https://togithub.com/vitejs/vite/issues/10880)) ([5451a34](https://togithub.com/vitejs/vite/commit/5451a34)), closes [#10880](https://togithub.com/vitejs/vite/issues/10880)
##### Previous Changelogs
##### [4.0.0-beta.7](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.6....v4.0.0-beta.7) (2022-12-08)
See [4.0.0-beta.7 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md)
##### [4.0.0-beta.6](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.5....v4.0.0-beta.6) (2022-12-08)
See [4.0.0-beta.6 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md)
##### [4.0.0-beta.5](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.4....v4.0.0-beta.5) (2022-12-08)
See [4.0.0-beta.5 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md)
##### [4.0.0-beta.4](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.3....v4.0.0-beta.4) (2022-12-07)
See [4.0.0-beta.4 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md)
##### [4.0.0-beta.3](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.2....v4.0.0-beta.3) (2022-12-07)
See [4.0.0-beta.3 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md)
##### [4.0.0-beta.2](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.1....v4.0.0-beta.2) (2022-12-07)
See [4.0.0-beta.2 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md)
##### [4.0.0-beta.1](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.0....v4.0.0-beta.1) (2022-12-06)
See [4.0.0-beta.1 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md)
##### [4.0.0-beta.0](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.6....v4.0.0-beta.0) (2022-12-05)
See [4.0.0-beta.0 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md)
##### [4.0.0-alpha.6](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.5....v4.0.0-alpha.6) (2022-11-30)
See [4.0.0-alpha.6 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.6/packages/vite/CHANGELOG.md)
##### [4.0.0-alpha.5](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.5....v4.0.0-alpha.5) (2022-11-22)
See [4.0.0-alpha.5 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.5/packages/vite/CHANGELOG.md)
##### [4.0.0-alpha.4](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.3....v4.0.0-alpha.4) (2022-11-17)
See [4.0.0-alpha.4 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.4/packages/vite/CHANGELOG.md)
##### [4.0.0-alpha.3](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.2....v4.0.0-alpha.3) (2022-11-15)
See [4.0.0-alpha.3 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.3/packages/vite/CHANGELOG.md)
##### [4.0.0-alpha.2](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.1....v4.0.0-alpha.2) (2022-11-13)
See [4.0.0-alpha.2 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.2/packages/vite/CHANGELOG.md)
##### [4.0.0-alpha.1](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.0....v4.0.0-alpha.1) (2022-11-12)
See [4.0.0-alpha.1 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.1/packages/vite/CHANGELOG.md)
##### [4.0.0-alpha.0](https://togithub.com/vitejs/vite/compare/v3.2.5....v4.0.0-alpha.0) (2022-11-07)
See [4.0.0-alpha.0 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.0/packages/vite/CHANGELOG.md)
Configuration
๐ Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).
๐ฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.
โป Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
๐ป Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^4.10.7
->^5.0.0
^3.2.4
->^4.0.0
Release Notes
sveltejs/svelte-preprocess
### [`v5.0.0`](https://togithub.com/sveltejs/svelte-preprocess/blob/HEAD/CHANGELOG.md#500-httpsgithubcomsveltejssvelte-preprocesscomparev4105v500-2022-12-10) [Compare Source](https://togithub.com/sveltejs/svelte-preprocess/compare/78a0c5571e9271eb1a0881725b4d2ebbfbdcdaf4...v5.0.0) ##### Bug Fixes - ๐ add sugarss v3 and v4 as supported ([3f2687b](https://togithub.com/sveltejs/svelte-preprocess/commit/3f2687bc2c3036c96a95a0d491a9491f18e5c28f)) - ๐ remove support for 'type' attribute ([07bc8aa](https://togithub.com/sveltejs/svelte-preprocess/commit/07bc8aae571300413c52af05554b08451d338443)) - ๐ remove support for custom default languages ([3d60856](https://togithub.com/sveltejs/svelte-preprocess/commit/3d6085611120895b5527f4e17868105d6ec81c4d)) - ๐ map .sss as .css to support sugarss extension ([2c0bd45](https://togithub.com/sveltejs/svelte-preprocess/commit/2c0bd4561fc3dd53ff525509925bcc9c5f7b436b)) ##### Performance Improvements - โก๏ธ remove support for deprecated node-sass ([a617fe1](https://togithub.com/sveltejs/svelte-preprocess/commit/a617fe13b0922188346775475325ab8af83c56f7)) ##### BREAKING CHANGES - ๐งจ Languages must be explicitly defined via the lang attribute. - ๐งจ Minimum node version was bumped from 9 to 14 - ๐งจ Cannot use "type" attribute to identify the language of a style or script tag anymore. Use `lang` instead - ๐งจ node-sass is not supported anymore. Use `sass` instead - minimum node version changed to v14 #### [4.10.7](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.5...v4.10.7) (2022-06-04) ##### Bug Fixes - add pug const mixin ([#518](https://togithub.com/sveltejs/svelte-preprocess/issues/518)) ([0551a9b](https://togithub.com/sveltejs/svelte-preprocess/commit/0551a9b557ee18bb05a3e9021a8c9aa1f7b8c665)), closes [#467](https://togithub.com/sveltejs/svelte-preprocess/issues/467) - paths in postcss sourcemap sources array ([#500](https://togithub.com/sveltejs/svelte-preprocess/issues/500)) ([2027375](https://togithub.com/sveltejs/svelte-preprocess/commit/2027375969255d11708340ee40eb2e3ded7ddb35)) - preserve `[@font-face](https://togithub.com/font-face)` inside `:global` block ([#486](https://togithub.com/sveltejs/svelte-preprocess/issues/486)) ([8064473](https://togithub.com/sveltejs/svelte-preprocess/commit/8064473ae107f6e2d34eb9590e4befa70ce4618c)), closes [#236](https://togithub.com/sveltejs/svelte-preprocess/issues/236) - stylus - handle relative sourcemap sources([#513](https://togithub.com/sveltejs/svelte-preprocess/issues/513)) ([77bd3bf](https://togithub.com/sveltejs/svelte-preprocess/commit/77bd3bf69554afbc45d6f1e34a4eb5abf398a933)) #### [4.10.6](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.5...v4.10.6) (2022-04-13) ##### Bug Fixes - paths in postcss sourcemap sources array ([#500](https://togithub.com/sveltejs/svelte-preprocess/issues/500)) ([2027375](https://togithub.com/sveltejs/svelte-preprocess/commit/2027375969255d11708340ee40eb2e3ded7ddb35)) - preserve `[@font-face](https://togithub.com/font-face)` inside `:global` block ([#486](https://togithub.com/sveltejs/svelte-preprocess/issues/486)) ([8064473](https://togithub.com/sveltejs/svelte-preprocess/commit/8064473ae107f6e2d34eb9590e4befa70ce4618c)), closes [#236](https://togithub.com/sveltejs/svelte-preprocess/issues/236) #### [4.10.5](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.4...v4.10.5) (2022-04-04) ##### Bug Fixes - always use absolute paths for less imports ([#495](https://togithub.com/sveltejs/svelte-preprocess/issues/495)) ([#496](https://togithub.com/sveltejs/svelte-preprocess/issues/496)) ([be0fda4](https://togithub.com/sveltejs/svelte-preprocess/commit/be0fda4ddbe95040221ff248ccbb492fb5555334)) #### [4.10.4](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.3...v4.10.4) (2022-02-23) ##### Bug Fixes - only try to load external files with relative paths ([#487](https://togithub.com/sveltejs/svelte-preprocess/issues/487)) ([80d87ed](https://togithub.com/sveltejs/svelte-preprocess/commit/80d87edac4723401db47d06ed03bb6cd388c21d9)) #### [4.10.3](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.2...v4.10.3) (2022-02-09) ##### Bug Fixes - add # and numbers to ts store regex ([#473](https://togithub.com/sveltejs/svelte-preprocess/issues/473)) ([881f3c9](https://togithub.com/sveltejs/svelte-preprocess/commit/881f3c9ad6118fb66b560494a67042944567e0ec)), closes [#466](https://togithub.com/sveltejs/svelte-preprocess/issues/466) - adjust typescript peer dep ([#479](https://togithub.com/sveltejs/svelte-preprocess/issues/479)) ([68fae2c](https://togithub.com/sveltejs/svelte-preprocess/commit/68fae2c56fb3e22ff21f12c9aab74b42ad4f7bb8)) #### [4.10.2](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.1...v4.10.2) (2022-01-17) ##### Bug Fixes - accept less v4 as peer dep ([#455](https://togithub.com/sveltejs/svelte-preprocess/issues/455)) ([fbc484a](https://togithub.com/sveltejs/svelte-preprocess/commit/fbc484a6d0394928c1318b70dfe007fed1d9fdac)) - better pug error message ([#448](https://togithub.com/sveltejs/svelte-preprocess/issues/448)) ([a239e82](https://togithub.com/sveltejs/svelte-preprocess/commit/a239e829295bde5f62383697266cefe7767dd0e2)), closes [#447](https://togithub.com/sveltejs/svelte-preprocess/issues/447) - provide caller information to Babel ([#449](https://togithub.com/sveltejs/svelte-preprocess/issues/449)) ([51007ab](https://togithub.com/sveltejs/svelte-preprocess/commit/51007abf946ffdd1d407c6bcf86439d38e113626)) - ts preprocessor - consider store suffixed with number ([#461](https://togithub.com/sveltejs/svelte-preprocess/issues/461)) ([a7a94cf](https://togithub.com/sveltejs/svelte-preprocess/commit/a7a94cfb29f6ea85cfafd1afa2c61363f72cb4b3)), closes [sveltejs/svelte#7120](https://togithub.com/sveltejs/svelte/issues/7120) #### [4.10.1](https://togithub.com/sveltejs/svelte-preprocess/compare/v4.10.0...v4.10.1) (2021-12-17) ##### Bug Fixes - adjust store regex ([#441](https://togithub.com/sveltejs/svelte-preprocess/issues/441)) ([85a86c8](https://togithub.com/sveltejs/svelte-preprocess/commit/85a86c86513f98c2b02f2d314a18b0e68378c8f6)), closes [#433](https://togithub.com/sveltejs/svelte-preprocess/issues/433) - generate high resolution source map ([#443](https://togithub.com/sveltejs/svelte-preprocess/issues/443)) ([57012ba](https://togithub.com/sveltejs/svelte-preprocess/commit/57012ba9f87abfec99f061196fb955da4ccfa384))vitejs/vite
### [`v4.0.0`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#400-2022-12-09) [Compare Source](https://togithub.com/vitejs/vite/compare/v3.2.5...566d4c7bb51cf56550a5374ee46e1e1cbea1cf1f) ![Vite 4 Announcement Cover Image](/og-image-announcing-vite4.png) Read the announcement blog post: [Announcing Vite 4](https://vitejs.dev/blog/announcing-vite4) Quick links: - [Docs](https://vitejs.dev) - [Migration Guide](https://vitejs.dev/guide/migration) Docs in other languages: - [็ฎไฝไธญๆ](https://cn.vitejs.dev/) - [ๆฅๆฌ่ช](https://ja.vitejs.dev/) - [Espaรฑol](https://es.vitejs.dev/) ##### Main Changes This major is smaller in scope compared to Vite 3, with the main objective of upgrading to Rollup 3. We've worked with the ecosystem to ensure a smooth upgrade path for this new major. ##### Rollup 3 Vite is now using [Rollup 3](https://togithub.com/vitejs/vite/issues/9870), which allowed us to simplify Vite's internal asset handling and has many improvements. See the [Rollup 3 release notes here](https://togithub.com/rollup/rollup/releases). ##### Framework Plugins out of the Vite core monorepo [`@vitejs/plugin-vue`](https://togithub.com/vitejs/vite-plugin-vue) and [`@vitejs/plugin-react`](https://togithub.com/vitejs/vite-plugin-react) have been part of Vite core monorepo since the first versions of Vite. This helped us to get a close feedback loop when making changes as we were getting both Core and the plugins tested and released together. With [vite-ecosystem-ci](https://togithub.com/vitejs/vite-ecosystem-ci) we can get this feedback with these plugins developed on independent repositories, so from Vite 4, [they have been moved out of the Vite core monorepo](https://togithub.com/vitejs/vite/pull/11158). This is meaningful for Vite's framework-agnostic story, and will allow us to build independent teams to maintain each of the plugins. If you have bugs to report or features to request, please create issues on the new repositories moving forward: [`vitejs/vite-plugin-vue`](https://togithub.com/vitejs/vite-plugin-vue) and [`vitejs/vite-plugin-react`](https://togithub.com/vitejs/vite-plugin-react). ##### New React plugin using SWC during development [SWC](https://swc.rs/) is now a mature replacement for [Babel](https://babeljs.io/), especially in the context of React projects. SWC's React Fast Refresh implementation is a lot faster than Babel, and for some projects, it is now a better alternative. From Vite 4, two plugins are available for React projects with different tradeoffs. We believe that both approaches are worth supporting at this point, and we'll continue to explore improvements to both plugins in the future. ##### [@vitejs/plugin-react](https://togithub.com/vitejs/plugin-react) [@vitejs/plugin-react](https://togithub.com/vitejs/vite-plugin-react) is a plugin that uses esbuild and Babel, achieving fast HMR with a small package footprint and the flexibility of being able to use the babel transform pipeline. ##### [@vitejs/plugin-react-swc](https://togithub.com/vitejs/plugin-react-swc) (new) [@vitejs/plugin-react-swc](https://togithub.com/vitejs/vite-plugin-react-swc) is a new plugin that uses esbuild during build, but replaces Babel with SWC during development. For big projects that don't require non-standard React extensions, cold start and Hot Module Replacement (HMR) can be significantly faster. ##### Compatibility The modern browser build now targets `safari14` by default for wider ES2020 compatibility ([https://github.com/vitejs/vite/issues/9063](https://togithub.com/vitejs/vite/issues/9063)). This means that modern builds can now use [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) and that the [nullish coallessing operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing) isn't transpiled anymore. If you need to support older browsers, you can add [`@vitejs/plugin-legacy`](https://togithub.com/vitejs/vite/tree/main/packages/plugin-legacy) as usual. ##### Importing CSS as a string In Vite 3, importing the default export of a `.css` file could introduce a double loading of CSS. ```ts import cssString from './global.css'; ``` This double loading could occur since a `.css` file will be emitted and it's likely that the CSS string will also be used by the application code โ for example, injected by the framework runtime. From Vite 4, the `.css` default export [has been deprecated](https://togithub.com/vitejs/vite/issues/11094). The `?inline` query suffix modifier needs to be used in this case, as that doesn't emit the imported `.css` styles. ```ts import stuff from './global.css?inline' ``` ##### Other features - Support for patch-package when pre bundling dependencies ([#10286](https://togithub.com/vitejs/vite/issues/10286)) - Cleaner build logs output ([#10895](https://togithub.com/vitejs/vite/issues/10895)) and switch to `kB` to align with browser dev tools ([#10982](https://togithub.com/vitejs/vite/issues/10982)) - Improved error messages during SSR ([#11156](https://togithub.com/vitejs/vite/issues/11156)) ##### Features - feat: add CLI keyboard shortcuts ([#11228](https://togithub.com/vitejs/vite/issues/11228)) ([87973f1](https://togithub.com/vitejs/vite/commit/87973f1)), closes [#11228](https://togithub.com/vitejs/vite/issues/11228) - feat: export error message generator ([#11155](https://togithub.com/vitejs/vite/issues/11155)) ([493ba1e](https://togithub.com/vitejs/vite/commit/493ba1e)), closes [#11155](https://togithub.com/vitejs/vite/issues/11155) - feat(node/plugins): esbuild options ([#11049](https://togithub.com/vitejs/vite/issues/11049)) ([735b98b](https://togithub.com/vitejs/vite/commit/735b98b)), closes [#11049](https://togithub.com/vitejs/vite/issues/11049) - feat: improve the error message of `expand` ([#11141](https://togithub.com/vitejs/vite/issues/11141)) ([825c793](https://togithub.com/vitejs/vite/commit/825c793)), closes [#11141](https://togithub.com/vitejs/vite/issues/11141) - feat: update [@types/node](https://togithub.com/types/node) to v18 ([#11195](https://togithub.com/vitejs/vite/issues/11195)) ([4ec9f53](https://togithub.com/vitejs/vite/commit/4ec9f53)), closes [#11195](https://togithub.com/vitejs/vite/issues/11195) - feat(client)!: remove never implemented hot.decline ([#11036](https://togithub.com/vitejs/vite/issues/11036)) ([e257e3b](https://togithub.com/vitejs/vite/commit/e257e3b)), closes [#11036](https://togithub.com/vitejs/vite/issues/11036) - feat!: support `safari14` by default for wider ES2020 compatibility ([#9063](https://togithub.com/vitejs/vite/issues/9063)) ([3cc65d7](https://togithub.com/vitejs/vite/commit/3cc65d7)), closes [#9063](https://togithub.com/vitejs/vite/issues/9063) - feat!: support multiline values in env files ([#10826](https://togithub.com/vitejs/vite/issues/10826)) ([606e60d](https://togithub.com/vitejs/vite/commit/606e60d)), closes [#10826](https://togithub.com/vitejs/vite/issues/10826) - feat(ssr)!: remove dedupe and mode support for CJS ([#11101](https://togithub.com/vitejs/vite/issues/11101)) ([3090564](https://togithub.com/vitejs/vite/commit/3090564)), closes [#11101](https://togithub.com/vitejs/vite/issues/11101) - feat: align object interface for `transformIndexHtml` hook ([#9669](https://togithub.com/vitejs/vite/issues/9669)) ([1db52bf](https://togithub.com/vitejs/vite/commit/1db52bf)), closes [#9669](https://togithub.com/vitejs/vite/issues/9669) - feat(build): cleaner logs output ([#10895](https://togithub.com/vitejs/vite/issues/10895)) ([7d24b5f](https://togithub.com/vitejs/vite/commit/7d24b5f)), closes [#10895](https://togithub.com/vitejs/vite/issues/10895) - feat(css): deprecate css default export ([#11094](https://togithub.com/vitejs/vite/issues/11094)) ([01dee1b](https://togithub.com/vitejs/vite/commit/01dee1b)), closes [#11094](https://togithub.com/vitejs/vite/issues/11094) - feat(optimizer): support patch-package ([#10286](https://togithub.com/vitejs/vite/issues/10286)) ([4fb7ad0](https://togithub.com/vitejs/vite/commit/4fb7ad0)), closes [#10286](https://togithub.com/vitejs/vite/issues/10286) - feat(build): Use kB in build reporter ([#10982](https://togithub.com/vitejs/vite/issues/10982)) ([b57acfa](https://togithub.com/vitejs/vite/commit/b57acfa)), closes [#10982](https://togithub.com/vitejs/vite/issues/10982) - feat(css): upgrade postcss-modules ([#10987](https://togithub.com/vitejs/vite/issues/10987)) ([892916d](https://togithub.com/vitejs/vite/commit/892916d)), closes [#10987](https://togithub.com/vitejs/vite/issues/10987) - feat(hmr): invalidate message ([#10946](https://togithub.com/vitejs/vite/issues/10946)) ([0d73473](https://togithub.com/vitejs/vite/commit/0d73473)), closes [#10946](https://togithub.com/vitejs/vite/issues/10946) - feat(client): expose hot.prune API ([#11016](https://togithub.com/vitejs/vite/issues/11016)) ([f40c18d](https://togithub.com/vitejs/vite/commit/f40c18d)), closes [#11016](https://togithub.com/vitejs/vite/issues/11016) - feat(hmr): deduplicate paths and join them with commas ([#10891](https://togithub.com/vitejs/vite/issues/10891)) ([967299a](https://togithub.com/vitejs/vite/commit/967299a)), closes [#10891](https://togithub.com/vitejs/vite/issues/10891) - feat: base without trailing slash ([#10723](https://togithub.com/vitejs/vite/issues/10723)) ([8f87282](https://togithub.com/vitejs/vite/commit/8f87282)), closes [#10723](https://togithub.com/vitejs/vite/issues/10723) - feat: handle static assets in case-sensitive manner ([#10475](https://togithub.com/vitejs/vite/issues/10475)) ([c1368c3](https://togithub.com/vitejs/vite/commit/c1368c3)), closes [#10475](https://togithub.com/vitejs/vite/issues/10475) - feat(cli): build --profile ([#10719](https://togithub.com/vitejs/vite/issues/10719)) ([9c808cd](https://togithub.com/vitejs/vite/commit/9c808cd)), closes [#10719](https://togithub.com/vitejs/vite/issues/10719) - feat(env): support dotenv-expand to contains process env ([#10370](https://togithub.com/vitejs/vite/issues/10370)) ([d5fe92c](https://togithub.com/vitejs/vite/commit/d5fe92c)), closes [#10370](https://togithub.com/vitejs/vite/issues/10370) - feat!: set esbuild default charset to utf8 ([#10753](https://togithub.com/vitejs/vite/issues/10753)) ([4caf4b6](https://togithub.com/vitejs/vite/commit/4caf4b6)), closes [#10753](https://togithub.com/vitejs/vite/issues/10753) - feat: rollup 3 ([#9870](https://togithub.com/vitejs/vite/issues/9870)) ([beb7166](https://togithub.com/vitejs/vite/commit/beb7166)), closes [#9870](https://togithub.com/vitejs/vite/issues/9870) ##### Bug Fixes - fix: add `\0` to virtual files id ([#11261](https://togithub.com/vitejs/vite/issues/11261)) ([02cdfa9](https://togithub.com/vitejs/vite/commit/02cdfa9)), closes [#11261](https://togithub.com/vitejs/vite/issues/11261) - fix: skip shortcuts on non-tty stdin ([#11263](https://togithub.com/vitejs/vite/issues/11263)) ([9602686](https://togithub.com/vitejs/vite/commit/9602686)), closes [#11263](https://togithub.com/vitejs/vite/issues/11263) - fix(ssr): skip rewriting stack trace if it's already rewritten (fixes [#11037](https://togithub.com/vitejs/vite/issues/11037)) ([#11070](https://togithub.com/vitejs/vite/issues/11070)) ([feb8ce0](https://togithub.com/vitejs/vite/commit/feb8ce0)), closes [#11037](https://togithub.com/vitejs/vite/issues/11037) [#11070](https://togithub.com/vitejs/vite/issues/11070) - refactor(optimizer): await depsOptimizer.scanProcessing ([#11251](https://togithub.com/vitejs/vite/issues/11251)) ([fa64c8e](https://togithub.com/vitejs/vite/commit/fa64c8e)), closes [#11251](https://togithub.com/vitejs/vite/issues/11251) - fix: improve CLI shortcuts help display ([#11247](https://togithub.com/vitejs/vite/issues/11247)) ([bb235b2](https://togithub.com/vitejs/vite/commit/bb235b2)), closes [#11247](https://togithub.com/vitejs/vite/issues/11247) - fix: less promises for scanning and await with allSettled ([#11245](https://togithub.com/vitejs/vite/issues/11245)) ([45b170e](https://togithub.com/vitejs/vite/commit/45b170e)), closes [#11245](https://togithub.com/vitejs/vite/issues/11245) - fix(optimizer): escape entrypoints when running scanner ([#11250](https://togithub.com/vitejs/vite/issues/11250)) ([b61894e](https://togithub.com/vitejs/vite/commit/b61894e)), closes [#11250](https://togithub.com/vitejs/vite/issues/11250) - fix: await scanner ([#11242](https://togithub.com/vitejs/vite/issues/11242)) ([52a6732](https://togithub.com/vitejs/vite/commit/52a6732)), closes [#11242](https://togithub.com/vitejs/vite/issues/11242) - fix(css): fix css lang regex ([#11237](https://togithub.com/vitejs/vite/issues/11237)) ([a55d0b3](https://togithub.com/vitejs/vite/commit/a55d0b3)), closes [#11237](https://togithub.com/vitejs/vite/issues/11237) - fix: don't print urls on restart with default port ([#11230](https://togithub.com/vitejs/vite/issues/11230)) ([5aaecb6](https://togithub.com/vitejs/vite/commit/5aaecb6)), closes [#11230](https://togithub.com/vitejs/vite/issues/11230) - fix: serialize bundleWorkerEntry ([#11218](https://togithub.com/vitejs/vite/issues/11218)) ([306bed0](https://togithub.com/vitejs/vite/commit/306bed0)), closes [#11218](https://togithub.com/vitejs/vite/issues/11218) - fix(config): resolve dynamic import as esm ([#11220](https://togithub.com/vitejs/vite/issues/11220)) ([f8c1ed0](https://togithub.com/vitejs/vite/commit/f8c1ed0)), closes [#11220](https://togithub.com/vitejs/vite/issues/11220) - fix(env): prevent env expand on process.env ([#11213](https://togithub.com/vitejs/vite/issues/11213)) ([d4a1e2b](https://togithub.com/vitejs/vite/commit/d4a1e2b)), closes [#11213](https://togithub.com/vitejs/vite/issues/11213) - fix: add type for function localsConvention value ([#11152](https://togithub.com/vitejs/vite/issues/11152)) ([c9274b4](https://togithub.com/vitejs/vite/commit/c9274b4)), closes [#11152](https://togithub.com/vitejs/vite/issues/11152) - fix: cacheDir should be ignored from watch ([#10242](https://togithub.com/vitejs/vite/issues/10242)) ([75dbca2](https://togithub.com/vitejs/vite/commit/75dbca2)), closes [#10242](https://togithub.com/vitejs/vite/issues/10242) - fix: don't check .yarn/patches for computing dependencies hash ([#11168](https://togithub.com/vitejs/vite/issues/11168)) ([65bcccf](https://togithub.com/vitejs/vite/commit/65bcccf)), closes [#11168](https://togithub.com/vitejs/vite/issues/11168) - fix: formatError() outside rollup context ([#11156](https://togithub.com/vitejs/vite/issues/11156)) ([2aee2eb](https://togithub.com/vitejs/vite/commit/2aee2eb)), closes [#11156](https://togithub.com/vitejs/vite/issues/11156) - fix: Revert "fix: missing js sourcemaps with rewritten imports broke debugging ([#7767](https://togithub.com/vitejs/vite/issues/7767)) ([#9476](https://togithub.com/vitejs/vite/issues/9476))" ([#11](https://togithub.com/vitejs/vite/issues/11) ([fdc6f3a](https://togithub.com/vitejs/vite/commit/fdc6f3a)), closes [#7767](https://togithub.com/vitejs/vite/issues/7767) [#9476](https://togithub.com/vitejs/vite/issues/9476) [#11144](https://togithub.com/vitejs/vite/issues/11144) - fix: Dev SSR dep optimization + respect optimizeDeps.include ([#11123](https://togithub.com/vitejs/vite/issues/11123)) ([515caa5](https://togithub.com/vitejs/vite/commit/515caa5)), closes [#11123](https://togithub.com/vitejs/vite/issues/11123) - fix: export preprocessCSS in CJS ([#11067](https://togithub.com/vitejs/vite/issues/11067)) ([793255d](https://togithub.com/vitejs/vite/commit/793255d)), closes [#11067](https://togithub.com/vitejs/vite/issues/11067) - fix: glob import parsing ([#10949](https://togithub.com/vitejs/vite/issues/10949)) ([#11056](https://togithub.com/vitejs/vite/issues/11056)) ([ac2cfd6](https://togithub.com/vitejs/vite/commit/ac2cfd6)), closes [#10949](https://togithub.com/vitejs/vite/issues/10949) [#11056](https://togithub.com/vitejs/vite/issues/11056) - fix: import.meta.env and process.env undefined variable replacement (fix [#8663](https://togithub.com/vitejs/vite/issues/8663)) ([#10958](https://togithub.com/vitejs/vite/issues/10958)) ([3e0cd3d](https://togithub.com/vitejs/vite/commit/3e0cd3d)), closes [#8663](https://togithub.com/vitejs/vite/issues/8663) [#10958](https://togithub.com/vitejs/vite/issues/10958) - fix: missing js sourcemaps with rewritten imports broke debugging ([#7767](https://togithub.com/vitejs/vite/issues/7767)) ([#9476](https://togithub.com/vitejs/vite/issues/9476)) ([3fa96f6](https://togithub.com/vitejs/vite/commit/3fa96f6)), closes [#7767](https://togithub.com/vitejs/vite/issues/7767) [#9476](https://togithub.com/vitejs/vite/issues/9476) - fix: preserve default export from externalized packages (fixes [#10258](https://togithub.com/vitejs/vite/issues/10258)) ([#10406](https://togithub.com/vitejs/vite/issues/10406)) ([88b001b](https://togithub.com/vitejs/vite/commit/88b001b)), closes [#10258](https://togithub.com/vitejs/vite/issues/10258) [#10406](https://togithub.com/vitejs/vite/issues/10406) - fix: reset global regex before match ([#11132](https://togithub.com/vitejs/vite/issues/11132)) ([db8df14](https://togithub.com/vitejs/vite/commit/db8df14)), closes [#11132](https://togithub.com/vitejs/vite/issues/11132) - fix(css): handle environment with browser globals ([#11079](https://togithub.com/vitejs/vite/issues/11079)) ([e92d025](https://togithub.com/vitejs/vite/commit/e92d025)), closes [#11079](https://togithub.com/vitejs/vite/issues/11079) - fix(deps): update all non-major dependencies ([#11091](https://togithub.com/vitejs/vite/issues/11091)) ([073a4bf](https://togithub.com/vitejs/vite/commit/073a4bf)), closes [#11091](https://togithub.com/vitejs/vite/issues/11091) - fix(esbuild): handle inline sourcemap option ([#11120](https://togithub.com/vitejs/vite/issues/11120)) ([4c85c0a](https://togithub.com/vitejs/vite/commit/4c85c0a)), closes [#11120](https://togithub.com/vitejs/vite/issues/11120) - fix(importGlob): don't warn when CSS default import is not used ([#11121](https://togithub.com/vitejs/vite/issues/11121)) ([97f8b4d](https://togithub.com/vitejs/vite/commit/97f8b4d)), closes [#11121](https://togithub.com/vitejs/vite/issues/11121) - fix(importGlob): preserve line count for sourcemap ([#11122](https://togithub.com/vitejs/vite/issues/11122)) ([14980a1](https://togithub.com/vitejs/vite/commit/14980a1)), closes [#11122](https://togithub.com/vitejs/vite/issues/11122) - fix(importGlob): warn on default import css ([#11103](https://togithub.com/vitejs/vite/issues/11103)) ([fc0d9e3](https://togithub.com/vitejs/vite/commit/fc0d9e3)), closes [#11103](https://togithub.com/vitejs/vite/issues/11103) - fix(plugin-vue): support scss/sass/less... hmr on custom template languages (fix [#10677](https://togithub.com/vitejs/vite/issues/10677)) ([#10844](https://togithub.com/vitejs/vite/issues/10844)) ([d413848](https://togithub.com/vitejs/vite/commit/d413848)), closes [#10677](https://togithub.com/vitejs/vite/issues/10677) [#10844](https://togithub.com/vitejs/vite/issues/10844) - fix(ssr): preserve require for external node ([#11057](https://togithub.com/vitejs/vite/issues/11057)) ([1ec0176](https://togithub.com/vitejs/vite/commit/1ec0176)), closes [#11057](https://togithub.com/vitejs/vite/issues/11057) - fix(worker): disable build reporter plugin when bundling worker ([#11058](https://togithub.com/vitejs/vite/issues/11058)) ([7b72069](https://togithub.com/vitejs/vite/commit/7b72069)), closes [#11058](https://togithub.com/vitejs/vite/issues/11058) - fix!: make `NODE_ENV` more predictable ([#10996](https://togithub.com/vitejs/vite/issues/10996)) ([8148af7](https://togithub.com/vitejs/vite/commit/8148af7)), closes [#10996](https://togithub.com/vitejs/vite/issues/10996) - fix(config)!: support development build ([#11045](https://togithub.com/vitejs/vite/issues/11045)) ([8b3d656](https://togithub.com/vitejs/vite/commit/8b3d656)), closes [#11045](https://togithub.com/vitejs/vite/issues/11045) - refactor: use function to eval worker and glob options ([#10999](https://togithub.com/vitejs/vite/issues/10999)) ([f4c1264](https://togithub.com/vitejs/vite/commit/f4c1264)), closes [#10999](https://togithub.com/vitejs/vite/issues/10999) - refactor(client): simplify fetchUpdate code ([#11004](https://togithub.com/vitejs/vite/issues/11004)) ([f777b55](https://togithub.com/vitejs/vite/commit/f777b55)), closes [#11004](https://togithub.com/vitejs/vite/issues/11004) - fix(html): transform relative path with long base in /index.html ([#10990](https://togithub.com/vitejs/vite/issues/10990)) ([752740c](https://togithub.com/vitejs/vite/commit/752740c)), closes [#10990](https://togithub.com/vitejs/vite/issues/10990) - fix(mpa): support mpa fallback ([#10985](https://togithub.com/vitejs/vite/issues/10985)) ([61165f0](https://togithub.com/vitejs/vite/commit/61165f0)), closes [#10985](https://togithub.com/vitejs/vite/issues/10985) - feat: align default chunk and asset file names with rollup ([#10927](https://togithub.com/vitejs/vite/issues/10927)) ([cc2adb3](https://togithub.com/vitejs/vite/commit/cc2adb3)), closes [#10927](https://togithub.com/vitejs/vite/issues/10927) - fix: make `addWatchFile()` work (fix [#7024](https://togithub.com/vitejs/vite/issues/7024)) ([#9723](https://togithub.com/vitejs/vite/issues/9723)) ([34db08b](https://togithub.com/vitejs/vite/commit/34db08b)), closes [#7024](https://togithub.com/vitejs/vite/issues/7024) [#9723](https://togithub.com/vitejs/vite/issues/9723) - fix(config): exclude config.assetsInclude empty array ([#10941](https://togithub.com/vitejs/vite/issues/10941)) ([18c71dc](https://togithub.com/vitejs/vite/commit/18c71dc)), closes [#10941](https://togithub.com/vitejs/vite/issues/10941) - fix(ssr): skip optional peer dep resolve ([#10593](https://togithub.com/vitejs/vite/issues/10593)) ([0a69985](https://togithub.com/vitejs/vite/commit/0a69985)), closes [#10593](https://togithub.com/vitejs/vite/issues/10593) - perf: regexp perf issues, refactor regexp stylistic issues ([#10905](https://togithub.com/vitejs/vite/issues/10905)) ([fc007df](https://togithub.com/vitejs/vite/commit/fc007df)), closes [#10905](https://togithub.com/vitejs/vite/issues/10905) - refactor: move CSS emitFile logic closer to rollup ([#10909](https://togithub.com/vitejs/vite/issues/10909)) ([92a206b](https://togithub.com/vitejs/vite/commit/92a206b)), closes [#10909](https://togithub.com/vitejs/vite/issues/10909) - refactor: use rollup hashing when emitting assets ([#10878](https://togithub.com/vitejs/vite/issues/10878)) ([78c77be](https://togithub.com/vitejs/vite/commit/78c77be)), closes [#10878](https://togithub.com/vitejs/vite/issues/10878) - fix: don't throw on malformed URLs ([#10901](https://togithub.com/vitejs/vite/issues/10901)) ([feb9b10](https://togithub.com/vitejs/vite/commit/feb9b10)), closes [#10901](https://togithub.com/vitejs/vite/issues/10901) - fix: gracefully handle forbidden filesystem access ([#10793](https://togithub.com/vitejs/vite/issues/10793)) ([92637a2](https://togithub.com/vitejs/vite/commit/92637a2)), closes [#10793](https://togithub.com/vitejs/vite/issues/10793) - fix(types): remove `null` from `CSSModulesOptions.localsConvention` ([#10904](https://togithub.com/vitejs/vite/issues/10904)) ([a9978dd](https://togithub.com/vitejs/vite/commit/a9978dd)), closes [#10904](https://togithub.com/vitejs/vite/issues/10904) - refactor(types)!: remove facade type files ([#10903](https://togithub.com/vitejs/vite/issues/10903)) ([a309058](https://togithub.com/vitejs/vite/commit/a309058)), closes [#10903](https://togithub.com/vitejs/vite/issues/10903) - fix: inconsistent handling of non-ASCII `base` in `resolveConfig` and dev server ([#10247](https://togithub.com/vitejs/vite/issues/10247)) ([16e4123](https://togithub.com/vitejs/vite/commit/16e4123)), closes [#10247](https://togithub.com/vitejs/vite/issues/10247) - fix: prevent cache on optional package resolve ([#10812](https://togithub.com/vitejs/vite/issues/10812)) ([c599a2e](https://togithub.com/vitejs/vite/commit/c599a2e)), closes [#10812](https://togithub.com/vitejs/vite/issues/10812) - fix: relocated logger to respect config. ([#10787](https://togithub.com/vitejs/vite/issues/10787)) ([52e64eb](https://togithub.com/vitejs/vite/commit/52e64eb)), closes [#10787](https://togithub.com/vitejs/vite/issues/10787) - fix: throw missing name error only when 'umd' or 'iife' are used ([#9886](https://togithub.com/vitejs/vite/issues/9886)) ([b8aa825](https://togithub.com/vitejs/vite/commit/b8aa825)), closes [#9886](https://togithub.com/vitejs/vite/issues/9886) - fix(deps): update all non-major dependencies ([#10804](https://togithub.com/vitejs/vite/issues/10804)) ([f686afa](https://togithub.com/vitejs/vite/commit/f686afa)), closes [#10804](https://togithub.com/vitejs/vite/issues/10804) - fix(ssr): improve missing file error ([#10880](https://togithub.com/vitejs/vite/issues/10880)) ([5451a34](https://togithub.com/vitejs/vite/commit/5451a34)), closes [#10880](https://togithub.com/vitejs/vite/issues/10880) ##### Previous Changelogs ##### [4.0.0-beta.7](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.6....v4.0.0-beta.7) (2022-12-08) See [4.0.0-beta.7 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md) ##### [4.0.0-beta.6](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.5....v4.0.0-beta.6) (2022-12-08) See [4.0.0-beta.6 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md) ##### [4.0.0-beta.5](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.4....v4.0.0-beta.5) (2022-12-08) See [4.0.0-beta.5 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md) ##### [4.0.0-beta.4](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.3....v4.0.0-beta.4) (2022-12-07) See [4.0.0-beta.4 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md) ##### [4.0.0-beta.3](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.2....v4.0.0-beta.3) (2022-12-07) See [4.0.0-beta.3 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md) ##### [4.0.0-beta.2](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.1....v4.0.0-beta.2) (2022-12-07) See [4.0.0-beta.2 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md) ##### [4.0.0-beta.1](https://togithub.com/vitejs/vite/compare/v4.0.0-beta.0....v4.0.0-beta.1) (2022-12-06) See [4.0.0-beta.1 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md) ##### [4.0.0-beta.0](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.6....v4.0.0-beta.0) (2022-12-05) See [4.0.0-beta.0 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-beta.0/packages/vite/CHANGELOG.md) ##### [4.0.0-alpha.6](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.5....v4.0.0-alpha.6) (2022-11-30) See [4.0.0-alpha.6 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.6/packages/vite/CHANGELOG.md) ##### [4.0.0-alpha.5](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.5....v4.0.0-alpha.5) (2022-11-22) See [4.0.0-alpha.5 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.5/packages/vite/CHANGELOG.md) ##### [4.0.0-alpha.4](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.3....v4.0.0-alpha.4) (2022-11-17) See [4.0.0-alpha.4 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.4/packages/vite/CHANGELOG.md) ##### [4.0.0-alpha.3](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.2....v4.0.0-alpha.3) (2022-11-15) See [4.0.0-alpha.3 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.3/packages/vite/CHANGELOG.md) ##### [4.0.0-alpha.2](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.1....v4.0.0-alpha.2) (2022-11-13) See [4.0.0-alpha.2 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.2/packages/vite/CHANGELOG.md) ##### [4.0.0-alpha.1](https://togithub.com/vitejs/vite/compare/v4.0.0-alpha.0....v4.0.0-alpha.1) (2022-11-12) See [4.0.0-alpha.1 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.1/packages/vite/CHANGELOG.md) ##### [4.0.0-alpha.0](https://togithub.com/vitejs/vite/compare/v3.2.5....v4.0.0-alpha.0) (2022-11-07) See [4.0.0-alpha.0 changelog](https://togithub.com/vitejs/vite/blob/v4.0.0-alpha.0/packages/vite/CHANGELOG.md)Configuration
๐ Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).
๐ฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.
โป Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
๐ป Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.