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

feat(profiling-node): Switch to using createRequire #13031

Closed
wants to merge 1 commit into from

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Jul 24, 2024

Using createRequire instead of require is more correct for the esm builds.

ref #13030

@AbhiPrasad AbhiPrasad requested a review from JonasBa July 24, 2024 01:43
@AbhiPrasad AbhiPrasad self-assigned this Jul 24, 2024
@JonasBa
Copy link
Member

JonasBa commented Jul 24, 2024

Aghh, @AbhiPrasad I approved but immediately realized this might break bundlers. Require is user space defined now, so it might trip loader logic

@AbhiPrasad AbhiPrasad marked this pull request as draft July 24, 2024 13:41
@AbhiPrasad
Copy link
Member Author

Let me do a round of testing with different bundlers.

@JonasBa
Copy link
Member

JonasBa commented Jul 24, 2024

Let me do a round of testing with different bundlers

The e2e app tests bundling the app with esbuild and running it, it's a very simple e2e bundling test which I think should catch this

@AbhiPrasad AbhiPrasad closed this Jul 25, 2024
@AbhiPrasad AbhiPrasad deleted the abhi-profiling-node-create-require branch July 25, 2024 15:34
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