Skip to content

Conversation

@lazarv
Copy link
Owner

@lazarv lazarv commented Oct 6, 2025

Improves module resolution handling across the framework with better error recovery and support for missing file extensions.
This fix enhances reliability when resolving modules, particularly when handling packages with complex export configurations or missing file extensions. The fallback mechanism ensures that imports work correctly even when the exact specifier isn't immediately resolvable by Node.js.
Adds oxc-resolver as a module resolver in case of externalized dependencies when running in development mode.
Adds a new example that depends on react-syntax-highlighter to test its intricate module setup.
Encapsulates internal Highlight.js usage to not interfere with user-installed Highlight.js.
Related to #251, but provides a generic solution that should apply to a wide range of packages using mixed CommonJS and ES module formats.

@lazarv lazarv merged commit 6ad4f93 into main Oct 6, 2025
8 checks passed
@lazarv lazarv deleted the fix/module-resolution branch October 6, 2025 21:55
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