{"library":"babel-plugin-transform-require","type":"library","category":null,"description":"A Babel plugin that transforms CommonJS require() calls into ES6 import statements. Version 1.1.0 is the latest stable release. It converts patterns like var a = require('a') to import a from 'a'. This plugin is useful for incremental migration of codebases from CommonJS to ES modules. It operates as a Babel plugin and requires babel-core (or @babel/core) to function. Unlike more comprehensive tools like @babel/plugin-transform-modules-commonjs, this plugin focuses solely on require-to-import conversion without handling exports. The package has a slow release cadence and is minimal in scope.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","es5","es6","es2015","es7","es2016","transpiler","transplie","require"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-transform-require","imports":["import transformRequire from 'babel-plugin-transform-require'","const transformRequire = require('babel-plugin-transform-require')","{\"plugins\": [\"transform-require\"]}"]},{"cmd":"yarn add babel-plugin-transform-require","imports":[]},{"cmd":"pnpm add babel-plugin-transform-require","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-transform-require","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/compatibility"}}