Add Babel 8 compatibility.
Review Request #15211 — Created July 30, 2026 and updated — Latest diff uploaded
This updates the plugin to work with both Babel 7 and Babel 8:
- Declared
@babel/core^7.0.0 || ^8.0.0 as a peer dependency. - Updated dev dependencies to Babel 8 RC for testing.
- Fixed
t.Identifier()to use the canonicalt.identifier()builder. - Added a plugin name for improved Babel 8 error messages.
- Replaced
_gettextTransformednode mutation with aWeakSet.
Ran unit tests against both Babel 7.x and 8.0.4