Skip to content

✅ [TODO 1/1] Ensure ESM export uses .js extension#51

Merged
kys0213 merged 1 commit intomainfrom
feature/core-esm-loader-extension
Oct 21, 2025
Merged

✅ [TODO 1/1] Ensure ESM export uses .js extension#51
kys0213 merged 1 commit intomainfrom
feature/core-esm-loader-extension

Conversation

@kys0213
Copy link
Copy Markdown
Owner

@kys0213 kys0213 commented Oct 21, 2025

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,2 +1,2 @@
export { DependencyBridgeLoader } from './dependency/dependency-bridge.loader';
export { DependencyBridgeLoader } from './dependency/dependency-bridge.loader.js';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Re-export uses .js path that TypeScript cannot resolve

The new specifier ./dependency/dependency-bridge.loader.js will cause tsc to fail to resolve the module because this package’s tsconfig still uses moduleResolution: "node" and there is no .js file in src/dependency. Under that resolver, TypeScript does not map .js imports to .ts sources (that only happens with nodenext/bundler), so pnpm build will fail before emitting either the CJS or ESM bundles. The previous extensionless import compiled correctly because the compiler automatically rewrote it to .js in the output. Consider reverting to the extensionless path or changing module resolution to nodenext before shipping this change.

Useful? React with 👍 / 👎.

@kys0213 kys0213 force-pushed the feature/core-esm-loader-extension branch from 34fc65e to 710fab9 Compare October 21, 2025 07:15
@kys0213
Copy link
Copy Markdown
Owner Author

kys0213 commented Oct 21, 2025

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@kys0213 kys0213 force-pushed the feature/core-esm-loader-extension branch from 710fab9 to 6de0b8b Compare October 21, 2025 07:58
@kys0213
Copy link
Copy Markdown
Owner Author

kys0213 commented Oct 21, 2025

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@kys0213 kys0213 merged commit 0df90f0 into main Oct 21, 2025
2 checks passed
@kys0213 kys0213 deleted the feature/core-esm-loader-extension branch October 21, 2025 08:08
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