Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support ESM and commonjs #122

Closed
wants to merge 1 commit into from
Closed

Added support ESM and commonjs #122

wants to merge 1 commit into from

Conversation

retyui
Copy link

@retyui retyui commented May 24, 2018

No description provided.

@retyui
Copy link
Author

retyui commented May 24, 2018

#121

@mbostock
Copy link
Member

This module already supports ESM (the module entry point) and CommonJS (the main entry point) using Rollup. It’s unclear to me what you are trying to achieve by switching to Babel.

@mbostock mbostock closed this May 24, 2018
@retyui
Copy link
Author

retyui commented May 24, 2018

@mbostock
As you do not understand,
I do not need all the js bundle in the project, and since the tree-shaking does not work.
I'm trying to create a separate folder with CommonJS files.
And third-party libraries that use only part of the function D3 bring the project a lot of dead code

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.

None yet

2 participants