Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Fix misplaced module.exports in ES Modules build #1

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

Conversation

stefanmaric
Copy link

Hardcoded module.exports breaks webpack when importing the ES module build.

I've removed the add-module-exports plugin since it works only when the default export is the only export, which isn't the case for stream-tag.

Instead, I'm patching the commonjs build after the fact.

Related: webpack/webpack#4039

Hardcoded `module.exports` breaks webpack when importing the ES module build.

I've removed the `add-module-exports` plugin since it works only when the default export is the only export, which isn't the case for `stream-tag`.

Instead, I'm patching the commonjs build after the fact.

Related: webpack/webpack#4039
@stefanmaric
Copy link
Author

stefanmaric commented Dec 18, 2020

PD: please hide whitespace changes to review the diff; few files were in CRLF but the project's .editorconfig is configured with LF and my editor/prettier picked it up.

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