Skip to content

Conversation

@Methuselah96
Copy link
Contributor

@Methuselah96 Methuselah96 commented Feb 5, 2023

Why

Resolves #336.

What

Added the exports field to package.json to match three's exports field. Also added build/three.d.ts and build/three.module.d.ts so that those paths would resolve correctly.

I tested this locally and importing three/addons/controls/OrbitControls.js seems to resolve correctly. Hopefully DefinitelyTyped preserves this field when publishing the types. The only way to know for sure is to try it out.

Checklist

  • Checked the target branch (current goes master, next goes dev)
  • Added myself to contributors table
  • Ready to be merged

@Methuselah96 Methuselah96 mentioned this pull request Feb 5, 2023
@Methuselah96 Methuselah96 merged commit 400332f into master Feb 6, 2023
@Methuselah96 Methuselah96 deleted the exports-field branch February 6, 2023 13:10
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.

three/addons alias

3 participants