Skip to content

fix(esbuild): avoid using createRequire as import name #799

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

Merged
merged 2 commits into from
Apr 10, 2025

Conversation

dominique-pfister
Copy link
Contributor

fix #798

@dominique-pfister dominique-pfister changed the title fix(esbuild): avoid usingcreateRequire as import name fix(esbuild): avoid using createRequire as import name Apr 10, 2025
Comment on lines +171 to +177
it('generates the bundle (esm, esbuild)', async () => {
await generate(['--bundler=esbuild', '--esm'], PROJECT_SIMPLE_ESM);
});

it('generates the bundle (esbuild) fails', async () => {
await assert.rejects(generate(['--bundler=esbuild']), Error('ESBuild bundler only supports ESM builds.'));
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

finally added tests for esbuild bundler

Copy link

This PR will trigger a patch release when merged.

@dominique-pfister dominique-pfister merged commit 082551d into main Apr 10, 2025
5 checks passed
@dominique-pfister dominique-pfister deleted the issue-798 branch April 10, 2025 11:47
adobe-bot pushed a commit that referenced this pull request Apr 10, 2025
## [12.4.31](v12.4.30...v12.4.31) (2025-04-10)

### Bug Fixes

* **esbuild:** avoid using `createRequire` as import name ([#799](#799)) ([082551d](082551d))
@adobe-bot
Copy link

🎉 This PR is included in version 12.4.31 🎉

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
Development

Successfully merging this pull request may close these issues.

[esbuild] avoid usingcreateRequire as import name
3 participants