ESBuildMinifyPlugin was renamed to EsbuildPlugin to indicate it can be used as a general interface to esbuild (not just a minifier, but transformer).
Import EsbuildPlugin instead:
You no longer need to pass in loader to the loader. It will now detect which loader to use based on the file extension. This also means you can consolidate esbuild-loader rules for different file types into one.
👉 Note: For this to work, be sure to follow file extension conventions such as using .jsx/.tsx for files that contain JSX.
You can now use the tsconfig property to pass in a tsconfig file, and it will even resolve extends
tsconfig.json includes/excludes/files are now respected so it will only apply the tsconfig.json to matching files. However, TypeScript compilation will always work regardless of tsconfig.json.
If Webpack's target is web, EsbuildPlugin will default to using format: iife unless otherwise specified. This change was made to prevent window pollution.
Make sure your Node.js version is at least v16
Changes
Bug Fixes
apply tsconfig only to matching files (#310) (7c68769)
Build System
add exports map and bundle with pkgroll (#265) (f907edd)
Code Refactoring
esbuild to auto-detect which loader to use (#304) (378c74e)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps esbuild-loader from 2.21.0 to 3.0.0.
Release notes
Sourced from esbuild-loader's releases.
... (truncated)
Commits
c92153c
Merge branch 'develop' of github.com:esbuild-kit/esbuild-loader6999a7f
chore: upgrade esbuilde4441d1
chore: update repository urla1b793d
chore: use stable tsxda5b526
chore: use stable get-tsconfigd1ac67b
test: handle tsconfig for first filebd6310e
chore: upgrade dependenciesb1a6f60
chore: upgrade dependenciesfd894fa
chore: removed unused dependency "tapable"ea96d71
docs: updateDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)