Skip to content

test 1 Update dependency vite to v3

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
vite (source) ^2.9.9 -> ^3.0.0 age adoption passing confidence

Release Notes

vitejs/vite

v3.2.4

Compare Source

Please refer to CHANGELOG.md for details.

v3.2.3

Compare Source

v3.2.2

Compare Source

v3.2.1

Compare Source

v3.2.0

Compare Source

Main Changes
Multiple Entries for Library Mode

Library mode now supports multiple entries:

  lib: {
    entry: {
        primary: 'src/index.ts',
        secondary: 'src/secondary.ts'
    },
    formats: ['es', 'cjs']
  }
  // => primary.es.js, primary.cjs.js, secondary.es.js, secondary.cjs.js

Check out the MR #​7047, and the build.lib config docs

build.modulePreload options

Vite now allows filtering and modifying module preload dependencies for each entry and async chunk. experimental.renderBuiltUrl will also get called for preload asset paths. And build.modulePreload.resolveDependencies will be called both for JS dynamic imports preload lists and also for HTML preload lists for chunks imported from entry HTML files. Refer to the MR for more context #​9938 and check out the modulePreload config docs. Note: build.modulePreloadPolyfill is now deprecated, please migrate to build.modulePreload.polyfill.

Include Duplicate Assets in the Manifest

Laravel and other backends integrations will now get entries for every asset file, even if they have been de-duplicated. See #​9928 for more information.

Customizable ErrorOverlay

You can now customize the ErrorOverlay by using css parts. Check out the MR for more details: #​10234.

Features
Bug Fixes
Previous Changelogs
3.2.0-beta.4 (2022-10-24)

See 3.2.0-beta.4 changelog

3.2.0-beta.3 (2022-10-20)

See 3.2.0-beta.3 changelog

3.2.0-beta.2 (2022-10-14)

See 3.2.0-beta.2 changelog

3.2.0-beta.1 (2022-10-10)

See 3.2.0-beta.1 changelog

3.2.0-beta.0 (2022-10-05)

See 3.2.0-beta.0 changelog

v3.1.8

Compare Source

Please refer to CHANGELOG.md for details.

v3.1.7

Compare Source

Please refer to CHANGELOG.md for details.

v3.1.6

Compare Source

Please refer to CHANGELOG.md for details.

v3.1.5

Compare Source

Please refer to CHANGELOG.md for details.

v3.1.4

Compare Source

Please refer to CHANGELOG.md for details.

v3.1.3

Compare Source

v3.1.2

Compare Source

v3.1.1

Compare Source

v3.1.0

Compare Source

Main Changes
  • Vite now uses parse5, which parses HTML in the same way as the latest browser versions. This migration gives us a more robust HTML story moving forward (#​9678).
  • Vite now supports using objects as hooks to change execution order (#​9634). Check out the RFC and the implementation upstream at rollup/rollup#​4600 for details and rationale.
      import { resolve } from 'node:path';
      import { readdir } from 'node:fs/promises';
    
      export default function getFilesOnDisk() {
        return {
          name: 'getFilesOnDisk',
          writeBundle: {
            // run this hook sequentially even if the hook is parallel
            sequential: true,
            // push this hook to the 'post' stage, after all normal hooks
            order: 'post',
            // hook implementation
            async handler({ dir }) {
              const topLevelFiles = await readdir(resolve(dir))
              console.log(topLevelFiles)
            }
          }
        }
      }
    Read the updated Rollup Plugin docs for more information.

Note After Vite 3.1, you are no longer going to see [vite] hot updated log messages in the browser console. These messages have been moved to the debug channel (#​8855). Check your browser docs to show debug logs.

Features
Bug Fixes
Previous Changelogs
3.1.0-beta.2 (2022-09-02)

See 3.1.0-beta.2 changelog

3.1.0-beta.1 (2022-08-29)

See 3.1.0-beta.1 changelog

3.1.0-beta.0 (2022-08-25)

See 3.1.0-beta.0 changelog

v3.0.9

Compare Source

v3.0.8

Compare Source

v3.0.7

Compare Source

v3.0.6

Compare Source

v3.0.5

Compare Source

v3.0.4

Compare Source

v3.0.3

Compare Source

v3.0.2

Compare Source

v3.0.1

Compare Source

v3.0.0

Compare Source

Main Changes

Vite 3 is out! Read the Vite 3 Announcement blog post

  • New docs theme using VitePress v1 alpha: https://vitejs.dev
  • Vite CLI
    • The default dev server port is now 5173, with the preview server starting at 4173.
    • The default dev server host is now localhost instead of 127.0.0.1.
  • Compatibility
    • Vite no longer supports Node v12, which reached its EOL. Node 14.18+ is now required.
    • Vite is now published as ESM, with a CJS proxy to the ESM entry for compatibility.
    • The Modern Browser Baseline now targets browsers which support the native ES Modules and native ESM dynamic import and import.meta.
    • JS file extensions in SSR and lib mode now use a valid extension (js, mjs, or cjs) for output JS entries and chunks based on their format and the package type.
  • Architecture changes
    • Vite now avoids full reload during cold start when imports are injected by plugins in while crawling the initial statically imported modules (#​8869).
    • Vite uses ESM for the SSR build by default, and previous SSR externalization heuristics are no longer needed.
  • import.meta.glob has been improved, read about the new features in the Glob Import Guide
  • The WebAssembly import API has been revised to avoid collisions with future standards. Read more in the WebAssembly guide
  • Improved support for relative base.
  • Experimental Features
  • Bundle size reduction
    • Terser is now an optional dependency. If you use build.minify: 'terser', you'll need to install it (npm add -D terser)
    • node-forge moved out of the monorepo to @​vitejs/plugin-basic-ssl
  • Options that were already deprecated in v2 have been removed.

Note Before updating, check out the migration guide from v2

Features
Bug Fixes
Previous Changelogs
3.0.0-beta.10 (2022-07-11)

See 3.0.0-beta.10 changelog

3.0.0-beta.9 (2022-07-08)

See 3.0.0-beta.9 changelog

3.0.0-beta.8 (2022-07-08)

See 3.0.0-beta.8 changelog

3.0.0-beta.7 (2022-07-06)

See 3.0.0-beta.7 changelog

3.0.0-beta.6 (2022-07-04)

See 3.0.0-beta.6 changelog

3.0.0-beta.5 (2022-06-28)

See 3.0.0-beta.5 changelog

3.0.0-beta.4 (2022-06-27)

See 3.0.0-beta.4 changelog

3.0.0-beta.3 (2022-06-26)

See 3.0.0-beta.3 changelog

3.0.0-beta.2 (2022-06-24)

See 3.0.0-beta.2 changelog

3.0.0-beta.1 (2022-06-22)

See 3.0.0-beta.1 changelog

3.0.0-beta.0 (2022-06-21)

See 3.0.0-beta.0 changelog

3.0.0-alpha.14 (2022-06-20)

See 3.0.0-alpha.14 changelog

3.0.0-alpha.13 (2022-06-19)

See 3.0.0-alpha.13 changelog

3.0.0-alpha.12 (2022-06-16)

See 3.0.0-alpha.12 changelog

3.0.0-alpha.11 (2022-06-14)

See 3.0.0-alpha.11 changelog

3.0.0-alpha.10 (2022-06-10)

See 3.0.0-alpha.10 changelog

3.0.0-alpha.9 (2022-06-01)

See 3.0.0-alpha.9 changelog

3.0.0-alpha.8 (2022-05-31)

See 3.0.0-alpha.8 changelog

3.0.0-alpha.7 (2022-05-27)

See 3.0.0-alpha.7 changelog

3.0.0-alpha.6 (2022-05-27)

See 3.0.0-alpha.6 changelog

3.0.0-alpha.5 (2022-05-26)

See 3.0.0-alpha.5 changelog

3.0.0-alpha.4 (2022-05-25)

See 3.0.0-alpha.4 changelog

3.0.0-alpha.3 (2022-05-25)

See 3.0.0-alpha.3 changelog

3.0.0-alpha.2 (2022-05-23)

See 3.0.0-alpha.2 changelog

3.0.0-alpha.1 (2022-05-18)

See 3.0.0-alpha.1 changelog

3.0.0-alpha.0 (2022-05-13)

See 3.0.0-alpha.0 changelog


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.

合并请求报告

加载中