{"library":"babel-plugin-transform-require-default","type":"library","category":null,"description":"A Babel plugin (v0.1.7, last updated 2018) that automatically transforms CommonJS require() calls to access .default for ES modules that use __esModule. Addresses Babel 6/7's breaking change where exported defaults are no longer assigned to module.exports, requiring manual .default access. Helps maintain backward compatibility in mixed ES module / CommonJS codebases. Use with caution: modifies module resolution behavior and may cause unintended side effects. Consider alternatives like using ES import syntax or newer Babel interop settings.","language":"javascript","status":"maintenance","version":"0.1.7","tags":["javascript","babel-plugin"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-transform-require-default","imports":["module.exports = { plugins: [['transform-require-default', { exclude: /lodash/ }]] }"]},{"cmd":"yarn add babel-plugin-transform-require-default","imports":[]},{"cmd":"pnpm add babel-plugin-transform-require-default","imports":[]}],"homepage":null,"github":"https://github.com/kingback/babel-plugin-transform-require-default","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-transform-require-default","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-transform-require-default/compatibility"}}