Skip to content

feat(esm): Import rather than require inspector#10910

Merged
AbhiPrasad merged 1 commit intodevelopfrom
esm/import-inspector
Mar 4, 2024
Merged

feat(esm): Import rather than require inspector#10910
AbhiPrasad merged 1 commit intodevelopfrom
esm/import-inspector

Conversation

@timfish
Copy link
Copy Markdown
Collaborator

@timfish timfish commented Mar 4, 2024

This does break support for custom builds of Node which have been built without inspector support. The only one that comes to mind is Vercel/pkg but this has recently been deprecated since Node v21 supports building single file executables.

We may come back later and find a way to work around this but we cannot use async import with the current code, so we'll need to revisit this after we have a proper ESM build working!

This also removes local-variables-async.ts since it's not used and async inspector requires a worker thread to work.

@AbhiPrasad
Copy link
Copy Markdown
Contributor

Gonna merge this in because I wanna test something out with serverless

@AbhiPrasad AbhiPrasad merged commit 056f944 into develop Mar 4, 2024
@AbhiPrasad AbhiPrasad deleted the esm/import-inspector branch March 4, 2024 16:58
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