Skip to content

create single dist esm file to clear circular dependencies#2035

Closed
iambumblehead wants to merge 1 commit intoimmutable-js:mainfrom
iambumblehead:generate-dist-esm-file-to-clear-circular-dependencies
Closed

create single dist esm file to clear circular dependencies#2035
iambumblehead wants to merge 1 commit intoimmutable-js:mainfrom
iambumblehead:generate-dist-esm-file-to-clear-circular-dependencies

Conversation

@iambumblehead
Copy link
Copy Markdown

@iambumblehead iambumblehead commented Nov 7, 2024

resolves #2019


related: #2022

banner: copyright,
name: 'Immutable',
// generates one esm file with no circular imports
file: path.join(DIST_DIR, 'es', 'Immutable.js'),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As a matter of fact, it was like that before trying to resolve tree-shaking in 8dffce4#diff-a098417b5f500a442eab89048eb0705bf6acad8b8f76514b70d27ba2e10f55a5

But we can not resolve tree-shaking because everything is connected, so let's rollback to a single file 👍

@jdeniau
Copy link
Copy Markdown
Member

jdeniau commented Nov 7, 2024

Merged in 7452d39

@jdeniau jdeniau closed this Nov 7, 2024
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.

circular dependency (invalid esm) in v5 at /dist/es/Seq.js and dist/es/Collection.js

3 participants