Usually I write import {x} from "./foo”
Riccardo Scalco
22

No, Chrome — plus Safari and other browsers — require you to specify the path exactly, they won’t infer “.js”.

Similarly, you can’t import “foo” — you’d always have to import “./foo.js”.