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

Examples: Allow tree-shaking for curves #23402

Merged
merged 1 commit into from
Feb 1, 2022

Conversation

marcofugaro
Copy link
Contributor

@marcofugaro marcofugaro commented Feb 1, 2022

Related issue: -

Description

Remove the unnecessary Curves object to allow tree-shaking for curves.

The users that imported curves like this:

import { Curves } from 'three/examples/jsm/curves/CurveExtras.js';

will now import them like this:

import * as Curves from 'three/examples/jsm/curves/CurveExtras.js';

@Mugen87 Mugen87 added this to the r138 milestone Feb 1, 2022
@mrdoob mrdoob merged commit 108deac into mrdoob:dev Feb 1, 2022
@mrdoob
Copy link
Owner

mrdoob commented Feb 1, 2022

Thanks!

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.

3 participants