vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
834 stars 54 forks source link

chore(deps): update all non-major dependencies #29

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@playwright/test (source) ^1.28.1 -> ^1.29.0 age adoption passing confidence
@swc/core (source) ^1.3.22 -> ^1.3.23 age adoption passing confidence
@types/node (source) ^18.11.13 -> ^18.11.17 age adoption passing confidence
esbuild ^0.16.4 -> ^0.16.9 age adoption passing confidence
vite (source) ^4.0.0 -> ^4.0.2 age adoption passing confidence

Release Notes

Microsoft/playwright ### [`v1.29.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.29.0) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.28.1...v1.29.0) #### New APIs - New method [`route.fetch()`](https://playwright.dev/docs/api/class-route#route-fetch) and new option `json` for [`route.fulfill()`](https://playwright.dev/docs/api/class-route#route-fulfill): ```js await page.route('**/api/settings', async route => { // Fetch original settings. const response = await route.fetch(); // Force settings theme to a predefined value. const json = await response.json(); json.theme = 'Solorized'; // Fulfill with modified data. await route.fulfill({ json }); }); ``` - New method [`locator.all()`](https://playwright.dev/docs/api/class-locator#locator-all) to iterate over all matching elements: ```js // Check all checkboxes! const checkboxes = page.getByRole('checkbox'); for (const checkbox of await checkboxes.all()) await checkbox.check(); ``` - Retry blocks of code until all assertions pass: ```js await expect(async () => { const response = await page.request.get('https://api.example.com'); await expect(response).toBeOK(); }).toPass(); ``` Read more in [our documentation](https://playwright.dev/docs/test-assertions#retrying). - Automatically capture **full page screenshot** on test failure: ```js // playwright.config.ts import type { PlaywrightTestConfig } from '@​playwright/test'; const config: PlaywrightTestConfig = { use: { screenshot: { mode: 'only-on-failure', fullPage: true, } } }; export default config; ``` #### Miscellaneous - Playwright Test now respects [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig). - New options `args` and `proxy` for [`androidDevice.launchBrowser()`](https://playwright.dev/docs/api/class-androiddevice#android-device-launch-browser). - Option `postData` in method [`route.continue()`](https://playwright.dev/docs/api/class-route#route-continue) now supports [serializable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description) values. #### Browser Versions - Chromium 109.0.5414.46 - Mozilla Firefox 107.0 - WebKit 16.4 This version was also tested against the following stable channels: - Google Chrome 108 - Microsoft Edge 108
swc-project/swc ### [`v1.3.23`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1323---2022-12-14) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.22...v1.3.23) ##### Bug Fixes - **(css/minifier)** Fix compressions of transform functions ([#​6617](https://togithub.com/swc-project/swc/issues/6617)) ([208fd55](https://togithub.com/swc-project/swc/commit/208fd559ba383b32c72ffdf5d8ad50cbf9679ec6)) - **(css/minifier)** Fix compression of timing functions ([#​6618](https://togithub.com/swc-project/swc/issues/6618)) ([59e8bf4](https://togithub.com/swc-project/swc/commit/59e8bf49761c9f2434dcfb18153f93234d3d69a7)) - **(css/minifier)** Fix minification of `@supports` at-rule ([#​6632](https://togithub.com/swc-project/swc/issues/6632)) ([d3fbfff](https://togithub.com/swc-project/swc/commit/d3fbfffb32a4bd91c5faa27e708eccb08c8189b9)) - **(es/codegen)** Don't print trailing coma for a rest argument ([#​6610](https://togithub.com/swc-project/swc/issues/6610)) ([68d76af](https://togithub.com/swc-project/swc/commit/68d76afe5d99f834dd4578cc50bd48624f76c21d)) - **(es/codegen)** Fix codegen of TypeScript mapped types ([#​6621](https://togithub.com/swc-project/swc/issues/6621)) ([5c53a74](https://togithub.com/swc-project/swc/commit/5c53a74f55fc9d6ba1f54f9f2ea517853fa62a74)) - **(es/fixer)** Add correct parens to `OptChainExpr` in `MemberExpr` ([#​6639](https://togithub.com/swc-project/swc/issues/6639)) ([be5ea7f](https://togithub.com/swc-project/swc/commit/be5ea7fe170cca1532ba3d18f975d025a9fe038b)) - **(es/minifier)** Abort IIFE invoker on `eval` ([#​6478](https://togithub.com/swc-project/swc/issues/6478)) ([8b2e1d1](https://togithub.com/swc-project/swc/commit/8b2e1d17e59eaf21d4189aa4b9d2773cb10a1ab4)) - **(es/minifier)** Abort sequential inliner on optional chaining ([#​6637](https://togithub.com/swc-project/swc/issues/6637)) ([e4e4d6c](https://togithub.com/swc-project/swc/commit/e4e4d6cf6bbc2645272d590cd6ae83aeb5c19b1c)) - **(es/parser)** Parse types in `CallExpression` inside templates ([#​6611](https://togithub.com/swc-project/swc/issues/6611)) ([c44f1d0](https://togithub.com/swc-project/swc/commit/c44f1d0a7fd31b6c8019e5a17b0f80dab4c9c01c)) - **(html/parser)** Fix parsing of CDATA in the svg context ([#​6620](https://togithub.com/swc-project/swc/issues/6620)) ([19c2ee5](https://togithub.com/swc-project/swc/commit/19c2ee593d1b2c32243dbc5c099f17cea0b9ed26)) - **(node-swc)** Add missing `const_to_let` to the type ([#​6615](https://togithub.com/swc-project/swc/issues/6615)) ([7e841a5](https://togithub.com/swc-project/swc/commit/7e841a5d3061e6ef8b48995bdcd492ffa02b3b8d)) ##### Features - **(css/compat)** Add `Compiler` ([#​6626](https://togithub.com/swc-project/swc/issues/6626)) ([b3bbd74](https://togithub.com/swc-project/swc/commit/b3bbd742bf5a3bc51105e16cf6260b63ef9b124a)) - **(css/compat)** Support custom media queries ([#​6625](https://togithub.com/swc-project/swc/issues/6625)) ([a5f7b4b](https://togithub.com/swc-project/swc/commit/a5f7b4b8aa48d3d920dcebf72d766b6e3f458fb7)) - **(css/compat)** Implement compat pass for media ranges ([#​6631](https://togithub.com/swc-project/swc/issues/6631)) ([704b3ce](https://togithub.com/swc-project/swc/commit/704b3ceb9c1ceb8bafb5dd83717c182c56043198)) - **(css/compat)** Support color with hex alpha ([#​6643](https://togithub.com/swc-project/swc/issues/6643)) ([fe06b80](https://togithub.com/swc-project/swc/commit/fe06b8061c742f0a7ec04cf3f9df6db44deb7174)) - **(css/minifier)** Support `to` and `from` with `initial` ([#​6613](https://togithub.com/swc-project/swc/issues/6613)) ([cb49fa6](https://togithub.com/swc-project/swc/commit/cb49fa6f1ddf2ae37262769c538ef1a51adc404c)) - **(css/minifier)** Remove adjacent identical declarations ([#​6619](https://togithub.com/swc-project/swc/issues/6619)) ([fb94694](https://togithub.com/swc-project/swc/commit/fb94694cf3d95c26cc10aa9824f58e68b73b17ca)) - **(css/prefixer)** Prefix percentage with `opacity` ([#​6638](https://togithub.com/swc-project/swc/issues/6638)) ([2fee4d1](https://togithub.com/swc-project/swc/commit/2fee4d167ac908e04c04f65fe6e4a867a2b7d950)) - **(css/prefixer)** Support `display` ([#​6640](https://togithub.com/swc-project/swc/issues/6640)) ([c8b724f](https://togithub.com/swc-project/swc/commit/c8b724f14db0291fb48cd3d26c925dcf5e730fb8)) - **(css/prefixer)** Support nested calc ([#​6645](https://togithub.com/swc-project/swc/issues/6645)) ([5d0dc6e](https://togithub.com/swc-project/swc/commit/5d0dc6e7319f181e468b40dce218dc15cec8b59f)) - **(dbg-swc)** Kill `creduce` on drop ([#​6614](https://togithub.com/swc-project/swc/issues/6614)) ([2bf7805](https://togithub.com/swc-project/swc/commit/2bf78059801d8f07bf31eab6b077d7fb723837f8)) ##### Miscellaneous Tasks - **(atoms)** Make `sort.sh` cross-platform ([#​6629](https://togithub.com/swc-project/swc/issues/6629)) ([3f469ff](https://togithub.com/swc-project/swc/commit/3f469fff0bdd642d5ed5d3c78bfbd6a36a20dadb)) - **(ci)** Adjust upload of cli binaries ([#​6624](https://togithub.com/swc-project/swc/issues/6624)) ([81b352d](https://togithub.com/swc-project/swc/commit/81b352d9667c8874b1d9d87a92cca5b8d4c9fd41)) - **(es/minifier)** Expose `globals_defs` pass ([#​6633](https://togithub.com/swc-project/swc/issues/6633)) ([08ccb83](https://togithub.com/swc-project/swc/commit/08ccb8384cd186c18100338db35e99cf4de52daa)) ##### Performance - **(html/codegen)** Reduce allocations ([#​6622](https://togithub.com/swc-project/swc/issues/6622)) ([bfdafdb](https://togithub.com/swc-project/swc/commit/bfdafdbb898aa3429172f71c8d018689133e4fd6)) - **(html/minifier)** Reduce allocations ([#​6623](https://togithub.com/swc-project/swc/issues/6623)) ([7d3aa66](https://togithub.com/swc-project/swc/commit/7d3aa66bb8786d6d8cebcc37aa6ed4d486ec4b53)) ##### Refactor - **(dbg-swc)** Cleanup and document reducer ([#​6647](https://togithub.com/swc-project/swc/issues/6647)) ([b13a079](https://togithub.com/swc-project/swc/commit/b13a079481802d7bc44c9b363f63c74599f11a19)) ##### Testing - **(es/minifier)** Enable size tests created from `creduce` ([#​6646](https://togithub.com/swc-project/swc/issues/6646)) ([7f3e698](https://togithub.com/swc-project/swc/commit/7f3e6983e552bc789b7d0331335b760e6d42e51a))
evanw/esbuild ### [`v0.16.9`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0169) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.16.8...v0.16.9) - Update to Unicode 15.0.0 The character tables that determine which characters form valid JavaScript identifiers have been updated from Unicode version 14.0.0 to the newly-released Unicode version 15.0.0. I'm not putting an example in the release notes because all of the new characters will likely just show up as little squares since fonts haven't been updated yet. But you can read https://www.unicode.org/versions/Unicode15.0.0/#Summary for more information about the changes. - Disallow duplicate lexically-declared names in nested blocks and in strict mode In strict mode or in a nested block, it's supposed to be a syntax error to declare two symbols with the same name unless all duplicate entries are either `function` declarations or all `var` declarations. However, esbuild was overly permissive and allowed this when duplicate entries were either `function` declarations or `var` declarations (even if they were mixed). This check has now been made more restrictive to match the JavaScript specification: ```js // JavaScript allows this var a function a() {} { var b var b function c() {} function c() {} } // JavaScript doesn't allow this { var d function d() {} } ``` - Add a type declaration for the new `empty` loader ([#​2755](https://togithub.com/evanw/esbuild/pull/2755)) I forgot to add this in the previous release. It has now been added. This fix was contributed by [@​fz6m](https://togithub.com/fz6m). - Add support for the `v` flag in regular expression literals People are currently working on adding a `v` flag to JavaScript regular expresions. You can read more about this flag here: https://v8.dev/features/regexp-v-flag. This release adds support for parsing this flag, so esbuild will now no longer consider regular expression literals with this flag to be a syntax error. If the target is set to something other than `esnext`, esbuild will transform regular expression literals containing this flag into a `new RegExp()` constructor call so the resulting code doesn't have a syntax error. This enables you to provide a polyfill for `RegExp` that implements the `v` flag to get your code to work at run-time. While esbuild doesn't typically adopt proposals until they're already shipping in a real JavaScript run-time, I'm adding it now because a) esbuild's implementation doesn't need to change as the proposal evolves, b) this isn't really new syntax since regular expression literals already have flags, and c) esbuild's implementation is a trivial pass-through anyway. - Avoid keeping the name of classes with static `name` properties The `--keep-names` property attempts to preserve the original value of the `name` property for functions and classes even when identifiers are renamed by the minifier or to avoid a name collision. This is currently done by generating code to assign a string to the `name` property on the function or class object. However, this should not be done for classes with a static `name` property since in that case the explicitly-defined `name` property overwrites the automatically-generated class name. With this release, esbuild will now no longer attempt to preserve the `name` property for classes with a static `name` property. ### [`v0.16.8`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0168) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.16.7...v0.16.8) - Allow plugins to resolve injected files ([#​2754](https://togithub.com/evanw/esbuild/issues/2754)) Previously paths passed to the `inject` feature were always interpreted as file system paths. This meant that `onResolve` plugins would not be run for them and esbuild's default path resolver would always be used. This meant that the `inject` feature couldn't be used in the browser since the browser doesn't have access to a file system. This release runs paths passed to `inject` through esbuild's full path resolution pipeline so plugins now have a chance to handle them using `onResolve` callbacks. This makes it possible to write a plugin that makes esbuild's `inject` work in the browser. - Add the `empty` loader ([#​1541](https://togithub.com/evanw/esbuild/issues/1541), [#​2753](https://togithub.com/evanw/esbuild/issues/2753)) The new `empty` loader tells esbuild to pretend that a file is empty. So for example `--loader:.css=empty` effectively skips all imports of `.css` files in JavaScript so that they aren't included in the bundle, since `import "./some-empty-file"` in JavaScript doesn't bundle anything. You can also use the `empty` loader to remove asset references in CSS files. For example `--loader:.png=empty` causes esbuild to replace asset references such as `url(image.png)` with `url()` so that they are no longer included in the resulting style sheet. - Fix `` and `` escaping for non-default targets ([#​2748](https://togithub.com/evanw/esbuild/issues/2748)) The change in version 0.16.0 to give control over `` escaping via `--supported:inline-script=false` or `--supported:inline-script=true` accidentally broke automatic escaping of `` when an explicit `target` setting is specified. This release restores the correct automatic escaping of `` (which should not depend on what `target` is set to). - Enable the `exports` field with `NODE_PATHS` ([#​2752](https://togithub.com/evanw/esbuild/issues/2752)) Node has a rarely-used feature where you can extend the set of directories that node searches for packages using the `NODE_PATHS` environment variable. While esbuild supports this too, previously it only supported the old `main` field path resolution but did not support the new `exports` field package resolution. This release makes the path resolution rules the same again for both `node_modules` directories and `NODE_PATHS` directories. ### [`v0.16.7`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0167) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.16.6...v0.16.7) - Include `file` loader strings in metafile imports ([#​2731](https://togithub.com/evanw/esbuild/issues/2731)) Bundling a file with the `file` loader copies that file to the output directory and imports a module with the path to the copied file in the `default` export. Previously when bundling with the `file` loader, there was no reference in the metafile from the JavaScript file containing the path string to the copied file. With this release, there will now be a reference in the metafile in the `imports` array with the kind `file-loader`: ```diff { ... "outputs": { "out/image-55CCFTCE.svg": { ... }, "out/entry.js": { "imports": [ + { + "path": "out/image-55CCFTCE.svg", + "kind": "file-loader" + } ], ... } } } ``` - Fix byte counts in metafile regarding references to other output files ([#​2071](https://togithub.com/evanw/esbuild/issues/2071)) Previously files that contained references to other output files had slightly incorrect metadata for the byte counts of input files which contributed to that output file. So for example if `app.js` imports `image.png` using the file loader and esbuild generates `out.js` and `image-LSAMBFUD.png`, the metadata for how many bytes of `out.js` are from `app.js` was slightly off (the metadata for the byte count of `out.js` was still correct). The reason is because esbuild substitutes the final paths for references between output files toward the end of the build to handle cyclic references, and the byte counts needed to be adjusted as well during the path substitution. This release fixes these byte counts (specifically the `bytesInOutput` values). - The alias feature now strips a trailing slash ([#​2730](https://togithub.com/evanw/esbuild/issues/2730)) People sometimes add a trailing slash to the name of one of node's built-in modules to force node to import from the file system instead of importing the built-in module. For example, importing `util` imports node's built-in module called `util` but importing `util/` tries to find a package called `util` on the file system. Previously attempting to use esbuild's package alias feature to replace imports to `util` with a specific file would fail because the file path would also gain a trailing slash (e.g. mapping `util` to `./file.js` turned `util/` into `./file.js/`). With this release, esbuild will now omit the path suffix if it's a single trailing slash, which should now allow you to successfully apply aliases to these import paths. ### [`v0.16.6`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0166) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.16.5...v0.16.6) - Do not mark subpath imports as external with `--packages=external` ([#​2741](https://togithub.com/evanw/esbuild/issues/2741)) Node has a feature called [subpath imports](https://nodejs.org/api/packages.html#subpath-imports) where special import paths that start with `#` are resolved using the `imports` field in the `package.json` file of the enclosing package. The intent of the newly-added `--packages=external` setting is to exclude a package's dependencies from the bundle. Since a package's subpath imports are only accessible within that package, it's wrong for them to be affected by `--packages=external`. This release changes esbuild so that `--packages=external` no longer affects subpath imports. - Forbid invalid numbers in JSON files Previously esbuild parsed numbers in JSON files using the same syntax as JavaScript. But starting from this release, esbuild will now parse them with JSON syntax instead. This means the following numbers are no longer allowed by esbuild in JSON files: - Legacy octal literals (non-zero integers starting with `0`) - The `0b`, `0o`, and `0x` numeric prefixes - Numbers containing `_` such as `1_000` - Leading and trailing `.` such as `0.` and `.0` - Numbers with a space after the `-` such as `- 1` - Add external imports to metafile ([#​905](https://togithub.com/evanw/esbuild/issues/905), [#​1768](https://togithub.com/evanw/esbuild/issues/1768), [#​1933](https://togithub.com/evanw/esbuild/issues/1933), [#​1939](https://togithub.com/evanw/esbuild/issues/1939)) External imports now appear in `imports` arrays in the metafile (which is present when bundling with `metafile: true`) next to normal imports, but additionally have `external: true` to set them apart. This applies both to files in the `inputs` section and the `outputs` section. Here's an example: ```diff { "inputs": { "style.css": { "bytes": 83, "imports": [ + { + "path": "https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css", + "kind": "import-rule", + "external": true + } ] }, "app.js": { "bytes": 100, "imports": [ + { + "path": "https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js", + "kind": "import-statement", + "external": true + }, { "path": "style.css", "kind": "import-statement" } ] } }, "outputs": { "out/app.js": { "imports": [ + { + "path": "https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js", + "kind": "require-call", + "external": true + } ], "exports": [], "entryPoint": "app.js", "cssBundle": "out/app.css", "inputs": { "app.js": { "bytesInOutput": 113 }, "style.css": { "bytesInOutput": 0 } }, "bytes": 528 }, "out/app.css": { "imports": [ + { + "path": "https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css", + "kind": "import-rule", + "external": true + } ], "inputs": { "style.css": { "bytesInOutput": 0 } }, "bytes": 100 } } } ``` One additional useful consequence of this is that the `imports` array is now populated when bundling is disabled. So you can now use esbuild with bundling disabled to inspect a file's imports. ### [`v0.16.5`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0165) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.16.4...v0.16.5) - Make it easy to exclude all packages from a bundle ([#​1958](https://togithub.com/evanw/esbuild/issues/1958), [#​1975](https://togithub.com/evanw/esbuild/issues/1975), [#​2164](https://togithub.com/evanw/esbuild/issues/2164), [#​2246](https://togithub.com/evanw/esbuild/issues/2246), [#​2542](https://togithub.com/evanw/esbuild/issues/2542)) When bundling for node, it's often necessary to exclude npm packages from the bundle since they weren't designed with esbuild bundling in mind and don't work correctly after being bundled. For example, they may use `__dirname` and run-time file system calls to load files, which doesn't work after bundling with esbuild. Or they may compile a native `.node` extension that has similar expectations about the layout of the file system that are no longer true after bundling (even if the `.node` extension is copied next to the bundle). The way to get this to work with esbuild is to use the `--external:` flag. For example, the [`fsevents`](https://www.npmjs.com/package/fsevents) package contains a native `.node` extension and shouldn't be bundled. To bundle code that uses it, you can pass `--external:fsevents` to esbuild to exclude it from your bundle. You will then need to ensure that the `fsevents` package is still present when you run your bundle (e.g. by publishing your bundle to npm as a package with a dependency on `fsevents`). It was possible to automatically do this for all of your dependencies, but it was inconvenient. You had to write some code that read your `package.json` file and passed the keys of the `dependencies`, `devDependencies`, `peerDependencies`, and/or `optionalDependencies` maps to esbuild as external packages (either that or write a plugin to mark all package paths as external). Previously esbuild's recommendation for making this easier was to do `--external:./node_modules/*` (added in version 0.14.13). However, this was a bad idea because it caused compatibility problems with many node packages as it caused esbuild to mark the post-resolve path as external instead of the pre-resolve path. Doing that could break packages that are published as both CommonJS and ESM if esbuild's bundler is also used to do a module format conversion. With this release, you can now do the following to automatically exclude all packages from your bundle: - CLI: esbuild --bundle --packages=external - JS: ```js esbuild.build({ bundle: true, packages: 'external', }) ``` - Go: ```go api.Build(api.BuildOptions{ Bundle: true, Packages: api.PackagesExternal, }) ``` Doing `--external:./node_modules/*` is still possible and still has the same behavior, but is no longer recommended. I recommend that you use the new `packages` feature instead. - Fix some subtle bugs with tagged template literals This release fixes a bug where minification could incorrectly change the value of `this` within tagged template literal function calls: ```js // Original code function f(x) { let z = y.z return z`` } // Old output (with --minify) function f(n){return y.z``} // New output (with --minify) function f(n){return(0,y.z)``} ``` This release also fixes a bug where using optional chaining with `--target=es2019` or earlier could incorrectly change the value of `this` within tagged template literal function calls: ```js // Original code var obj = { foo: function() { console.log(this === obj); } }; (obj?.foo)``; // Old output (with --target=es6) var obj = { foo: function() { console.log(this === obj); } }; (obj == null ? void 0 : obj.foo)``; // New output (with --target=es6) var __freeze = Object.freeze; var __defProp = Object.defineProperty; var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw || cooked.slice()) })); var _a; var obj = { foo: function() { console.log(this === obj); } }; (obj == null ? void 0 : obj.foo).call(obj, _a || (_a = __template([""]))); ``` - Some slight minification improvements The following minification improvements were implemented: - `if (~a !== 0) throw x;` => `if (~a) throw x;` - `if ((a | b) !== 0) throw x;` => `if (a | b) throw x;` - `if ((a & b) !== 0) throw x;` => `if (a & b) throw x;` - `if ((a ^ b) !== 0) throw x;` => `if (a ^ b) throw x;` - `if ((a << b) !== 0) throw x;` => `if (a << b) throw x;` - `if ((a >> b) !== 0) throw x;` => `if (a >> b) throw x;` - `if ((a >>> b) !== 0) throw x;` => `if (a >>> b) throw x;` - `if (!!a || !!b) throw x;` => `if (a || b) throw x;` - `if (!!a && !!b) throw x;` => `if (a && b) throw x;` - `if (a ? !!b : !!c) throw x;` => `if (a ? b : c) throw x;`
vitejs/vite ### [`v4.0.2`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small402-2022-12-18-small) [Compare Source](https://togithub.com/vitejs/vite/compare/v4.0.1...v4.0.2) - fix: fix the error message in the `toOutputFilePathWithoutRuntime` function ([#​11367](https://togithub.com/vitejs/vite/issues/11367)) ([8820f75](https://togithub.com/vitejs/vite/commit/8820f75)), closes [#​11367](https://togithub.com/vitejs/vite/issues/11367) - fix: make `vite optimize` prebundle for dev ([#​11387](https://togithub.com/vitejs/vite/issues/11387)) ([b4ced0f](https://togithub.com/vitejs/vite/commit/b4ced0f)), closes [#​11387](https://togithub.com/vitejs/vite/issues/11387) - fix: revert [#​11290](https://togithub.com/vitejs/vite/issues/11290) ([#​11412](https://togithub.com/vitejs/vite/issues/11412)) ([6587d2f](https://togithub.com/vitejs/vite/commit/6587d2f)), closes [#​11290](https://togithub.com/vitejs/vite/issues/11290) [#​11412](https://togithub.com/vitejs/vite/issues/11412) - fix: server and preview open fails to add slash before relative path ([#​11394](https://togithub.com/vitejs/vite/issues/11394)) ([57276b7](https://togithub.com/vitejs/vite/commit/57276b7)), closes [#​11394](https://togithub.com/vitejs/vite/issues/11394) - fix: skip applescript when no Chromium browser found (fixes [#​11205](https://togithub.com/vitejs/vite/issues/11205)) ([#​11406](https://togithub.com/vitejs/vite/issues/11406)) ([274d1f3](https://togithub.com/vitejs/vite/commit/274d1f3)), closes [#​11205](https://togithub.com/vitejs/vite/issues/11205) [#​11406](https://togithub.com/vitejs/vite/issues/11406) - fix(deps): update dependency ufo to v1 ([#​11372](https://togithub.com/vitejs/vite/issues/11372)) ([4288300](https://togithub.com/vitejs/vite/commit/4288300)), closes [#​11372](https://togithub.com/vitejs/vite/issues/11372) - chore: typecheck create-vite ([#​11295](https://togithub.com/vitejs/vite/issues/11295)) ([af86e5b](https://togithub.com/vitejs/vite/commit/af86e5b)), closes [#​11295](https://togithub.com/vitejs/vite/issues/11295) - chore(deps): update dependency convert-source-map to v2 ([#​10548](https://togithub.com/vitejs/vite/issues/10548)) ([8dc6528](https://togithub.com/vitejs/vite/commit/8dc6528)), closes [#​10548](https://togithub.com/vitejs/vite/issues/10548) - chore(deps): update dependency mlly to v1 ([#​11370](https://togithub.com/vitejs/vite/issues/11370)) ([9662d4d](https://togithub.com/vitejs/vite/commit/9662d4d)), closes [#​11370](https://togithub.com/vitejs/vite/issues/11370) ### [`v4.0.1`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small401-2022-12-12-small) [Compare Source](https://togithub.com/vitejs/vite/compare/566d4c7bb51cf56550a5374ee46e1e1cbea1cf1f...v4.0.1) - feat: show server url by pressing `u` ([#​11319](https://togithub.com/vitejs/vite/issues/11319)) ([8c0bb7b](https://togithub.com/vitejs/vite/commit/8c0bb7b)), closes [#​11319](https://togithub.com/vitejs/vite/issues/11319) - feat(html): clickable error position for html parse error ([#​11334](https://togithub.com/vitejs/vite/issues/11334)) ([2e15f3d](https://togithub.com/vitejs/vite/commit/2e15f3d)), closes [#​11334](https://togithub.com/vitejs/vite/issues/11334) - fix: ?inline warning for .css.js file ([#​11347](https://togithub.com/vitejs/vite/issues/11347)) ([729fb1a](https://togithub.com/vitejs/vite/commit/729fb1a)), closes [#​11347](https://togithub.com/vitejs/vite/issues/11347) - fix: check if build exists so preview doesn't show 404s due to nonexistent build ([#​10564](https://togithub.com/vitejs/vite/issues/10564)) ([0a1db8c](https://togithub.com/vitejs/vite/commit/0a1db8c)), closes [#​10564](https://togithub.com/vitejs/vite/issues/10564) - fix: derive `useDefineForClassFields` value from `tsconfig.compilerOptions.target` (fixes [#​10296](https://togithub.com/vitejs/vite/issues/10296)) (# ([42976d8](https://togithub.com/vitejs/vite/commit/42976d8)), closes [#​10296](https://togithub.com/vitejs/vite/issues/10296) [#​11301](https://togithub.com/vitejs/vite/issues/11301) - fix: preview fallback ([#​11312](https://togithub.com/vitejs/vite/issues/11312)) ([cfedf9c](https://togithub.com/vitejs/vite/commit/cfedf9c)), closes [#​11312](https://togithub.com/vitejs/vite/issues/11312) - fix: respect base when using `/__open-in-editor` ([#​11337](https://togithub.com/vitejs/vite/issues/11337)) ([8856c2e](https://togithub.com/vitejs/vite/commit/8856c2e)), closes [#​11337](https://togithub.com/vitejs/vite/issues/11337) - fix: wrongly resolve to optimized doppelganger ([#​11290](https://togithub.com/vitejs/vite/issues/11290)) ([34fec41](https://togithub.com/vitejs/vite/commit/34fec41)), closes [#​11290](https://togithub.com/vitejs/vite/issues/11290) - fix(env): test NODE_ENV override before expand ([#​11309](https://togithub.com/vitejs/vite/issues/11309)) ([d0a9281](https://togithub.com/vitejs/vite/commit/d0a9281)), closes [#​11309](https://togithub.com/vitejs/vite/issues/11309) - fix(preview): Revert [#​10564](https://togithub.com/vitejs/vite/issues/10564) - throw Error on missing outDir ([#​11335](https://togithub.com/vitejs/vite/issues/11335)) ([3aaa0ea](https://togithub.com/vitejs/vite/commit/3aaa0ea)), closes [#​10564](https://togithub.com/vitejs/vite/issues/10564) [#​11335](https://togithub.com/vitejs/vite/issues/11335) [#​10564](https://togithub.com/vitejs/vite/issues/10564) - docs: fix banner image in CHANGELOG.md ([#​11336](https://togithub.com/vitejs/vite/issues/11336)) ([45b66f4](https://togithub.com/vitejs/vite/commit/45b66f4)), closes [#​11336](https://togithub.com/vitejs/vite/issues/11336) - chore: enable `@typescript-eslint/ban-ts-comment` ([#​11326](https://togithub.com/vitejs/vite/issues/11326)) ([e58a4f0](https://togithub.com/vitejs/vite/commit/e58a4f0)), closes [#​11326](https://togithub.com/vitejs/vite/issues/11326) - chore: fix format ([#​11311](https://togithub.com/vitejs/vite/issues/11311)) ([9c2b1c0](https://togithub.com/vitejs/vite/commit/9c2b1c0)), closes [#​11311](https://togithub.com/vitejs/vite/issues/11311) - chore: update changelog release notes for 4.0 ([#​11285](https://togithub.com/vitejs/vite/issues/11285)) ([83abd37](https://togithub.com/vitejs/vite/commit/83abd37)), closes [#​11285](https://togithub.com/vitejs/vite/issues/11285) - chore(deps): update all non-major dependencies ([#​11321](https://togithub.com/vitejs/vite/issues/11321)) ([dcc0004](https://togithub.com/vitejs/vite/commit/dcc0004)), closes [#​11321](https://togithub.com/vitejs/vite/issues/11321) - chore(esbuild): add test for configuration overrides ([#​11267](https://togithub.com/vitejs/vite/issues/11267)) ([f897b64](https://togithub.com/vitejs/vite/commit/f897b64)), closes [#​11267](https://togithub.com/vitejs/vite/issues/11267)

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

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

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

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR has been generated by Mend Renovate. View repository job log here.