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

Augment three instead for TypeScript ESM #692

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

CodyJasonBennett
Copy link
Contributor

Fixes #682.

three/src should never be referenced in library code, but referencing the public export sidesteps the issue entirely.

.js file extensions are required when referencing source code, such as examples, but this can create its own issues (e.g., mrdoob/three.js#24593).

@gkjohnson
Copy link
Owner

Great, thanks Cody!

@gkjohnson gkjohnson merged commit a59f8f9 into gkjohnson:master Aug 13, 2024
4 checks passed
@CodyJasonBennett CodyJasonBennett deleted the fix/ts-augment branch August 13, 2024 05:28
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.

TS type augmentations don't work w/ "moduleResolution": "node16"
2 participants