From 378922da96b8d3c03e3e4ea7e1ad9f612a0e35b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=91=9E?= <2896402717@qq.com> Date: Mon, 2 Dec 2024 09:31:52 +0800 Subject: [PATCH] chore(node/constants): add jxl and remove delete outdated text content --- docs/guide/api-environment.md | 11 ----------- packages/vite/src/node/constants.ts | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/docs/guide/api-environment.md b/docs/guide/api-environment.md index fd63475f39bda8..5aaabd38e8e9e0 100644 --- a/docs/guide/api-environment.md +++ b/docs/guide/api-environment.md @@ -1,16 +1,5 @@ # Environment API -:::warning Experimental -Initial work for this API was introduced in Vite 5.1 with the name "Vite Runtime API". This guide describes a revised API, renamed to Environment API. This API will be released in Vite 6 as experimental. You can already test it in the latest `vite@6.0.0-beta.x` version. - -Resources: - -- [Feedback discussion](https://github.com/vitejs/vite/discussions/16358) where we are gathering feedback about the new APIs. -- [Environment API PR](https://github.com/vitejs/vite/pull/16471) where the new API were implemented and reviewed. - -Please share with us your feedback as you test the proposal. -::: - ## Formalizing Environments Vite 6 formalizes the concept of Environments. Until Vite 5, there were two implicit Environments (`client`, and optionally `ssr`). The new Environment API allows users and framework authors to create as many environments as needed to map the way their apps work in production. This new capability required a big internal refactoring, but a lot of effort has been placed on backward compatibility. The initial goal of Vite 6 is to move the ecosystem to the new major as smoothly as possible, delaying the adoption of these new experimental APIs until enough users have migrated and frameworks and plugin authors have validated the new design. diff --git a/packages/vite/src/node/constants.ts b/packages/vite/src/node/constants.ts index 0f865742c4cc1a..fe87b0ef0522b3 100644 --- a/packages/vite/src/node/constants.ts +++ b/packages/vite/src/node/constants.ts @@ -133,7 +133,7 @@ export const KNOWN_ASSET_TYPES = [ 'webp', 'avif', 'cur', - + 'jxl', // media 'mp4', 'webm',