babel-plugin-pure-calls-annotation
v0.4.2
Published
[](https://github.com/morlay/babel-plugin-pure-calls-annotation/actions/workflows/test.yml) [ => {
return "call" + s
}
export const stringA = call("a")
export const stringB = (() => call("b"))()to
export const call = (s) => {
return "call" + s
}
export const stringA = /*#__PURE__*/call("a")
export const stringB = /*#__PURE__*/(() => call("b"))()Notice:
code like below will not be pure call
const a = setInterval(() => {
console.log(a)
}, 1000)