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: remove unnecessary checks #23175

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

marcofugaro
Copy link
Contributor

Related issue: #23167 (comment)

Description

These checks don't make sense in the jsm world, a module will always be defined.
We can live without them in the examples/js files as well.

@mrdoob
Copy link
Owner

mrdoob commented Jan 7, 2022

Makes sense to me.

On a related note...

What would happen if we used the import maps polyfill in all the examples and we removed the examples/js folder altogether?

@marcofugaro
Copy link
Contributor Author

What would happen if we used the import maps polyfill in all the examples and we removed the examples/js folder altogether?

🤩 🤩 🤩 I like this idea! Perfect way to start 2022!

Do you think old users have switched to modules and #20455 is not an issue anymore?

@Mugen87 Mugen87 added this to the r137 milestone Jan 17, 2022
@mrdoob mrdoob merged commit 62fe59d into mrdoob:dev Jan 19, 2022
@mrdoob
Copy link
Owner

mrdoob commented Jan 19, 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