A Babel plugin that replaces the global constant __VERSION__ with the version string from the project's package.json. Version 1.0.0 is stable but receives no active development; it's a simple compile-time macro for including the package version in code without runtime lookup. Unlike runtime version detection or bundler-specific plugins, this works in any Babel build pipeline. It's unmaintained since 2018 and has no dependencies.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This is a Babel plugin, not a typical JS module. It is used via Babel configuration, not imported in user code. ESM import does not work because the plugin uses CommonJS and is not packaged as ESM.
In .babelrc or babel.config.js, the plugin name can be shortened to 'version-inline' (without the babel-plugin- prefix) as Babel automatically resolves it.
Using the plugin name as a string is sufficient; Babel will resolve the package. Explicit require() may work but is not needed.
Demonstrates how to configure the plugin in .babelrc and how __VERSION__ is replaced with the version from package.json.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.