dequelabs / axe-core-npm

Mozilla Public License 2.0
592 stars 67 forks source link

fix: allow cjs version of packages to export a default value #943

Closed straker closed 9 months ago

straker commented 9 months ago

This adds an esbuild plugin to "fix" the esbuild problem of having export default a changed into module.exports.default = a instead of modules.exports = a. Using the plugin removes the build warnings we get from esbuild when we tried to add module.exports into the code to do this manually.

Closes https://github.com/dequelabs/axe-core-npm/issues/948