A Babel plugin that enables TypeScript's `export =` assignment syntax to be used when compiling with `@babel/preset-typescript`. It transforms `export =` into `module.exports =` to maintain CommonJS semantics. Current version 0.0.2 is a minimal, single-purpose plugin with no active development since late 2022. Key differentiators: lightweight and focused, no configuration needed, works seamlessly with `@babel/preset-typescript`. Release cadence is low; only two minor versions exist.
npm install babel-plugin-replace-ts-export-assignmentVerified import paths — ran on the pinned version, not inferred.
Demonstrates adding the plugin to Babel config and transforming `export =` into `module.exports`.
Ensure `@babel/preset-typescript` is in your Babel presets.
Ensure the `export =` statement is syntactically correct with a valid expression.
Use only one plugin that modifies module.exports to avoid overwrites.
Run `npm install --save-dev babel-plugin-replace-ts-export-assignment`.
Ensure the plugin is listed in Babel config and `@babel/preset-typescript` is installed.