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

v3 #306

Merged
merged 28 commits into from
Feb 8, 2023
Merged

v3 #306

merged 28 commits into from
Feb 8, 2023

Conversation

privatenumber
Copy link
Owner

@privatenumber privatenumber commented Jan 16, 2023

closes #275
fixes #139
fixes #114

Remaining work

  • Update get-tsconfig & tsx to stable
  • Open PR in esbuild-loader-examples with test release

⚠️ Merge via rebase

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

BREAKING CHANGE: exports map and bundled files
BREAKING CHANGE: Increase supported Node.js to v16
BREAKING CHANGE: Default value of loader now auto-detects which loader to use based on the extension of the file
BREAKING CHANGE: `sourcemap` option removed
@privatenumber privatenumber mentioned this pull request Jan 16, 2023
13 tasks
@privatenumber privatenumber marked this pull request as ready for review February 8, 2023 02:48
@privatenumber privatenumber merged commit 6999a7f into develop Feb 8, 2023
@privatenumber privatenumber deleted the next branch February 8, 2023 03:19
@privatenumber
Copy link
Owner Author

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant