rollup-plugin-pure-annotation
add pure annotation
Last updated 7 months ago by fairysword .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rollup-plugin-pure-annotation 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.2                                ...           latest (7 months ago)

2 Versions

  • 0.0.2                                ...           7 months ago
  • 0.0.1                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |