Skip to content

Conversation

@Beilinson
Copy link
Contributor

Added three.module.min.js and three.min.cjs for users serving over import-maps (no tree-shaking).

Type Regular Size Minified Size
esm 1.13mb 600kb
cjs 1.15mb 607kb

This can slightly improve load times in low-network areas, and is useful for production code.

@mrdoob
Copy link
Owner

mrdoob commented Mar 27, 2023

Considering we're deprecating three.min.js it makes sense to add these. 👍

@mrdoob mrdoob added this to the r151 milestone Mar 27, 2023
@mrdoob mrdoob merged commit c601b4e into mrdoob:dev Mar 27, 2023
@marcofugaro
Copy link
Contributor

Hey, sorry to chime in here, but the three.min.cjs build is not necessary since it's used by bundlers and bundlers do their own minification, also it's not specified in the package.json so it will never be used by default.

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