vite/CHANGELOG.md
2020-11-25 12:29:43 -05:00

98 KiB

1.0.0-rc.13 (2020-11-25)

1.0.0-rc.11 (2020-11-25)

Bug Fixes

  • move https-proxy types to dependencies (2753658)

1.0.0-rc.10 (2020-11-25)

Bug Fixes

  • multiple builds share esbuild process (#1125) (f270440), closes #1098
  • build: always pass namespaceToStringTag, let output module has… (#1057) (8cd3e85), closes #1048
  • cli: specify correct arguments to options (6b98b73)
  • config: avoid overwriting defined .env values (f0e50bd)
  • config: move dotenvExpand back into resolveConfig (dd03c62)
  • dev: chokidar ignored (ce332d1), closes #1132
  • dev: respect [@vite-ignore](https://github.com/vite-ignore) inside module rewrite (#1011) (6fbae67), closes #1007
  • dev: respect sourceRoot when rewriting source map (#1073) (b4afcf1)
  • dev: transform import for commonjs dependencies (#837) (51aead4)
  • docs: README es-dev-server broken link (#1081) (0d2768d)
  • env key in UserConfig should not be required (#1097) (f33e89d)
  • always set NODE_ENV for build (effc159)
  • cac argv keys are in camel case (#1092) (8520e76)
  • indexHtmlPath can be an absolute path (#1032) (bc1a8ee)
  • target ES2018 instead of ESNEXT (#1110) (ce633f4)
  • types: buildPluginHtml does not need config.env to exist (#1091) (29f20e5)
  • indentation for injected html tags (#1068) (ac5ee6f)
  • only pass valid rollup options to avoid warning (#1034) (128d5ff)
  • types: ws should be optional (#1010) (5b16cf9)

Features

  • support new versions of experimental features in @vue/compiler-sfc (#1121) (a928d74)
  • build: make rollupOutputOptions and rollupPluginVueOptions overridable (#1117) (39bdd45)
  • expose loadEnv in public api (f3e4017)
  • use cac for argv parsing and cli help (#971) (88bb4ff)
  • types: include http-proxy options in ProxiesOptions type (#1037) (261c8c8)

Performance Improvements

  • remove empty chunk from css extraction (963614b)

1.0.0-rc.9 (2020-11-02)

Bug Fixes

  • dev: remove comment for dynamic import inside server rewrite (#1001) (4ccff7a), closes #998
  • hmr: infer hmr hostname on client (#980) (858b2bf)
  • always emit assets virtually + ensure correct asset paths in ssrBuild (b8e80ba)
  • build: add write condition (e5fdc7e)
  • build: always render the index.html (5e7c309)
  • build: remove outDir before build (d1599f9)
  • build: resolve rollup warning when using pluginsPreBuild (40e1d87)
  • dev: always proxy http request even ws option is truly (32be77b), closes #978

Features

1.0.0-rc.8 (2020-10-26)

1.0.0-rc.7 (2020-10-26)

Bug Fixes

  • build: add Symbol.toStringTag when ssr build es module into cjs chunk (#951) (344a86a), closes #764
  • dev: resolve sub-package inside node module, let module filed inside package.json can be take first. (76fcfa7), closes #829
  • hmr: register component on import (95e3342), closes #959
  • hmr: sniff hmr protocol on client when not specifically configured (e1c7500), closes #956
  • html: avoid mutating outer scope in renderIndex function (f2da029)
  • always resolve outDir relative to root (f5dee86)
  • update rollup-pluginutils import (#954) (dcf1eaa)

Features

  • add configureBuild hook (1c2a9b9)
  • let configureBuild hooks inject Rollup bundles (03ef2ed)
  • let build plugins return post-build hook (ec47ab8)
  • transforms for index.html (#793) (ebb964e)
  • build: emitManifest (75d7679)
  • build: support alternative entry for build (6c66e31)
  • config: add pluginsPreBuild, etc. for rollup (#953) (cd3666a)
  • dev: support configuring CORS (f416f9f)

Reverts

  • Revert "refactor: resolve relative path request inside unoptimized package wh… (#867)" (ec8f46d), closes #867

1.0.0-rc.6 (2020-10-23)

Bug Fixes

  • apply user rollup plugins last (#855) (1760658)
  • ensure source maps can be traced by debugger (#886) (ba7442f), closes #675
  • build: do not merge non-module inline scripts into bundle (edf0886), closes #719
  • build: relative sources in production bundle sourcemap (#934) (8264fa8)
  • config: do not throw when user speicifies type: "module" in package.json (8acd49e), closes #917
  • dev: remove unnecessary warning (#722) (a2c4b24), closes #721
  • optimizer: ignore @types/* packages inside optimizer (#812) (aa81eb3), closes #804
  • optimizer: remove ?commonjs-proxy injected by rollup-plugin-commonjs for assets (#908) (e3e7059), closes #903
  • server: only rewrite module script tags (c18f387)
  • server: read server port only after listening (#943) (eb039f9)

Features

1.0.0-rc.5 (2020-10-23)

Bug Fixes

  • build: adjust allowed script tag types (8b8f357), closes #724
  • build: correct replace define (e24133e)
  • build: create at most one esbuildService (#694) (2acae21), closes #693
  • build: css not be tree shake (#803) (34649b5), closes #795
  • build: inject css to dynamic chunk only if it is not empty (#805) (038a053)
  • build: normalize vueTransformAssetUrls if not pass through plugins (#668) (47eb448), closes #661
  • build: only extract js module script tag in html (#724) (ef60d55), closes #670
  • build: resolve external url (#807) (df2e388), closes #799
  • build: stop spinner on rollup error (#835) (78489b8)
  • config: typo (#935) (08213b4)
  • dev: correctly normalize entry path on windows (#736) (49689e5), closes #735
  • dev: decode for publicPath (#924) (0ea245c), closes #920
  • dev: don't rewrite files inside public (#602) (2b544f3)
  • dev: hand file write end when change event emit in chokidar (#824) (a8f9595), closes #610
  • dev: ignore .git file with hmr (#664) (c9a2764), closes #663
  • dev: strip utf-8 bom (#814) (ed2afe6)
  • docs: typo (#843) (2893a41)
  • add @rollup/plugin-commonjs before user plugin, let it correct… (#746) (f005c67), closes #728
  • avoid overwriting the prorcess global (#609) (36422c2)
  • bump rollup-plugin-terser + update esbuild target to `es2020… (#723) (5266b74), closes #718
  • don't mutate plugins array in postcss config (#791) (3328076)
  • notModified with transform (#682) (c6426e9), closes #662
  • dev: omit "?t=" query from esbuild sourcemap source path (#783) (ec295aa)
  • dev: warn unknown dynamic import inside module rewrite (#776) (304f321), closes #772
  • make vite.config support es2020 syntax (#658) (760cbac)
  • README.md type/grammar (#625) (2560a45)
  • strip "public/" prefix in defaultFileToRequest (#681) (5d98994)
  • use index.js as default entry point (#665) (5969c97)
  • dev: Support passing "0" as port (#590) (ba9dda2)
  • hmr: correct hmr for sfc has setup script when it template change (#763) (9bea946), closes #748

Features

Performance Improvements

1.0.0-rc.4 (2020-07-30)

Bug Fixes

  • hmr: module rewrite should not cache hmr requests (e386575), closes #603 #598
  • support options for template block preprocessor render (#641) (540ae24), closes #634
  • build/css: ensure consistent build css hash (4fba48b), closes #596
  • dev: don't unregister user service worker (#622) (ab5d6f6), closes #615
  • dev: fix path with query + ignore ?import query with hmr (#619) (dd92f4f), closes #617
  • dev: use path + content as rewrite cache key (#631) (60c7424), closes #627
  • handle <script> tags with no default export (59938bc), closes vuejs/vitepress#53
  • rewrite named export default (#599) (2cd2104), closes #595
  • use safer exclude for replace plugin (f225b06), closes #633
  • env: respect NODE_ENV in .env.mode files (49f8de3), closes #593
  • transform: should apply transform to non-page html requests (1a6447d), closes #594
  • vue: fix vue template vue import specifier when vue is excluded from optimization (8a52d8b), closes #635
  • fix bindingMetadata for templates (54a2083)

Code Refactoring

  • remove service worker option (a47429d)

Features

  • apply syntax transpile with esbuild for build (8a7f705), closes #604

BREAKING CHANGES

  • dev server service worker option (--sw) has been removed. The service worker mode doesn't provide a significant enough performance gain to justify the complexity and edge cases it adds to the caching strategies in normal mode.

1.0.0-rc.3 (2020-07-21)

Bug Fixes

1.0.0-rc.2 (2020-07-21)

Bug Fixes

  • avoid transforming page requests and public assets (cdaa2ca), closes #560 #566
  • configure esbuild to transpile optional chaining (3da2bb4), closes #565
  • esbuild minify should run in separate plugin (cf503db), closes #589
  • fix test (74819fb)
  • module css preprocessor hmr (#583) (d50e2e4)
  • remove deep import warning for assets (#557) (a40ed1a)
  • update playground config (81d7be2)

Features

  • dev: support json named exports (353d5a2)
  • custom transform asset urls (9129145), closes #581
  • handle vueTransformAssetUrls in plugins (2ba17d5)
  • support defining global replacements via config.define (63a6735)

BREAKING CHANGES

  • Vite client path has changed from /vite/hmr to /vite/client.

    The client serving logic has also been refactored, which makes it easiser to use Vite-served assets from a non-Vite-served page by simply injecting the following into the page:

    <script type="module">
    import "<VITE_SERVER_URL>/vite/client"
    </script>
    

1.0.0-rc.1 (2020-07-17)

1.0.0-beta.12 (2020-07-16)

Bug Fixes

  • build: external base url (#515) (b16548f), closes #507
  • build: link href used data url (#516) (8ae073e), closes #508
  • config: merge array values in rollup config options (abfe6f8), closes #526
  • css: fix lazy loaded css injection (fix #530) (a502399)
  • optimize: resolve bare assets import inside node module (#552) (5801f66), closes #551
  • resolve: properly resolve optimized deps with name ending in .js (c953f0d), closes #540
  • transform: keep path/id on transform context consistent between dev/build (#519) (6388e69), closes #518
  • change esbuild compiler target to es2020 + bump esbuild + bu… (#525) (893eeff), closes #503
  • fallback to http1 when proxy is required (02cc24f), closes #484
  • fix resolve optimize module + cache hit (#500) (3766767), closes #490
  • inject web worker rollup plugin before node-resolve (458a4bb)

Features

  • build: add option for disable rollup-plugin-vue (#517) (5d06b0c)
  • transform: expose notModified flag in transform context (#510) (2da41f1)
  • <script setup>, <style vars> & binding optimization integration (4377b9a)
  • support configuring CSS modules via cssModuleOptions (#479) (3314d20)
  • support css preprocess options for different languages (#483) (10f93b8)
  • support HMR for css preprocessor [@import](https://github.com/import) (#313) (cc1e8e8)

BREAKING CHANGES

  • css modules now exported locals that defaults to camelCase.

1.0.0-beta.11 (2020-07-03)

Bug Fixes

  • optimizer: use rollup warning to check for Node built-in bail (f5d9a8e), closes #497

1.0.0-beta.10 (2020-07-02)

Bug Fixes

Features

  • exit build with error when fail to resolve module (#466) (ebfeed2), closes #459

1.0.0-beta.9 (2020-07-02)

Bug Fixes

  • import.meta.env fallback for build (7994d35)
  • should treat css linked in html as assets (08856ac)
  • build: shouldn't generate css file if without css import (#473) (1b61550), closes #472
  • build/css: properly handle css linked in index.html for build (1fa4d9a)
  • dev/css: fix hmr for css referenced in html via <link> (202ee6e), closes #469
  • hmr: fix nested import.meta.hot/env detection (bc4ae27)
  • hmr: root level self-accepting module (0179c47)
  • CSS Modules detection for preprocessors (#463) (a26d61b)

Features

1.0.0-beta.8 (2020-06-25)

Bug Fixes

  • require generateCodeFrame from listed dep (8fc68c0)

1.0.0-beta.7 (2020-06-24)

Bug Fixes

  • fallback to