chore(deps): update dependency vite to v4.2.0 #3251

Merged
konrad merged 1 commits from renovate/vite-4.x into main 2023-03-16 14:52:46 +00:00
Member

This PR contains the following updates:

Package Type Update Change
vite (source) devDependencies minor 4.1.4 -> 4.2.0

Release Notes

vitejs/vite

v4.2.0

Compare Source

Vite 4.2 is out!

Support env variables replacement in HTML files

Vite now supports replacing env variables in HTML files. Any properties in import.meta.env can be used in HTML files with a special %ENV_NAME% syntax:

<h1>Vite is running in %MODE%</h1>
<p>Using data from %VITE_API_URL%</p>
Sourcemaps improvements

The Chrome Dev Tools team has been working to improve the DX of Vite and Vite-powered frameworks in the dev tools. Vite 4.2 brings an improved experience and tools for framework authors to hide 3rd party code and build artifacts from the user from console log traces using server.sourcemapIgnoreList and build.rollupOptions.output.sourcemapIgnoreList.

ESM subpath imports

Vite 4.2 now supports subpath imports, thanks to @​lukeed05's resolve.exports library.

TypeScript 5 support

Vite 4.2 also supports TypeScript 5's tsconfig extends array format, thanks to tsconfck.

esbuild 0.17

esbuild v0.17.0 improved the design of its incremental, watch, and serve APIs. Check out #​11908 for the rationale of why we didn't consider the backward-incompatible changes breaking for our use cases. The updated esbuild design now allows Vite to properly cancel in-fly builds and improve server restarts.

Use Rollup types from the vite package

Expose Rollup types as a namespace. This is helpful to avoid type conflicts because of different versions of Rollup types in environments like vite-ecosystem-ci (#​12316).

import type { Rollup } from 'vite'
Português Docs Translation

The Vite documentation is now translated to Português at pt.vitejs.dev thanks to Nazaré Da Piedade .

Features
Bug Fixes
Previous Changelogs
4.2.0-beta.2 (2023-03-13)

See 4.2.0-beta.2 changelog

4.2.0-beta.1 (2023-03-07)

See 4.2.0-beta.1 changelog

4.2.0-beta.0 (2023-02-27)

See 4.2.0-beta.0 changelog


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [vite](https://github.com/vitejs/vite/tree/main/#readme) ([source](https://github.com/vitejs/vite)) | devDependencies | minor | [`4.1.4` -> `4.2.0`](https://renovatebot.com/diffs/npm/vite/4.1.4/4.2.0) | --- ### Release Notes <details> <summary>vitejs/vite</summary> ### [`v4.2.0`](https://github.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#&#8203;420-2023-03-16) [Compare Source](https://github.com/vitejs/vite/compare/v4.1.4...9dbb7f7765fd7d255daf82ad44fe867d49f0befd) Vite 4.2 is out! ##### Support env variables replacement in HTML files Vite now supports [replacing env variables in HTML files](https://vitejs.dev/guide/env-and-mode.html#html-env-replacement). Any properties in `import.meta.env` can be used in HTML files with a special `%ENV_NAME%` syntax: ```html <h1>Vite is running in %MODE%</h1> <p>Using data from %VITE_API_URL%</p> ``` ##### Sourcemaps improvements The Chrome Dev Tools team has been working to improve the DX of Vite and Vite-powered frameworks in the dev tools. Vite 4.2 brings an [improved experience](https://twitter.com/bmeurer/status/1631286267823439881) and tools for framework authors to [hide 3rd party code and build artifacts from the user](https://twitter.com/bmeurer/status/1631531492462526467) from console log traces using [`server.sourcemapIgnoreList`](https://vitejs.dev/config/server-options.html#server-sourcemapignorelist) and [`build.rollupOptions.output.sourcemapIgnoreList`](https://rollupjs.org/configuration-options/#output-sourcemapignorelist). ##### ESM subpath imports Vite 4.2 now supports [subpath imports](https://nodejs.org/api/packages.html#subpath-imports), thanks to [@&#8203;lukeed05](https://twitter.com/lukeed05)'s [resolve.exports](https://github.com/lukeed/resolve.exports) library. ##### TypeScript 5 support Vite 4.2 also supports TypeScript 5's `tsconfig` `extends` [array format](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#supporting-multiple-configuration-files-in-extends), thanks to [tsconfck](https://github.com/dominikg/tsconfck). ##### esbuild 0.17 esbuild [v0.17.0](https://github.com/evanw/esbuild/releases/tag/v0.17.0) improved the design of its incremental, watch, and serve APIs. Check out [#&#8203;11908](https://github.com/vitejs/vite/pull/11908) for the rationale of why we didn't consider the backward-incompatible changes breaking for our use cases. The updated esbuild design now allows Vite to properly cancel in-fly builds and improve server restarts. ##### Use Rollup types from the vite package Expose Rollup types as a namespace. This is helpful to avoid type conflicts because of different versions of Rollup types in environments like [vite-ecosystem-ci](https://github.com/vitejs/vite-ecosystem-ci) ([#&#8203;12316](https://github.com/vitejs/vite/issues/12316)). ```ts import type { Rollup } from 'vite' ``` ##### Português Docs Translation The Vite documentation is now translated to Português at [pt.vitejs.dev](https://pt.vitejs.dev) thanks to [Nazaré Da Piedade](https://twitter.com/nazarepiedady) . ##### Features - feat: add status message for 504 caused by optimizer ([#&#8203;12435](https://github.com/vitejs/vite/issues/12435)) ([5cdd3fa](https://github.com/vitejs/vite/commit/5cdd3fa)), closes [#&#8203;12435](https://github.com/vitejs/vite/issues/12435) - feat: update tsconfck to 2.1.0 to add support for typescript 5 config syntax ([#&#8203;12401](https://github.com/vitejs/vite/issues/12401)) ([3f1c379](https://github.com/vitejs/vite/commit/3f1c379)), closes [#&#8203;12401](https://github.com/vitejs/vite/issues/12401) - feat: default esbuild jsxDev based on config.isProduction ([#&#8203;12386](https://github.com/vitejs/vite/issues/12386)) ([f24c2b0](https://github.com/vitejs/vite/commit/f24c2b0)), closes [#&#8203;12386](https://github.com/vitejs/vite/issues/12386) - feat(css): add `build.cssMinify` ([#&#8203;12207](https://github.com/vitejs/vite/issues/12207)) ([90431f2](https://github.com/vitejs/vite/commit/90431f2)), closes [#&#8203;12207](https://github.com/vitejs/vite/issues/12207) - feat(types): export Rollup namespace ([#&#8203;12316](https://github.com/vitejs/vite/issues/12316)) ([6e49e52](https://github.com/vitejs/vite/commit/6e49e52)), closes [#&#8203;12316](https://github.com/vitejs/vite/issues/12316) - feat: add `sourcemapIgnoreList` configuration option ([#&#8203;12174](https://github.com/vitejs/vite/issues/12174)) ([f875580](https://github.com/vitejs/vite/commit/f875580)), closes [#&#8203;12174](https://github.com/vitejs/vite/issues/12174) - feat: cancellable scan during optimization ([#&#8203;12225](https://github.com/vitejs/vite/issues/12225)) ([1e1cd3b](https://github.com/vitejs/vite/commit/1e1cd3b)), closes [#&#8203;12225](https://github.com/vitejs/vite/issues/12225) - feat: don't override `build.target` if terser is 5.16.0+ ([#&#8203;12197](https://github.com/vitejs/vite/issues/12197)) ([9885f6f](https://github.com/vitejs/vite/commit/9885f6f)), closes [#&#8203;12197](https://github.com/vitejs/vite/issues/12197) - feat: support ESM subpath imports ([#&#8203;7770](https://github.com/vitejs/vite/issues/7770)) ([cc92da9](https://github.com/vitejs/vite/commit/cc92da9)), closes [#&#8203;7770](https://github.com/vitejs/vite/issues/7770) - feat(css): add preprocessor option to define stylus vars & funcs ([#&#8203;7227](https://github.com/vitejs/vite/issues/7227)) ([5968bec](https://github.com/vitejs/vite/commit/5968bec)), closes [#&#8203;7227](https://github.com/vitejs/vite/issues/7227) - feat(css): support resolving stylesheets from exports map ([#&#8203;7817](https://github.com/vitejs/vite/issues/7817)) ([108aadf](https://github.com/vitejs/vite/commit/108aadf)), closes [#&#8203;7817](https://github.com/vitejs/vite/issues/7817) - feat(html): support env replacement ([#&#8203;12202](https://github.com/vitejs/vite/issues/12202)) ([4f2c49f](https://github.com/vitejs/vite/commit/4f2c49f)), closes [#&#8203;12202](https://github.com/vitejs/vite/issues/12202) - refactor: customize ErrorOverlay (part 2) ([#&#8203;11830](https://github.com/vitejs/vite/issues/11830)) ([4159e6f](https://github.com/vitejs/vite/commit/4159e6f)), closes [#&#8203;11830](https://github.com/vitejs/vite/issues/11830) - refactor: remove constructed sheet type style injection ([#&#8203;11818](https://github.com/vitejs/vite/issues/11818)) ([1a6a0c2](https://github.com/vitejs/vite/commit/1a6a0c2)), closes [#&#8203;11818](https://github.com/vitejs/vite/issues/11818) - refactor(importAnalysis): cache injected env string ([#&#8203;12154](https://github.com/vitejs/vite/issues/12154)) ([2aad552](https://github.com/vitejs/vite/commit/2aad552)), closes [#&#8203;12154](https://github.com/vitejs/vite/issues/12154) - feat: esbuild 0.17 ([#&#8203;11908](https://github.com/vitejs/vite/issues/11908)) ([9d42f06](https://github.com/vitejs/vite/commit/9d42f06)), closes [#&#8203;11908](https://github.com/vitejs/vite/issues/11908) - feat: ignore list client injected sources ([#&#8203;12170](https://github.com/vitejs/vite/issues/12170)) ([8a98aef](https://github.com/vitejs/vite/commit/8a98aef)), closes [#&#8203;12170](https://github.com/vitejs/vite/issues/12170) - feat: support rollup plugin `this.load` in plugin container context ([#&#8203;11469](https://github.com/vitejs/vite/issues/11469)) ([abfa804](https://github.com/vitejs/vite/commit/abfa804)), closes [#&#8203;11469](https://github.com/vitejs/vite/issues/11469) - feat(cli): allow to specify sourcemap mode via --sourcemap build's option ([#&#8203;11505](https://github.com/vitejs/vite/issues/11505)) ([ee3b90a](https://github.com/vitejs/vite/commit/ee3b90a)), closes [#&#8203;11505](https://github.com/vitejs/vite/issues/11505) - feat(reporter): report built time ([#&#8203;12100](https://github.com/vitejs/vite/issues/12100)) ([f2ad222](https://github.com/vitejs/vite/commit/f2ad222)), closes [#&#8203;12100](https://github.com/vitejs/vite/issues/12100) ##### Bug Fixes - fix: html env replacement plugin position ([#&#8203;12404](https://github.com/vitejs/vite/issues/12404)) ([96f36a9](https://github.com/vitejs/vite/commit/96f36a9)), closes [#&#8203;12404](https://github.com/vitejs/vite/issues/12404) - fix(optimizer): # symbol in deps id stripped by browser ([#&#8203;12415](https://github.com/vitejs/vite/issues/12415)) ([e23f690](https://github.com/vitejs/vite/commit/e23f690)), closes [#&#8203;12415](https://github.com/vitejs/vite/issues/12415) - fix(resolve): rebase sub imports relative path ([#&#8203;12373](https://github.com/vitejs/vite/issues/12373)) ([fe1d61a](https://github.com/vitejs/vite/commit/fe1d61a)), closes [#&#8203;12373](https://github.com/vitejs/vite/issues/12373) - fix(server): should close server after create new server ([#&#8203;12379](https://github.com/vitejs/vite/issues/12379)) ([d23605d](https://github.com/vitejs/vite/commit/d23605d)), closes [#&#8203;12379](https://github.com/vitejs/vite/issues/12379) - fix(resolve): remove deep import syntax handling ([#&#8203;12381](https://github.com/vitejs/vite/issues/12381)) ([42e0d6a](https://github.com/vitejs/vite/commit/42e0d6a)), closes [#&#8203;12381](https://github.com/vitejs/vite/issues/12381) - fix: print urls when dns order change ([#&#8203;12261](https://github.com/vitejs/vite/issues/12261)) ([e57cacf](https://github.com/vitejs/vite/commit/e57cacf)), closes [#&#8203;12261](https://github.com/vitejs/vite/issues/12261) - fix: throw ssr import error directly (fix [#&#8203;12322](https://github.com/vitejs/vite/issues/12322)) ([#&#8203;12324](https://github.com/vitejs/vite/issues/12324)) ([21ffc6a](https://github.com/vitejs/vite/commit/21ffc6a)), closes [#&#8203;12322](https://github.com/vitejs/vite/issues/12322) [#&#8203;12324](https://github.com/vitejs/vite/issues/12324) - fix(config): watch config even outside of root ([#&#8203;12321](https://github.com/vitejs/vite/issues/12321)) ([7e2fff7](https://github.com/vitejs/vite/commit/7e2fff7)), closes [#&#8203;12321](https://github.com/vitejs/vite/issues/12321) - fix(config): watch envDir even outside of root ([#&#8203;12349](https://github.com/vitejs/vite/issues/12349)) ([131f3ee](https://github.com/vitejs/vite/commit/131f3ee)), closes [#&#8203;12349](https://github.com/vitejs/vite/issues/12349) - fix(define): correctly replace SSR in dev ([#&#8203;12204](https://github.com/vitejs/vite/issues/12204)) ([0f6de4d](https://github.com/vitejs/vite/commit/0f6de4d)), closes [#&#8203;12204](https://github.com/vitejs/vite/issues/12204) - fix(optimizer): suppress esbuild cancel error ([#&#8203;12358](https://github.com/vitejs/vite/issues/12358)) ([86a24e4](https://github.com/vitejs/vite/commit/86a24e4)), closes [#&#8203;12358](https://github.com/vitejs/vite/issues/12358) - fix(optimizer): transform css require to import directly ([#&#8203;12343](https://github.com/vitejs/vite/issues/12343)) ([716286e](https://github.com/vitejs/vite/commit/716286e)), closes [#&#8203;12343](https://github.com/vitejs/vite/issues/12343) - fix(reporter): build.assetsDir should not impact output when in lib mode ([#&#8203;12108](https://github.com/vitejs/vite/issues/12108)) ([b12f457](https://github.com/vitejs/vite/commit/b12f457)), closes [#&#8203;12108](https://github.com/vitejs/vite/issues/12108) - fix(types): avoid resolve.exports types for bundling ([#&#8203;12346](https://github.com/vitejs/vite/issues/12346)) ([6b40f03](https://github.com/vitejs/vite/commit/6b40f03)), closes [#&#8203;12346](https://github.com/vitejs/vite/issues/12346) - fix(worker): force rollup to build worker module under watch mode ([#&#8203;11919](https://github.com/vitejs/vite/issues/11919)) ([d464679](https://github.com/vitejs/vite/commit/d464679)), closes [#&#8203;11919](https://github.com/vitejs/vite/issues/11919) - fix: resolve browser mapping using bare imports (fix [#&#8203;11208](https://github.com/vitejs/vite/issues/11208)) ([#&#8203;11219](https://github.com/vitejs/vite/issues/11219)) ([22de84f](https://github.com/vitejs/vite/commit/22de84f)), closes [#&#8203;11208](https://github.com/vitejs/vite/issues/11208) [#&#8203;11219](https://github.com/vitejs/vite/issues/11219) - fix: avoid null sourcePath in `server.sourcemapIgnoreList` ([#&#8203;12251](https://github.com/vitejs/vite/issues/12251)) ([209c3bd](https://github.com/vitejs/vite/commit/209c3bd)), closes [#&#8203;12251](https://github.com/vitejs/vite/issues/12251) - fix: configure proxy before subscribing to error events ([#&#8203;12263](https://github.com/vitejs/vite/issues/12263)) ([c35e100](https://github.com/vitejs/vite/commit/c35e100)), closes [#&#8203;12263](https://github.com/vitejs/vite/issues/12263) - fix: enforce absolute path for server.sourcemapIgnoreList ([#&#8203;12309](https://github.com/vitejs/vite/issues/12309)) ([ab6ae07](https://github.com/vitejs/vite/commit/ab6ae07)), closes [#&#8203;12309](https://github.com/vitejs/vite/issues/12309) - fix: handle error without line and column in loc ([#&#8203;12312](https://github.com/vitejs/vite/issues/12312)) ([ce18eba](https://github.com/vitejs/vite/commit/ce18eba)), closes [#&#8203;12312](https://github.com/vitejs/vite/issues/12312) - fix: properly clean up optimization temp folder ([#&#8203;12237](https://github.com/vitejs/vite/issues/12237)) ([fbbf8fe](https://github.com/vitejs/vite/commit/fbbf8fe)), closes [#&#8203;12237](https://github.com/vitejs/vite/issues/12237) - fix: unique dep optimizer temp folders ([#&#8203;12252](https://github.com/vitejs/vite/issues/12252)) ([38ce81c](https://github.com/vitejs/vite/commit/38ce81c)), closes [#&#8203;12252](https://github.com/vitejs/vite/issues/12252) - fix(build-import-analysis): should not append ?used when css request has ?url or ?raw ([#&#8203;11910](https://github.com/vitejs/vite/issues/11910)) ([e3f725f](https://github.com/vitejs/vite/commit/e3f725f)), closes [#&#8203;11910](https://github.com/vitejs/vite/issues/11910) - fix(optimizer): don not call context.rebuild after cancel ([#&#8203;12264](https://github.com/vitejs/vite/issues/12264)) ([520d84e](https://github.com/vitejs/vite/commit/520d84e)), closes [#&#8203;12264](https://github.com/vitejs/vite/issues/12264) - fix(resolve): update `resolve.exports` to `2.0.1` to fix `*` resolution issue ([#&#8203;12314](https://github.com/vitejs/vite/issues/12314)) ([523d6f7](https://github.com/vitejs/vite/commit/523d6f7)), closes [#&#8203;12314](https://github.com/vitejs/vite/issues/12314) - fix: use relative paths in `sources` for transformed source maps ([#&#8203;12079](https://github.com/vitejs/vite/issues/12079)) ([bcbc582](https://github.com/vitejs/vite/commit/bcbc582)), closes [#&#8203;12079](https://github.com/vitejs/vite/issues/12079) - fix(cli): after setting server.open, the default open is inconsistent… ([#&#8203;11974](https://github.com/vitejs/vite/issues/11974)) ([33a38db](https://github.com/vitejs/vite/commit/33a38db)), closes [#&#8203;11974](https://github.com/vitejs/vite/issues/11974) - fix(client-inject): replace globalThis.process.env.NODE_ENV (fix [#&#8203;12185](https://github.com/vitejs/vite/issues/12185)) ([#&#8203;12194](https://github.com/vitejs/vite/issues/12194)) ([2063648](https://github.com/vitejs/vite/commit/2063648)), closes [#&#8203;12185](https://github.com/vitejs/vite/issues/12185) [#&#8203;12194](https://github.com/vitejs/vite/issues/12194) - fix(css): should not rebase http url for less (fix: [#&#8203;12155](https://github.com/vitejs/vite/issues/12155)) ([#&#8203;12195](https://github.com/vitejs/vite/issues/12195)) ([9cca30d](https://github.com/vitejs/vite/commit/9cca30d)), closes [#&#8203;12155](https://github.com/vitejs/vite/issues/12155) [#&#8203;12195](https://github.com/vitejs/vite/issues/12195) - fix(deps): update all non-major dependencies ([#&#8203;12036](https://github.com/vitejs/vite/issues/12036)) ([48150f2](https://github.com/vitejs/vite/commit/48150f2)), closes [#&#8203;12036](https://github.com/vitejs/vite/issues/12036) - fix(import-analysis): improve error for jsx to not be preserve in tsconfig ([#&#8203;12018](https://github.com/vitejs/vite/issues/12018)) ([91fac1c](https://github.com/vitejs/vite/commit/91fac1c)), closes [#&#8203;12018](https://github.com/vitejs/vite/issues/12018) - fix(optimizer): log esbuild error when scanning deps ([#&#8203;11977](https://github.com/vitejs/vite/issues/11977)) ([20e6060](https://github.com/vitejs/vite/commit/20e6060)), closes [#&#8203;11977](https://github.com/vitejs/vite/issues/11977) - fix(optimizer): log unoptimizable entries ([#&#8203;12138](https://github.com/vitejs/vite/issues/12138)) ([2c93e0b](https://github.com/vitejs/vite/commit/2c93e0b)), closes [#&#8203;12138](https://github.com/vitejs/vite/issues/12138) - fix(server): watch env files creating and deleting (fix [#&#8203;12127](https://github.com/vitejs/vite/issues/12127)) ([#&#8203;12129](https://github.com/vitejs/vite/issues/12129)) ([cc3724f](https://github.com/vitejs/vite/commit/cc3724f)), closes [#&#8203;12127](https://github.com/vitejs/vite/issues/12127) [#&#8203;12129](https://github.com/vitejs/vite/issues/12129) - build: correct d.ts output dir in development ([#&#8203;12212](https://github.com/vitejs/vite/issues/12212)) ([b90bc1f](https://github.com/vitejs/vite/commit/b90bc1f)), closes [#&#8203;12212](https://github.com/vitejs/vite/issues/12212) ##### Previous Changelogs ##### [4.2.0-beta.2](https://github.com/vitejs/vite/compare/v4.2.0-beta.1....v4.2.0-beta.2) (2023-03-13) See [4.2.0-beta.2 changelog](https://github.com/vitejs/vite/blob/v4.2.0-beta.2/packages/vite/CHANGELOG.md) ##### [4.2.0-beta.1](https://github.com/vitejs/vite/compare/v4.2.0-beta.0....v4.2.0-beta.1) (2023-03-07) See [4.2.0-beta.1 changelog](https://github.com/vitejs/vite/blob/v4.2.0-beta.1/packages/vite/CHANGELOG.md) ##### [4.2.0-beta.0](https://github.com/vitejs/vite/compare/v4.1.4....v4.2.0-beta.0) (2023-02-27) See [4.2.0-beta.0 changelog](https://github.com/vitejs/vite/blob/v4.2.0-beta.0/packages/vite/CHANGELOG.md) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTcuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE1Ny4wIn0=-->
renovate added the
dependencies
label 2023-03-16 11:06:29 +00:00
renovate added 1 commit 2023-03-16 11:06:30 +00:00
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
49954abbbe
chore(deps): update dependency vite to v4.2.0
Member

Hi renovate!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://3251-renovate-vite-4-x--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi renovate! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://3251-renovate-vite-4-x--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
konrad merged commit 49954abbbe into main 2023-03-16 14:52:46 +00:00
konrad deleted branch renovate/vite-4.x 2023-03-16 14:52:46 +00:00
Member

Support env variables replacement in HTML files
Vite now supports replacing env variables in HTML files. Any properties in import.meta.env can be used in HTML files with a special %ENV_NAME% syntax:

https://vitejs.dev/guide/env-and-mode.html#html-env-replacement

Oh that's nice!

> Support env variables replacement in HTML files Vite now supports replacing env variables in HTML files. Any properties in import.meta.env can be used in HTML files with a special %ENV_NAME% syntax: https://vitejs.dev/guide/env-and-mode.html#html-env-replacement Oh that's nice!
This repo is archived. You cannot comment on pull requests.
No description provided.