Closed gunters63 closed 3 years ago
Strangely it works when I patch index.mjs like this:
import {
loadTsconfig,
walkForTsConfig
} from "tsconfig-paths/lib/tsconfig-loader.js";
I have no idea why he cannot resolve the module without the explicit extension
Whoops. The explicit .js
extension was included in #24, but I naïvely removed it without asking why it was added. 😅
This page describes why it's necessary (see the last sentence below):
Released in v3.3.13
I want to switch to ESM mode (
"type": "module"
). vite-tsconfig-paths gives me above error. It seems ESM should be supported because I can seein the package.json of vite-tsconfig-paths so it should be a hybrid module.
When I look into dist/index.mjs there is the following include:
which fails