minify
minify copied to clipboard
traverse.clearCache is not a function
Input Code
const foo = "foo";
const bar = `asdf ${foo} asd ${foo}`
Actual Output
traverse.clearCache is not a function. (In 'traverse.clearCache()', 'traverse.clearCache' is undefined)
Expected Output
const bar = `asdf foo asd foo`
Details
Noticed this bug when playing around on the repl. Only the minify
plugin is enabled.
I'm hitting it as well, it's enough to enable "Minify" on any code to make it break.
An updated REPL link (the one from the OP doesn't work for me): https://babeljs.io/repl#?babili=true&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=G4QwTgBCELwQTAbgFBA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&sourceType=module&lineWrap=false&presets=babili&prettier=false&targets=&version=7.0.0-alpha.19&envVersion=2.0.0-beta.2
I ran into this problem on my project (mozilla/normandy#1510, mentioned above) and was able to fix it by changing from [email protected]
to the renamed [email protected]
. That doesn't explain the problem with the repl though.
Also got the same problem.
Also found this while playing around with the online repl. Any updates on this one?
I got the same problem here, any update?