We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a72e5d7 commit f57e33fCopy full SHA for f57e33f
src/visitor/calculate-constant-exp.js
@@ -33,7 +33,6 @@ function calculateBinaryExpression(path) {
33
const code = generator(path.node).code
34
try {
35
const ret = eval(code)
36
- path.replaceWithSourceString(ret)
37
// The strings cannot use replaceWithSourceString
38
// For example, string "ab" will be parsed as identifier ab
39
if (typeof ret === 'string') {
0 commit comments