Add an option to transpile .js file with esbuild
See original GitHub issueIn React development case it is a common habit to use .js
file instead of .jsx
for JSX component.
Vite seems simply skips the esbuild plugin if the file name does not match this Regex:
which means only .ts
, .tsx
and .jsx
files would have the opportunity to be transpiled by esbuild.
How about adding an option to also transpile .js file with esbuild? It would be great for React developers.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:13 (6 by maintainers)
Top Results From Across the Web
API - ESBuild
API. The API can be accessed in one of three ways: on the command line, in JavaScript, and in Go. The concepts and...
Read more >Content Types - ESBuild
Content Types. All of the built-in content types are listed below. Each content type has an associated "loader" which tells esbuild how to...
Read more >Getting Started - ESBuild
Getting Started. #Install esbuild. First, download and install the esbuild command locally. A prebuilt native executable can be installed using npm (which ...
Read more >Plugins - esbuild
Plugins. The plugin API allows you to inject code into various parts of the build process. Unlike the rest of the API, it's...
Read more >FAQ - ESBuild
While esbuild is busy parsing your JavaScript, node is busy parsing your bundler's JavaScript. By the time node has finished parsing your bundler's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, the include option doesn’t seem to work anymore. ( vite => ^2.0.0-beta.64 )
index.js
@mijamo
Then don’t.