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

Change alias 'three-nodes' → 'three/nodes' #24413

Merged
merged 4 commits into from
Aug 25, 2022

Conversation

donmccurdy
Copy link
Collaborator

@donmccurdy donmccurdy commented Aug 1, 2022

Related:

In my opinion, any aliases in exported modules should be under the three/* namespace. Otherwise, it looks like an import from an unknown NPM module to tooling. If we'd like to do so, we could add the three/nodes entry in package.json#exports, allowing bundlers and some CDNs to resolve this import automatically, but I haven't taken that extra step here.

/cc @sunag @marcofugaro @robertlong

Copy link
Collaborator

@sunag sunag left a comment

Choose a reason for hiding this comment

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

I think it's a positive change due to the many reports of issues.

@LeviPesin
Copy link
Contributor

Also related: #23406

@Mugen87 Mugen87 added this to the r144 milestone Aug 1, 2022
@marcofugaro
Copy link
Contributor

Makes sense, thanks for the PR! 👍

@marcofugaro
Copy link
Contributor

@donmccurdy could you solve the conflicts on this PR?

Also I think this PR should be merged soon to avoid any more confusion for the users.

@sunag
Copy link
Collaborator

sunag commented Aug 24, 2022

Updated!

@mrdoob mrdoob merged commit 9cfb979 into mrdoob:dev Aug 25, 2022
@mrdoob
Copy link
Owner

mrdoob commented Aug 25, 2022

Thanks!

@donmccurdy donmccurdy deleted the hotfix/nodes-alias branch August 25, 2022 18:01
abernier pushed a commit to abernier/three.js that referenced this pull request Sep 16, 2022
* Change alias 'three-nodes' → 'three/nodes'

* Clean up

* update new examples

Co-authored-by: sunag <[email protected]>
snagy pushed a commit to snagy/three.js-1 that referenced this pull request Sep 21, 2022
* Change alias 'three-nodes' → 'three/nodes'

* Clean up

* update new examples

Co-authored-by: sunag <[email protected]>
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.

6 participants