Bump esbuild, @vitejs/plugin-react and vite
Type: Pull Request
State: Merged
Association: Contributor
Comments: 1
(7 months ago)
(4 months ago)
(4 months ago)
by abuzar-alvi
dependencies javascript
Bumps esbuild to 0.25.2 and updates ancestor dependencies esbuild, @vitejs/plugin-react and vite. These dependencies need to be updated together.
Updates esbuild from 0.21.5 to 0.25.2
Release notes
Sourced from esbuild's releases.
v0.25.2
Support flags in regular expressions for the API (#4121)
The JavaScript plugin API for esbuild takes JavaScript regular expression objects for the
filteroption. Internally these are translated into Go regular expressions. However, this translation previously ignored theflagsproperty of the regular expression. With this release, esbuild will now translate JavaScript regular expression flags into Go regular expression flags. Specifically the JavaScript regular expression/\.[jt]sx?$/iis turned into the Go regular expression`(?i)\.[jt]sx?$`internally inside of esbuild's API. This should make it possible to use JavaScript regular expressions with theiflag. Note that JavaScript and Go don't support all of the same regular expression features, so this mapping is only approximate.Fix node-specific annotations for string literal export names (#4100)
When node instantiates a CommonJS module, it scans the AST to look for names to expose via ESM named exports. This is a heuristic that looks for certain patterns such as
exports.NAME = ...ormodule.exports = { ... }. This behavior is used by esbuild to "annotate" CommonJS code that was converted from ESM with the original ESM export names. For example, when converting the fileexport let foo, barfrom ESM to CommonJS, esbuild appends this to the end of the file:// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { bar, foo });However, this feature previously didn't work correctly for export names that are not valid identifiers, which can be constructed using string literal export names. The generated code contained a syntax error. That problem is fixed in this release:
// Original code let foo export { foo as "foo!" }// Old output (with --format=cjs --platform=node) ... 0 && (module.exports = { "foo!" });
// New output (with --format=cjs --platform=node) ... 0 && (module.exports = { "foo!": null });
Basic support for index source maps (#3439, #4109)
The source map specification has an optional mode called index source maps that makes it easier for tools to create an aggregate JavaScript file by concatenating many smaller JavaScript files with source maps, and then generate an aggregate source map by simply providing the original source maps along with some offset information. My understanding is that this is rarely used in practice. I'm only aware of two uses of it in the wild: ClojureScript and Turbopack.
This release provides basic support for indexed source maps. However, the implementation has not been tested on a real app (just on very simple test input). If you are using index source maps in a real app, please try this out and report back if anything isn't working for you.
Note that this is also not a complete implementation. For example, index source maps technically allows nesting source maps to an arbitrary depth, while esbuild's implementation in this release only supports a single level of nesting. It's unclear whether supporting more than one level of nesting is important or not given the lack of available test cases.
This feature was contributed by
@clyfish.v0.25.1
... (truncated)
Changelog
Sourced from esbuild's changelog.
Changelog: 2024
This changelog documents all esbuild versions published in the year 2024 (versions 0.19.12 through 0.24.2).
0.24.2
Fix regression with
--defineandimport.meta(#4010, #4012, #4013)The previous change in version 0.24.1 to use a more expression-like parser for
definevalues to allow quoted property names introduced a regression that removed the ability to use--define:import.meta=.... Even thoughimportis normally a keyword that can't be used as an identifier, ES modules special-case theimport.metaexpression to behave like an identifier anyway. This change fixes the regression.This fix was contributed by
@sapphi-red.0.24.1
Allow
es2024as a target intsconfig.json(#4004)TypeScript recently added
es2024as a compilation target, so esbuild now supports this in thetargetfield oftsconfig.jsonfiles, such as in the following configuration file:{ "compilerOptions": { "target": "ES2024" } }As a reminder, the only thing that esbuild uses this field for is determining whether or not to use legacy TypeScript behavior for class fields. You can read more in the documentation.
This fix was contributed by
@billyjanitsch.Allow automatic semicolon insertion after
get/setThis change fixes a grammar bug in the parser that incorrectly treated the following code as a syntax error:
class Foo { get *x() {} set *y() {} }The above code will be considered valid starting with this release. This change to esbuild follows a similar change to TypeScript which will allow this syntax starting with TypeScript 5.7.
Allow quoted property names in
--defineand--pure(#4008)The
defineandpureAPI options now accept identifier expressions containing quoted property names. Previously all identifiers in the identifier expression had to be bare identifiers. This change now makes--defineand--pureconsistent with--global-name, which already supported quoted property names. For example, the following is now possible:
... (truncated)
Commits
4475787publish 0.25.2 to npm8f56771fix #4121: map js regexp flags to go regexp flags36b458dfollow-up to #41098b8437cfeat: support index source map (#4109)75286c1unit test for absolute windows paths in source mapbcc77fbfix #4100: invalid identifiers in node annotation37cb6a2fix a warning fromnpm publish6bfc1c1publish 0.25.1 to npmf9b3952fix #4078: prepend namespaces to source map pathsccf3dd7add "contributed by" in changelog- Additional commits viewable in compare view
Updates @vitejs/plugin-react from 4.3.1 to 4.4.1
Release notes
Sourced from @vitejs/plugin-react's releases.
plugin-react@4.4.1
Fix type issue when using
moduleResolution: "node"in tsconfig #462plugin-react@4.4.0
Make compatible with rolldown-vite
This plugin is now compatible with rolldown-powered version of Vite. Note that currently the
__sourceproperty value position might be incorrect. This will be fixed in the near future.plugin-react@4.4.0-beta.2
Add
reactRefreshHostoptionAdd
reactRefreshHostoption to set a React Fast Refresh runtime URL prefix. This is useful in a module federation context to enable HMR by specifying the host application URL in the Vite config of a remote application. See full discussion here: module-federation/vite#183export default defineConfig({ plugins: [react({ reactRefreshHost: 'http://localhost:3000' })], })plugin-react@4.4.0-beta.1
No release notes provided.
plugin-react@4.3.4
Add Vite 6 to peerDependencies range
Vite 6 is highly backward compatible, not much to add!
Force Babel to output spec compliant import attributes #386
The default was an old spec (
with type: "json"). We now enforce spec compliant (with { type: "json" })plugin-react@4.3.3
React Compiler runtimeModule option removed
React Compiler was updated to accept a
targetoption andruntimeModulewas removed. vite-plugin-react will still detectruntimeModulefor backwards compatibility.When using a custom
runtimeModuleortarget !== '19', the plugin will not try to pre-optimizereact/compiler-runtimedependency.The react-compiler-runtime is now available on npm can be used instead of the local shim for people using the compiler with React < 19.
Here is the configuration to use the compiler with React 18 and correct source maps in development:
npm install babel-plugin-react-compiler react-compiler-runtime @babel/plugin-transform-react-jsx-development</tr></table>
... (truncated)
Changelog
Sourced from @vitejs/plugin-react's changelog.
4.4.1 (2025-04-19)
Fix type issue when using
moduleResolution: "node"in tsconfig #4624.4.0 (2025-04-15)
Make compatible with rolldown-vite
This plugin is now compatible with rolldown-powered version of Vite. Note that currently the
__sourceproperty value position might be incorrect. This will be fixed in the near future.4.4.0-beta.2 (2025-04-15)
Add
reactRefreshHostoptionAdd
reactRefreshHostoption to set a React Fast Refresh runtime URL prefix. This is useful in a module federation context to enable HMR by specifying the host application URL in the Vite config of a remote application. See full discussion here: module-federation/vite#183export default defineConfig({ plugins: [react({ reactRefreshHost: 'http://localhost:3000' })], })4.4.0-beta.1 (2025-04-09)
4.4.0-beta.0 (2025-04-09)
4.3.4 (2024-11-26)
Add Vite 6 to peerDependencies range
Vite 6 is highly backward compatible, not much to add!
Force Babel to output spec compliant import attributes #386
The default was an old spec (
with type: "json"). We now enforce spec compliant (with { type: "json" })4.3.3 (2024-10-19)
React Compiler runtimeModule option removed
React Compiler was updated to accept a
targetoption andruntimeModulewas removed. vite-plugin-react will still detectruntimeModulefor backwards compatibility.When using a custom
runtimeModuleortarget !== '19', the plugin will not try to pre-optimizereact/compiler-runtimedependency.The react-compiler-runtime is now available on npm can be used instead of the local shim for people using the compiler with React < 19.
Here is the configuration to use the compiler with React 18 and correct source maps in development:
... (truncated)
Commits
57cc398release: plugin-react@4.4.1a62bdd6fix(react): fix package.jsontypes(#462)8beda4frelease: plugin-react@4.4.0fffe4adfeat: add support for rolldown-vite (#451)c197fd9release: plugin-react@4.4.0-beta.2bd1a1adfix(deps): update all non-major dependencies (#392)87f7fddfeat: addreactRefreshHostoption to support module federation HMR (#420)da01d56release: plugin-react@4.4.0-beta.19b1b510chore: fix refresh runtime path in dev (#444)8258442release: plugin-react@4.4.0-beta.0- Additional commits viewable in compare view
Updates vite from 5.4.1 to 6.3.2
Release notes
Sourced from vite's releases.
v6.3.2
Please refer to CHANGELOG.md for details.
create-vite@6.3.1
Please refer to CHANGELOG.md for details.
v6.3.1
Please refer to CHANGELOG.md for details.
create-vite@6.3.0
Please refer to CHANGELOG.md for details.
v6.3.0
Please refer to CHANGELOG.md for details.
v6.3.0-beta.2
Please refer to CHANGELOG.md for details.
v6.3.0-beta.1
Please refer to CHANGELOG.md for details.
v6.3.0-beta.0
Please refer to CHANGELOG.md for details.
v6.2.6
Please refer to CHANGELOG.md for details.
v6.2.5
Please refer to CHANGELOG.md for details.
v6.2.4
Please refer to CHANGELOG.md for details.
v6.2.3
Please refer to CHANGELOG.md for details.
v6.2.2
Please refer to CHANGELOG.md for details.
create-vite@6.2.1
Please refer to CHANGELOG.md for details.
v6.2.1
Please refer to CHANGELOG.md for details.
create-vite@6.2.0
Please refer to CHANGELOG.md for details.
v6.2.0
Please refer to CHANGELOG.md for details.
... (truncated)
Changelog
Sourced from vite's changelog.
6.3.2 (2025-04-18)
- fix: match default asserts case insensitive (#19852) (cbdab1d), closes #19852
- fix: open first url if host does not match any urls (#19886) (6abbdce), closes #19886
- fix(css): respect
css.lightningcssoption in css minification process (#19879) (b5055e0), closes #19879- fix(deps): update all non-major dependencies (#19698) (bab4cb9), closes #19698
- feat(css): improve lightningcss messages (#19880) (c713f79), closes #19880
6.3.1 (2025-04-17)
- fix: avoid using
Promise.allSettledin preload function (#19805) (35c7f35), closes #19805- fix: backward compat for internal plugin
transformcalls (#19878) (a152b7c), closes #198786.3.0 (2025-04-16)
- fix(hmr): avoid infinite loop happening with
hot.invalidatein circular deps (#19870) (d4ee5e8), closes #19870- fix(preview): use host url to open browser (#19836) (5003434), closes #19836
6.3.0-beta.2 (2025-04-11)
- fix: addWatchFile doesn't work if base is specified (fixes #19792) (#19794) (8bed1de), closes #19792 #19794
- fix: correct the behavior when multiple transform filter options are specified (#19818) (7200dee), closes #19818
- fix: fs check with svg and relative paths (#19782) (62d7e81), closes #19782
- fix: keep entry asset files imported by other files (#19779) (2fa1495), closes #19779
- fix: reject requests with
#in request-target (#19830) (175a839), closes #19830- fix: unbundle
fdirto fixcommonjsOptions.dynamicRequireTargets(#19791) (71227be), closes #19791- fix(css): remove empty chunk imports correctly when chunk file name contained special characters (#1 (b125172), closes #19814
- fix(dev): make query selector regexes more inclusive (fix #19213) (#19767) (f530a72), closes #19213 #19767
- fix(hmr): run HMR handler sequentially (#19793) (380c10e), closes #19793
- fix(module-runner): allow already resolved id as entry (#19768) (e2e11b1), closes #19768
- fix(types): remove the
keepProcessEnvfrom theDefaultEnvironmentOptionstype (#19796) (36935b5), closes #19796- refactor: simplify pluginFilter implementation (#19828) (0a0c50a), closes #19828
- perf(css): avoid constructing
renderedModules(#19775) (59d0b35), closes #19775- test: tweak generateCodeFrame test (#19812) (8fe3538), closes #19812
- docs(vite): fix description of
transformIndexHtmlhook (#19799) (a0e1a04), closes #19799- chore: remove unused eslint directive (#19781) (cb4f5b4), closes #19781
6.3.0-beta.1 (2025-04-03)
... (truncated)
Commits
4bc17b4release: v6.3.2b5055e0fix(css): respectcss.lightningcssoption in css minification process (#19879)c713f79feat(css): improve lightningcss messages (#19880)cbdab1dfix: match default asserts case insensitive (#19852)6abbdcefix: open first url if host does not match any urls (#19886)bab4cb9fix(deps): update all non-major dependencies (#19698)a7349efrelease: v6.3.1a152b7cfix: backward compat for internal plugintransformcalls (#19878)35c7f35fix: avoid usingPromise.allSettledin preload function (#19805)5fdcfe7release: v6.3.0- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Pull Request Statistics
2
2
+596
-436
Package Dependencies
esbuild, @vitejs/plugin-react
npm
Technical Details
| ID: | 3517335 |
| UUID: | 2469815168 |
| Node ID: | PR_kwDOMth7Qs6TNmOA |
| Host: | GitHub |
| Repository: | abuzar-alvi/ToDoList-App-Using-React-Tailwind-JavaScript |
| Merge State: | Unknown |