Skip to content

Remove CJS build - #449

Merged
jtbandes merged 2 commits into
mainfrom
jacob/esm
Feb 12, 2026
Merged

Remove CJS build#449
jtbandes merged 2 commits into
mainfrom
jacob/esm

Conversation

@jtbandes

Copy link
Copy Markdown
Member

Changelog

Breaking changes:

  • Package is ESM-only

Docs

None

Description

Split from #448

  • Upgrade @foxglove/tsconfig, replace some TS-specific syntax features, add file extensions on all imports
  • Add "type": "module", remove tsconfig.cjs.json

@defunctzombie defunctzombie left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What a time to be alive. I guess the file extensions are upon us much to my sadness. Good thing I don't look at code anymore 🙈

Comment thread src/FontManager.ts
@@ -1,5 +1,5 @@
import TinySDF from "@mapbox/tiny-sdf";
import { EventDispatcher } from "three";
import * as THREE from "three";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does this bloat the final package or downstream bundles of the package?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The three.js folks are big on tree shaking so I think not. Also they are big on using import * as THREE from 'three'; in all their examples.

@jtbandes
jtbandes merged commit 365b2a8 into main Feb 12, 2026
2 checks passed
@jtbandes
jtbandes deleted the jacob/esm branch February 12, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants