Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency esbuild-loader to v3 (main) #18883

Merged
merged 2 commits into from
Feb 8, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 8, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
esbuild-loader ^2.21.0 -> ^3.0.0 age adoption passing confidence

Release Notes

esbuild-kit/esbuild-loader

v3.0.0

Compare Source

Migration guide

  • 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:
- const { ESBuildMinifyPlugin } = require('esbuild-loader')
+ const { EsbuildPlugin } = require('esbuild-loader')
  • 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
Build System
Code Refactoring
Continuous Integration
Features
BREAKING CHANGES
  • tsconfig.json is now only applied to files it matches (via include/exclude/files)
  • plugin: Plugin default format is now iife when Webpack's target is web & esbuild's target is below esnext
  • ESBuildMinifyPlugin renamed to EsbuildPlugin; MinifyPluginOptions renamed to EsbuildPluginOptions
  • sourcemap option removed
  • Default value of loader now auto-detects which loader to use based on the extension of the file
  • Increase supported Node.js to v16
  • exports map and bundled files

Configuration

πŸ“… Schedule: Branch creation - At any time (no schedule defined), 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.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

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

@codesandbox
Copy link

codesandbox bot commented Feb 8, 2023

CodeSandbox logoCodeSandbox logoΒ  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@renovate renovate bot force-pushed the renovate/main-esbuild-loader-3.x branch from 21b1a23 to 0b8cad4 Compare February 8, 2023 09:04
@renovate
Copy link
Contributor Author

renovate bot commented Feb 8, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.

⚠ Warning: custom changes will be lost.

@danielroe danielroe marked this pull request as draft February 8, 2023 09:14
@danielroe danielroe marked this pull request as ready for review February 8, 2023 09:15
@danielroe danielroe merged commit 9f3b38c into main Feb 8, 2023
@danielroe danielroe deleted the renovate/main-esbuild-loader-3.x branch February 8, 2023 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant