Skip to content

Removal of direct CommonJS support in v3.0 #27444

@jason-ha

Description

@jason-ha

Broken API or pattern

For all FluidFramework client packages, importing (require()) for CommonJS support will be removed. Only ECMAScript Module (ESM) imports are directly supported.

Preparation References

TypeScript consumers should only import in an ESM compatible context which might be from a .mjs or .mts module or .js or .ts under package.json using "type": "module". When using a bundler, TypeScript compilerOptions with "module": "esnext" and "moduleResolution": "bundler" remain supported.

Packages

All packages.

Expected Timeline

v3.0

Metadata

Metadata

Assignees

Labels

breaking changeThis PR or issue would introduce a breaking change

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions