Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W waterdataui
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Water Mission Area
  • Internet of Water
  • waterdataui
  • Merge requests
  • !772

Update dependency vite to v4.2.0 - autoclosed

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed igswsihw-wmadepbot requested to merge renovate/vite-4.x into main Feb 17, 2023
  • Overview 0
  • Commits 1
  • Changes 2

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
vite (source) 4.1.1 -> 4.2.0 age adoption passing confidence

⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the logs for more information.


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
  • feat: add status message for 504 caused by optimizer (#​12435) (5cdd3fa), closes #​12435
  • feat: update tsconfck to 2.1.0 to add support for typescript 5 config syntax (#​12401) (3f1c379), closes #​12401
  • feat: default esbuild jsxDev based on config.isProduction (#​12386) (f24c2b0), closes #​12386
  • feat(css): add build.cssMinify (#​12207) (90431f2), closes #​12207
  • feat(types): export Rollup namespace (#​12316) (6e49e52), closes #​12316
  • feat: add sourcemapIgnoreList configuration option (#​12174) (f875580), closes #​12174
  • feat: cancellable scan during optimization (#​12225) (1e1cd3b), closes #​12225
  • feat: don't override build.target if terser is 5.16.0+ (#​12197) (9885f6f), closes #​12197
  • feat: support ESM subpath imports (#​7770) (cc92da9), closes #​7770
  • feat(css): add preprocessor option to define stylus vars & funcs (#​7227) (5968bec), closes #​7227
  • feat(css): support resolving stylesheets from exports map (#​7817) (108aadf), closes #​7817
  • feat(html): support env replacement (#​12202) (4f2c49f), closes #​12202
  • refactor: customize ErrorOverlay (part 2) (#​11830) (4159e6f), closes #​11830
  • refactor: remove constructed sheet type style injection (#​11818) (1a6a0c2), closes #​11818
  • refactor(importAnalysis): cache injected env string (#​12154) (2aad552), closes #​12154
  • feat: esbuild 0.17 (#​11908) (9d42f06), closes #​11908
  • feat: ignore list client injected sources (#​12170) (8a98aef), closes #​12170
  • feat: support rollup plugin this.load in plugin container context (#​11469) (abfa804), closes #​11469
  • feat(cli): allow to specify sourcemap mode via --sourcemap build's option (#​11505) (ee3b90a), closes #​11505
  • feat(reporter): report built time (#​12100) (f2ad222), closes #​12100
Bug Fixes
  • fix: html env replacement plugin position (#​12404) (96f36a9), closes #​12404
  • fix(optimizer): # symbol in deps id stripped by browser (#​12415) (e23f690), closes #​12415
  • fix(resolve): rebase sub imports relative path (#​12373) (fe1d61a), closes #​12373
  • fix(server): should close server after create new server (#​12379) (d23605d), closes #​12379
  • fix(resolve): remove deep import syntax handling (#​12381) (42e0d6a), closes #​12381
  • fix: print urls when dns order change (#​12261) (e57cacf), closes #​12261
  • fix: throw ssr import error directly (fix #​12322) (#​12324) (21ffc6a), closes #​12322 #​12324
  • fix(config): watch config even outside of root (#​12321) (7e2fff7), closes #​12321
  • fix(config): watch envDir even outside of root (#​12349) (131f3ee), closes #​12349
  • fix(define): correctly replace SSR in dev (#​12204) (0f6de4d), closes #​12204
  • fix(optimizer): suppress esbuild cancel error (#​12358) (86a24e4), closes #​12358
  • fix(optimizer): transform css require to import directly (#​12343) (716286e), closes #​12343
  • fix(reporter): build.assetsDir should not impact output when in lib mode (#​12108) (b12f457), closes #​12108
  • fix(types): avoid resolve.exports types for bundling (#​12346) (6b40f03), closes #​12346
  • fix(worker): force rollup to build worker module under watch mode (#​11919) (d464679), closes #​11919
  • fix: resolve browser mapping using bare imports (fix #​11208) (#​11219) (22de84f), closes #​11208 #​11219
  • fix: avoid null sourcePath in server.sourcemapIgnoreList (#​12251) (209c3bd), closes #​12251
  • fix: configure proxy before subscribing to error events (#​12263) (c35e100), closes #​12263
  • fix: enforce absolute path for server.sourcemapIgnoreList (#​12309) (ab6ae07), closes #​12309
  • fix: handle error without line and column in loc (#​12312) (ce18eba), closes #​12312
  • fix: properly clean up optimization temp folder (#​12237) (fbbf8fe), closes #​12237
  • fix: unique dep optimizer temp folders (#​12252) (38ce81c), closes #​12252
  • fix(build-import-analysis): should not append ?used when css request has ?url or ?raw (#​11910) (e3f725f), closes #​11910
  • fix(optimizer): don not call context.rebuild after cancel (#​12264) (520d84e), closes #​12264
  • fix(resolve): update resolve.exports to 2.0.1 to fix * resolution issue (#​12314) (523d6f7), closes #​12314
  • fix: use relative paths in sources for transformed source maps (#​12079) (bcbc582), closes #​12079
  • fix(cli): after setting server.open, the default open is inconsistent… (#​11974) (33a38db), closes #​11974
  • fix(client-inject): replace globalThis.process.env.NODE_ENV (fix #​12185) (#​12194) (2063648), closes #​12185 #​12194
  • fix(css): should not rebase http url for less (fix: #​12155) (#​12195) (9cca30d), closes #​12155 #​12195
  • fix(deps): update all non-major dependencies (#​12036) (48150f2), closes #​12036
  • fix(import-analysis): improve error for jsx to not be preserve in tsconfig (#​12018) (91fac1c), closes #​12018
  • fix(optimizer): log esbuild error when scanning deps (#​11977) (20e6060), closes #​11977
  • fix(optimizer): log unoptimizable entries (#​12138) (2c93e0b), closes #​12138
  • fix(server): watch env files creating and deleting (fix #​12127) (#​12129) (cc3724f), closes #​12127 #​12129
  • build: correct d.ts output dir in development (#​12212) (b90bc1f), closes #​12212
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

v4.1.4

Compare Source

  • fix(define): should not stringify vite internal env (#​12120) (73c3999), closes #​12120
  • docs: update rollup docs links (#​12130) (439a73f), closes #​12130

v4.1.3

Compare Source

  • fix: catch and handle websocket error (#​11991) (#​12007) (4b5cc9f), closes #​11991 #​12007
  • fix: do not append version query param when scanning for dependencies (#​11961) (575bcf6), closes #​11961
  • fix(css): handle pure css chunk heuristic with special queries (#​12091) (a873af5), closes #​12091
  • fix(esbuild): umd helper insert into wrong position in lib mode (#​11988) (86bc243), closes #​11988
  • fix(html): respect disable modulepreload (#​12111) (6c50119), closes #​12111
  • fix(html): rewrite assets url in <noscript> (#​11764) (1dba285), closes #​11764
  • feat(preview): improve error when build output missing (#​12096) (a0702a1), closes #​12096
  • feat(ssr): add importer path to error msg when invalid url import occur (#​11606) (70729c0), closes #​11606

v4.1.2

Compare Source

  • fix: correct access to crossOrigin attribute (#​12023) (6a0d356), closes #​12023
  • fix: narrow defineConfig return type (#​12021) (18fa8f0), closes #​12021
  • fix(define): inconsistent env values in build mode (#​12058) (0a50c59), closes #​12058
  • fix(env): compatible with env variables ended with unescaped $ (#​12031) (05b3df0), closes #​12031
  • fix(ssr): print file url in ssrTransform parse error (#​12060) (19f39f7), closes #​12060
  • revert: narrow defineConfig return type (#​12077) (54d511e), closes #​12077
  • feat: support import.meta.hot?.accept (#​12053) (081c27f), closes #​12053
  • chore: add jsdoc default value (#​11746) (8c87af7), closes #​11746
  • chore: fix typos (#​12032) (ee1a686), closes #​12032
  • chore(deps): update dependency strip-literal to v1 (#​12044) (5bd6c0a), closes #​12044
  • chore(pluginContainer): simplify error position judge condition (#​12003) (e3ef9f4), closes #​12003

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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

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


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

This MR has been generated by Renovate Bot.

Edited Mar 17, 2023 by igswsihw-wmadepbot
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: renovate/vite-4.x