Closed Vages closed 2 years ago
I have changed my opinion about leaving file extensions out in imports.
import * as api from "$lib/api"; should be import * as api from "$lib/api.js";
import * as api from "$lib/api";
import * as api from "$lib/api.js";
EcmaScript Modules also require using file extensions, so why not just go with the times, eh? 🤷
There is probably some eslint rule that enforces this
I have changed my opinion about leaving file extensions out in imports.
import * as api from "$lib/api";
should beimport * as api from "$lib/api.js";
EcmaScript Modules also require using file extensions, so why not just go with the times, eh? 🤷
There is probably some eslint rule that enforces this