{"library":"babel-plugin-module-rewrite","type":"library","category":null,"description":"Babel plugin that rewrites module import paths (both `import` and `require`) at compile time using a custom replacement function. Version 0.2.0 (latest) appears to be a stable, early-stage package with no active releases in recent years. It allows dynamic path transformations based on the calling file, unlike static alias plugins like babel-plugin-module-resolver. No major updates or security fixes have been published; the package should be considered minimal-risk but potentially unmaintained. Key differentiator is the per-file dynamic replacement capability.","language":"javascript","status":"maintenance","version":"0.2.0","tags":["javascript","babel","babel-plugin","module","rewrite","resolve","dynamic","rename","require"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-module-rewrite","imports":["export default function replaceImport(originalPath, callingFileName, options) { ... }","import babel from '@babel/core';\n// or add to .babelrc: [\"module-rewrite\", { replaceFunc: \"./path\" }]","no default export from the plugin; it's used as a Babel plugin"]},{"cmd":"yarn add babel-plugin-module-rewrite","imports":[]},{"cmd":"pnpm add babel-plugin-module-rewrite","imports":[]}],"homepage":null,"github":"https://github.com/liady/babel-plugin-module-rewrite","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-module-rewrite","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-module-rewrite/compatibility"}}