Tern supports ES modules. To activate it, your must go at Tern Property and check Use ECMASCript modules:
Use ECMASCript modules
There was an error while loading. Please reload this page.