We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38c1ce4 commit 75c03d0Copy full SHA for 75c03d0
src/config.ts
@@ -16,7 +16,5 @@ export const root = fileURLToPath(`file://${process.cwd()}`);
16
export const cacheMap = new Map();
17
export const nodeImportMapPath = join(root, "node.importmap");
18
export const cache = join(root, ".cache");
19
-const map = existsSync(nodeImportMapPath)
20
- ? JSON.parse(readFileSync(nodeImportMapPath, { encoding: "utf8" }))
21
- : {};
+const map = existsSync(nodeImportMapPath) ? JSON.parse(readFileSync(nodeImportMapPath, { encoding: "utf8" })) : {};
22
export const importmap = new ImportMap({ rootUrl: import.meta.url, map });
0 commit comments