{"library":"babel-plugin-node-cjs-interop","type":"library","category":null,"description":"A Babel plugin (v0.1.9) that fixes the default import interoperability issue when importing simulated ESM (CommonJS modules with __esModule flag) from native ES modules in Node.js. This plugin automatically wraps export values to ensure default imports work correctly. Compared to alternatives, it automates the wrapping process. Maintained by qnighy, with releases as needed. Also available as swc-plugin-node-cjs-interop for SWC users.","language":"javascript","status":"active","version":"0.1.9","tags":["javascript","babel","babel-plugin","commonjs","node","esm","mjs","cjs","default import","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-node-cjs-interop","imports":["// In .babelrc.js or babel.config.js\nplugins: [\n  ['babel-plugin-node-cjs-interop', { packages: ['styled-components'] }]\n]"]},{"cmd":"yarn add babel-plugin-node-cjs-interop","imports":[]},{"cmd":"pnpm add babel-plugin-node-cjs-interop","imports":[]}],"homepage":null,"github":"https://github.com/qnighy/node-cjs-interop","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-node-cjs-interop","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-node-cjs-interop/compatibility"}}