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

[ARGG-864]: Experimental esbuild-loader support #179

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

xalechez
Copy link

@xalechez xalechez commented Nov 14, 2023

  • Added esbuild-loader as an opt-in built time optimisation
  • Added conversion of browserslist config to esbuild target
  • Added support of keeping babel-loader for loadable components which is a hard requirement for them to work the same way as before
  • I also tried to add EsbuildPlugin for minification and definitions, but it somehow showed worse results in test apps than TerserPlugin + DefinePlugin

{
// Loadable Components require special treatment with Babel plugin
// When used with Esbuild loader, they should still be transpiled with Babel first
test: /\.loadable\.(ts|js)$/,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't identify loadable components files other than by a prefix, so this is a suggestion - if you want esbuild-loader, make sure your LCs are wrapped into special files

@xalechez xalechez changed the title Argg 864 [ARGG-864]: Experimental esbuild-loader support Nov 15, 2023
@xalechez xalechez marked this pull request as ready for review November 15, 2023 10:58
@xalechez xalechez merged commit 5174c53 into fork_cra5 Nov 16, 2023
2 checks passed
@xalechez xalechez deleted the ARGG-864 branch November 30, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants