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.
npm install babel-plugin-normalize-requiresVerified import paths — ran on the pinned version, not inferred.
Configures Babel to strip .js suffixes and trailing slashes from AMD require() calls.
Use with Babel preset-env or other plugins if targeting CJS/ESM: the plugin will silently skip non-AMD calls.
Ensure require() arguments are string literals for normalization to occur.
Consider forking or migrating to alternative module normalization tools if updates are needed.
Ensure Babel is configured with the plugin in .babelrc and that the code is processed by Babel (check for exclude/include patterns).
Run 'npm install --save-dev babel-plugin-normalize-requires' and verify package.json.
No dependency data recorded yet.