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

Improve compatibility between CJS and ESM modules #67

Merged
merged 4 commits into from May 5, 2021

Conversation

pirelenito
Copy link
Owner

@pirelenito pirelenito commented May 5, 2021

Changes how we export the library to rely in named exports.

This is a breaking change and will be released as a major version bump.

The change to consumers will be that instead of requiring via:

const GitRevisionPlugin = require('git-revision-webpack-plugin')

It should be via:

const { GitRevisionPlugin } = require('git-revision-webpack-plugin')

This is a fix for #66

Changes how we export the library to rely in named exports.
@pirelenito pirelenito merged commit a08b8ad into main May 5, 2021
@pirelenito pirelenito deleted the change-to-named-exports branch May 5, 2021 20:49
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.

None yet

1 participant