Skip to content

Commit

Permalink
docs: Environment API (#16089)
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Minar <i@igor.dev>
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
Co-authored-by: 翠 / green <green@sapphi.red>
Co-authored-by: Clément <clemvnt@gmail.com>
  • Loading branch information
5 people committed Apr 19, 2024
1 parent f684d4c commit 777967d
Show file tree
Hide file tree
Showing 5 changed files with 888 additions and 234 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ export default defineConfig({
link: '/guide/api-javascript',
},
{
text: 'Vite Runtime API',
link: '/guide/api-vite-runtime',
text: 'Vite Environment API',
link: '/guide/api-vite-environment',
},
{
text: 'Config Reference',
Expand Down
2 changes: 0 additions & 2 deletions docs/blog/announcing-vite5-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ The new API brings many benefits:

The initial idea [was proposed by Pooya Parsa](https://github.com/nuxt/vite/pull/201) and implemented by [Anthony Fu](https://github.com/antfu) as the [vite-node](https://github.com/vitest-dev/vitest/tree/main/packages/vite-node#readme) package to [power Nuxt 3 Dev SSR](https://antfu.me/posts/dev-ssr-on-nuxt) and later also used as the base for [Vitest](https://vitest.dev). So the general idea of vite-node has been battle-tested for quite some time now. This is a new iteration of the API by [Vladimir Sheremet](https://github.com/sheremet-va), who had already re-implemented vite-node in Vitest and took the learnings to make the API even more powerful and flexible when adding it to Vite Core. The PR was one year in the makings, you can see the evolution and discussions with ecosystem maintainers [here](https://github.com/vitejs/vite/issues/12165).

Read more in the [Vite Runtime API guide](/guide/api-vite-runtime) and [give us feedback](https://github.com/vitejs/vite/discussions/15774).

## Features

### Improved support for `.css?url`
Expand Down

0 comments on commit 777967d

Please sign in to comment.