{"library":"babel-plugin-normalize-requires","type":"library","category":null,"description":"A Babel plugin that normalizes AMD require() calls by removing file extensions (e.g., .js) and trailing slashes from module paths. Version 2.32.2 is current; part of the Liferay Frontend Projects monorepo. It is designed for Liferay's AMD module system and does not handle CommonJS or ES module imports. Key differentiator: it preserves npm package names that contain .js (e.g., a package named 'foo.js') while normalizing module paths. Release cadence is irregular, tied to Liferay SDK updates.","language":"javascript","status":"active","version":"2.32.2","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-normalize-requires","imports":["module.exports = require('babel-plugin-normalize-requires')","plugins: ['normalize-requires']","const normalizeRequires = require('babel-plugin-normalize-requires');\nbabel.transform(code, { plugins: [normalizeRequires] })"]},{"cmd":"yarn add babel-plugin-normalize-requires","imports":[]},{"cmd":"pnpm add babel-plugin-normalize-requires","imports":[]}],"homepage":null,"github":"https://github.com/liferay/liferay-frontend-projects","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-normalize-requires","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-normalize-requires/compatibility"}}