postcss / postcss-calc

PostCSS plugin to reduce calc()
MIT License
212 stars 34 forks source link

chore: convert source to CommonJs and publish source directly #168

Closed ludofischer closed 2 years ago

ludofischer commented 2 years ago

Allow us to work on the code as it's really going to run instead of the hybrid ConnonJS-ESM format that cannot run anywhere natively. babel-plugin-add-module-exports always overwrote module.exports, so the module.exports.default that Babel created was not visible to consumers. I've tested importing the code from CommonJS and native ESM.