esbuild-loader
Advanced tools
Comparing version 4.1.0 to 4.2.0
{ | ||
"name": "esbuild-loader", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "⚡️ Speed up your Webpack build with esbuild", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
"dependencies": { | ||
"esbuild": "^0.20.0", | ||
"esbuild": "^0.21.0", | ||
"get-tsconfig": "^4.7.0", | ||
@@ -46,0 +46,0 @@ "loader-utils": "^2.0.4", |
@@ -9,5 +9,2 @@ # esbuild-loader <a href="https://npm.im/esbuild-loader"><img src="https://badgen.net/npm/v/esbuild-loader"></a> <a href="https://npm.im/esbuild-loader"><img src="https://badgen.net/npm/dm/esbuild-loader"></a> <a href="https://packagephobia.now.sh/result?p=esbuild-loader"><img src="https://packagephobia.now.sh/badge?p=esbuild-loader"></a> | ||
Curious how much faster your build will be? See [what users are saying](https://github.com/privatenumber/esbuild-loader/discussions/138). | ||
> [!TIP] | ||
@@ -25,10 +22,6 @@ > **Are you using TypeScript with Node.js?** | ||
<p align="center"> | ||
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum"> | ||
<picture> | ||
<source width="830" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum&image=dark"> | ||
<source width="830" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum&image"> | ||
<img width="830" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum&image" alt="Premium sponsor banner"> | ||
</picture> | ||
</a> | ||
<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=398771"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/donate.webp"></a> | ||
<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=397608"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/sponsor.webp"></a> | ||
</p> | ||
<p align="center"><sup><i>Already a sponsor?</i> Join the discussion in the <a href="https://github.com/pvtnbr/esbuild-loader">Development repo</a>!</sup></p> | ||
@@ -111,3 +104,3 @@ ## 🚀 Install | ||
By default, the target to `esnext`, which means it doesn't perform any transpilations. | ||
The default target is `esnext`, which means it doesn't perform any transpilations. | ||
@@ -142,3 +135,3 @@ To specify a target JavaScript engine that only supports ES2015, use the following configuration in your `webpack.config.js`: | ||
> [!IMPORTANT] | ||
> It's possible to pass in `loader: 'tsx'` to handle both `.ts` and `.tsx` files, but you should not do this as TypeScript and TSX do not have compatible syntaxes. | ||
> It's possible to use `loader: 'tsx'` for both `.ts` and `.tsx` files, but this could lead to unexpected behavior as TypeScript and TSX do not have compatible syntaxes. | ||
> | ||
@@ -299,3 +292,3 @@ > [→ Read more](https://esbuild.github.io/content-types/#ts-vs-tsx) | ||
If your CSS is not emitted as a `.css` file, but rather inserted from the JavaScript using something like [`style-loader`](https://github.com/webpack-contrib/style-loader), you can use the loader for minification. | ||
If your CSS is not emitted as a `.css` file, but rather injected with JavaScript using something like [`style-loader`](https://github.com/webpack-contrib/style-loader), you can use the loader for minification. | ||
@@ -335,3 +328,4 @@ | ||
⚠️ esbuild is not stable yet and can have dramatic differences across releases. Using a different version of esbuild is not guaranteed to work. | ||
> [!WARNING] | ||
> ⚠esbuild is not stable yet and can have dramatic differences across releases. Using a different version of esbuild is not guaranteed to work. | ||
@@ -360,5 +354,2 @@ | ||
_The `implementation` option will be removed once esbuild reaches a stable release. Instead esbuild will become a peerDependency so you always provide your own._ | ||
## Setup examples | ||
@@ -369,14 +360,2 @@ If you'd like to see working Webpack builds that use esbuild-loader for basic JS, React, TypeScript, Next.js, etc. check out the examples repo: | ||
<br> | ||
<p align="center"> | ||
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold"> | ||
<picture> | ||
<source width="830" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold&image=dark"> | ||
<source width="830" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold&image"> | ||
<img width="830" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold&image" alt="Premium sponsor banner"> | ||
</picture> | ||
</a> | ||
</p> | ||
## ⚙️ Options | ||
@@ -561,3 +540,3 @@ | ||
Using any JS bundler introduces a bottleneck that makes reaching those speeds impossible. However, esbuild-loader can still speed up your build by removing the bottlenecks created by [`babel-loader`](https://twitter.com/wSokra/status/1316274855042584577?s=20), `ts-loader`, Terser, etc. | ||
Using a JS runtime introduces a bottleneck that makes reaching those speeds impossible. However, esbuild-loader can still speed up your build by removing the bottlenecks created by [`babel-loader`](https://twitter.com/wSokra/status/1316274855042584577), `ts-loader`, Terser, etc. | ||
@@ -579,20 +558,2 @@ | ||
<p align="center"> | ||
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1"> | ||
<picture> | ||
<source width="410" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1&image=dark"> | ||
<source width="410" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1&image"> | ||
<img width="410" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1&image" alt="Premium sponsor banner"> | ||
</picture> | ||
</a> | ||
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2"> | ||
<picture> | ||
<source width="410" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2&image=dark"> | ||
<source width="410" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2&image"> | ||
<img width="410" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2&image" alt="Premium sponsor banner"> | ||
</picture> | ||
</a> | ||
</p> | ||
<p align="center"> | ||
<a href="https://github.com/sponsors/privatenumber"> | ||
@@ -599,0 +560,0 @@ <img src="https://cdn.jsdelivr.net/gh/privatenumber/sponsors/sponsorkit/sponsors.svg"> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32386
554
+ Added@esbuild/aix-ppc64@0.21.5(transitive)
+ Added@esbuild/android-arm@0.21.5(transitive)
+ Added@esbuild/android-arm64@0.21.5(transitive)
+ Added@esbuild/android-x64@0.21.5(transitive)
+ Added@esbuild/darwin-arm64@0.21.5(transitive)
+ Added@esbuild/darwin-x64@0.21.5(transitive)
+ Added@esbuild/freebsd-arm64@0.21.5(transitive)
+ Added@esbuild/freebsd-x64@0.21.5(transitive)
+ Added@esbuild/linux-arm@0.21.5(transitive)
+ Added@esbuild/linux-arm64@0.21.5(transitive)
+ Added@esbuild/linux-ia32@0.21.5(transitive)
+ Added@esbuild/linux-loong64@0.21.5(transitive)
+ Added@esbuild/linux-mips64el@0.21.5(transitive)
+ Added@esbuild/linux-ppc64@0.21.5(transitive)
+ Added@esbuild/linux-riscv64@0.21.5(transitive)
+ Added@esbuild/linux-s390x@0.21.5(transitive)
+ Added@esbuild/linux-x64@0.21.5(transitive)
+ Added@esbuild/netbsd-x64@0.21.5(transitive)
+ Added@esbuild/openbsd-x64@0.21.5(transitive)
+ Added@esbuild/sunos-x64@0.21.5(transitive)
+ Added@esbuild/win32-arm64@0.21.5(transitive)
+ Added@esbuild/win32-ia32@0.21.5(transitive)
+ Added@esbuild/win32-x64@0.21.5(transitive)
+ Addedesbuild@0.21.5(transitive)
- Removed@esbuild/aix-ppc64@0.20.2(transitive)
- Removed@esbuild/android-arm@0.20.2(transitive)
- Removed@esbuild/android-arm64@0.20.2(transitive)
- Removed@esbuild/android-x64@0.20.2(transitive)
- Removed@esbuild/darwin-arm64@0.20.2(transitive)
- Removed@esbuild/darwin-x64@0.20.2(transitive)
- Removed@esbuild/freebsd-arm64@0.20.2(transitive)
- Removed@esbuild/freebsd-x64@0.20.2(transitive)
- Removed@esbuild/linux-arm@0.20.2(transitive)
- Removed@esbuild/linux-arm64@0.20.2(transitive)
- Removed@esbuild/linux-ia32@0.20.2(transitive)
- Removed@esbuild/linux-loong64@0.20.2(transitive)
- Removed@esbuild/linux-mips64el@0.20.2(transitive)
- Removed@esbuild/linux-ppc64@0.20.2(transitive)
- Removed@esbuild/linux-riscv64@0.20.2(transitive)
- Removed@esbuild/linux-s390x@0.20.2(transitive)
- Removed@esbuild/linux-x64@0.20.2(transitive)
- Removed@esbuild/netbsd-x64@0.20.2(transitive)
- Removed@esbuild/openbsd-x64@0.20.2(transitive)
- Removed@esbuild/sunos-x64@0.20.2(transitive)
- Removed@esbuild/win32-arm64@0.20.2(transitive)
- Removed@esbuild/win32-ia32@0.20.2(transitive)
- Removed@esbuild/win32-x64@0.20.2(transitive)
- Removedesbuild@0.20.2(transitive)
Updatedesbuild@^0.21.0