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

refactor: explicit imports with extension #416

Merged
merged 4 commits into from
Feb 6, 2025
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Feb 6, 2025

Followup from #392

(discovered from issues with node coverage)

In strict ESM resolution and with node --experimental-strip-types, extensions should be always provided and same for /index.

This PR does not (seems issue with mkidst) should not affect any differences in dist output.

@pi0 pi0 closed this Feb 6, 2025
@pi0 pi0 deleted the refactor/explicit-import branch February 6, 2025 12:07
@pi0 pi0 reopened this Feb 6, 2025
@@ -1,7 +1,6 @@
import type http from "node:http";
import { Socket } from "node:net";
// TODO: https://github.com/unjs/unenv/issues/365
import { Readable } from "unenv/node/stream";
Copy link
Member Author

Choose a reason for hiding this comment

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

/cc @vicb two usages also updated here

@pi0 pi0 marked this pull request as ready for review February 6, 2025 23:50
@pi0 pi0 merged commit 5fcc6ff into main Feb 6, 2025
2 checks passed
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 10, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 12, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 12, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 12, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 13, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 13, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 13, 2025
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.

1 participant