-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: support esbuild
as alternative bundler
#760
Conversation
will add tests for this bundler, works as follows:
|
esbuild
for bundlingesbuild
as alternative bundler
if (!bundler) { | ||
return this; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave webpack
as default bundler
'import { createRequire } from "module";', | ||
'const require = createRequire(import.meta.url);', | ||
'', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"required" for cjs imports
This PR will trigger a minor release when merged. |
// use @adobe/helix-universal in the calling service, not ours | ||
build.onResolve( | ||
{ filter: /^@adobe\/helix-universal$/ }, | ||
(args) => ({ path: path.resolve(cfg.cwd, 'node_modules', args.path, 'src', 'index.js') }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subtle point: when the bundler tries to resolve @adobe/helix-universal, and it adds its own version, it will also resolve other dependencies there (e.g. @adobe/fetch), which is unexpected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool!
# [12.4.0](v12.3.11...v12.4.0) (2024-12-06) ### Features * support `esbuild` as alternative bundler ([#760](#760)) ([fc9c85a](fc9c85a))
🎉 This PR is included in version 12.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
currently adds
esbuild
as dependency, not sure whether there's another mechanism to not inflatehelix-deploy
s dependency list.