Mark top-level calls as pure for tree shaking.
Install
# with npm
npm install -D babel-plugin-pure-annotations
# with Yarn
yarn add -D babel-plugin-pure-annotations
Usage
With babel configuration file:
{
"plugins": ["pure-annotations"]
}
Mark top-level calls as pure for tree shaking.
# with npm
npm install -D babel-plugin-pure-annotations
# with Yarn
yarn add -D babel-plugin-pure-annotations
With babel configuration file:
{
"plugins": ["pure-annotations"]
}
npm i babel-plugin-pure-annotations
29
0.1.2
MIT
2.83 kB
4