Having a JavaScript snippet like:
async function foo() {
await import('./module.js');
}
and then tidying via the Tidy button, you end up with:
async function foo() {
await
import ('./foo.js');
}
which does two things I wouldn't expect:
- breaking the
import
onto a new line, and - placing a space between
import
and the opening bracket
Note that, in this usage, this is the dynamic import()
function-like, not the static import
statement.