Closed gunar closed 8 years ago
thanks, I'd forgotten to add sourceType:module to the acorn options. the other options should help the parser be more tolerant, too.
I just pushed a change so that sourceType is only set to module if import/exports statements are found, just in case it might cause issues when code is not a module. I've had this on the neovim branch for some time so I think it's safe.
allowImportExportEverywhere
is necessary for acorn (the js parser) to allow forimport
andexport
syntax, now common to ECMAScript2015.Thank you!