npm i babel-plugin-route-names-chain --save
babel.config.js
module.exports = {
plugins: [
'route-names-chain',
],
}
Transforms
const name = RouteNamesChain.Checkin.Profile
roughly to
const name = 'Checkin-Prifile'
For more examples, please see the catalog test