Skip to content

build: add dual package support for ESM and CommonJS#140

Open
tommyo wants to merge 1 commit intogrimmdude:masterfrom
tommyo:master
Open

build: add dual package support for ESM and CommonJS#140
tommyo wants to merge 1 commit intogrimmdude:masterfrom
tommyo:master

Conversation

@tommyo
Copy link

@tommyo tommyo commented Feb 1, 2026

  • Update package.json with dual exports configuration (ESM/CJS)
  • Simplify rollup config to output both module formats
  • Remove browser-specific build configuration
  • Update TypeScript config with ES2018 target and ESNext module
  • Standardize code formatting (spacing in imports/types)
  • Bump version to 3.1.2

This change enables the package to be consumed by both ESM and CommonJS projects through conditional exports, improving compatibility across different module systems.

- Update package.json with dual exports configuration (ESM/CJS)
- Simplify rollup config to output both module formats
- Remove browser-specific build configuration
- Update TypeScript config with ES2018 target and ESNext module
- Standardize code formatting (spacing in imports/types)
- Bump version to 3.1.2

This change enables the package to be consumed by both ESM and CommonJS projects through conditional exports, improving compatibility across different module systems.
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.

1 participant