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

Fix browser modules export. Fixes domchristie/turndown#334. #335

Merged

Conversation

michbart
Copy link

This pull request fixes browser field exported by Turndown's package.json.

Motivation behind this PR:
I'm using Turndown as a dependency in another project and when I build umd package with Rollup.js, Turndown with JSDOM is included and there is no elegant way to replace it except modifying browser field. After that rollup/plugin-node-resolve can use the module exported by browser field when building my project.

@martincizek
Copy link
Collaborator

Review OK + verified that:

  • A dependant project is able to make a browser build without any reference to domino.
  • CJS build in the dependant projects works as before.

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.

2 participants