rollup-plugin-pure-annotation

v0.0.2
add pure annotation
pure annotation rollup-plugin

pure-annotation

Auto add pure annotation #__PURE__ before call expression which side-effect is false

const COLOR_MAIN = /*#__PURE__*/ valueOnPlatform({
    android: '#D8D8D8', 
    iOS: '#BBBBBB'
})

COLOR_MAIN will be removed if it is not referenced

npm i rollup-plugin-pure-annotation

Metadata

  • MIT
  • Whatever
  • xiongjunhui
  • released 11/8/2019

Downloads

Maintainers