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

Replace webpack by maintaining the functionality that is currently present #1

Open
1 of 10 tasks
erikyo opened this issue Jan 8, 2024 · 3 comments
Open
1 of 10 tasks

Comments

@erikyo
Copy link
Collaborator

erikyo commented Jan 8, 2024

From a conversation this morning on slack with @gziolo where he was telling me that actually wp-scripts does (also) this:

Some things are already there but I keep it as a checklist of the main features

ref. https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/config/webpack.config.js

@erikyo erikyo modified the milestone: Gettext Jan 8, 2024
@gziolo
Copy link

gziolo commented Jan 8, 2024

users can provide their own config overrides to webpack, PostCSS, cssnano, browserslist, babel

That part might not be needed when using Vite, but it illustrates the level of customization that projects use to fulfill their use cases.

@erikyo
Copy link
Collaborator Author

erikyo commented Jan 9, 2024

You are right, though. Indeed, would be cool to provide the possibility to configure the bundle. Vite has a some options, such as whether to use its internal minifier or Terser, whether to use SWC or Rollup, etc. especially the latter would be interesting

@erikyo
Copy link
Collaborator Author

erikyo commented Jan 10, 2024

Perhaps the best approach is to create configurable vite/rollup plugins (they use the same standard).

Yesterday, I have read a little bit about, and I must say that also the resolver part is very improvable, I add here some references:

@erikyo erikyo changed the title Enhancements Replace webpack by maintaining the functionality that is currently present Jan 10, 2024
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

No branches or pull requests

2 participants