{"library":"babel-plugin-add-module-exports","type":"library","category":null,"description":"This Babel plugin restores the pre-Babel 6 behavior where a default export is also assigned to `module.exports`, allowing `require()` to return the default value directly without the `.default` property. Version 1.0.4 is the latest stable release, with no active development. It works only with CommonJS/UMD module output (requires `modules` to be set to `'commonjs'` or `'umd'`). Unlike alternatives, it only adds `module.exports` when there is a single default export, preserving named exports.","language":"javascript","status":"maintenance","version":"1.0.4","tags":["javascript","babel-plugin","module.exports"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-add-module-exports","imports":["import addModuleExports from 'babel-plugin-add-module-exports' (in .babelrc or Babel config)","In .babelrc: { 'plugins': [['add-module-exports', { 'addDefaultProperty': true }]] }"]},{"cmd":"yarn add babel-plugin-add-module-exports","imports":[]},{"cmd":"pnpm add babel-plugin-add-module-exports","imports":[]}],"homepage":null,"github":"https://github.com/59naga/babel-plugin-add-module-exports","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-add-module-exports","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-add-module-exports/compatibility"}}