Skip to content

Conversation

@adamscott
Copy link
Contributor

This fixes an issue where path.resolve() resolves using the CWD (which is usually the target project path) instead of the directory of the script itself.

The current behavior causes issues with the Closure compiler, as stubs are erroneously created instead of being skipped in src/shell.js. Closure then complains that variables are declared twice.

The issue was caused by #23348 which changed the logic of the search.

@adamscott adamscott force-pushed the resolve-actual-lib branch from 9fcae01 to 88dd214 Compare June 14, 2025 21:02
@sbc100 sbc100 enabled auto-merge (squash) June 14, 2025 21:22
@sbc100 sbc100 merged commit bf5d63c into emscripten-core:main Jun 14, 2025
30 checks passed
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