browserify / detective

Find all calls to require() no matter how deeply nested using a proper walk of the AST
Other
414 stars 61 forks source link

Newer keywords like async/await is not supported #66

Closed martinwebrant closed 6 years ago

martinwebrant commented 7 years ago

Would be great if you upgraded the acorn package to a newer version that understands async/await so that one can bundle such code in browserify. I would like to skip transpiling such code to get better debugger experience.

martinwebrant commented 7 years ago

ecmaVersion needs to default to 7 in the parse function and acorn must support the keyword as well...

Joris-van-der-Wel commented 7 years ago

ecmaVersion needs to default to 7 in the parse function and acorn must support the keyword as well...

async/await is supported in acorn v4 if {ecmaVersion: 8} is passed.

goto-bus-stop commented 6 years ago

fixed in 9d0eb013ac3bb262b36dbbb53560cdca948b2fa5. thanks!