Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

chore: emit single file for each esm and cjs format with preserveModule flag turned off #126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amoshydra
Copy link
Contributor

@amoshydra amoshydra commented Dec 19, 2024

Summary

Implement single output build for both CJS and ESM by turning off preserveModules flag in rollup.config.mjs

See output from a clean build
image

clean build can be achieved by:

  1. doing a fresh git clone
  2. npm i
  3. npm run build

Motivation

To provide a single file (module concatenated) for both CJS and ESM

Related to

#125

Current build step at 22 provides a single file build. However it is in neither CJS nor ESM format.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant