pirelenito / git-revision-webpack-plugin

🏗 Webpack plugin that generates VERSION and COMMITHASH files during build
https://www.npmjs.com/package/git-revision-webpack-plugin
MIT License
358 stars 48 forks source link

Improve compatibility between CJS and ESM modules #67

Closed pirelenito closed 3 years ago

pirelenito commented 3 years ago

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