npm i @milestones/babel-plugin-strip-milestones



This package allows you to strip the milestone() calls completely out of your code to eliminate any overhead in production.

Full documentation can be found at https://salsify.github.io/milestones/docs/babel-plugin.


Include @milestones/babel-plugin-strip-milestones in your package dependencies and then add '@milestones/babel-plugin-strip-milestones' to the plugins array in your babel.config.json or the corresponding configuration location for your particular Babel integration.

Jump To