Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 44d1bf4

Browse files
apply formatter
1 parent 6cd2f15 commit 44d1bf4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mod.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { cache as Cache } from './deps.ts';
33
import { posix } from './deps.ts';
44

55
interface Importmap {
6-
imports?: { [key: string]: string },
6+
imports?: { [key: string]: string };
77
scope?: {
8-
[key: string]: { [key: string]: string }
9-
},
8+
[key: string]: { [key: string]: string };
9+
};
1010
}
1111

1212
interface Options {
@@ -30,14 +30,14 @@ function esbuildCachePlugin(options: Options): esbuild.Plugin {
3030
name: 'esbuild-cache-plugin',
3131
setup(build) {
3232
// resolve import map
33-
for(const importName in imports) {
33+
for (const importName in imports) {
3434
const filter = new RegExp(`^${importName}$`, 'i');
3535

3636
build.onResolve({ filter }, (args) => {
3737
let path = imports[args.path];
38-
for(const scopePath in scope) {
39-
if(!posix.relative(scopePath, args.importer).startsWith('..')) {
40-
if(args.path in scope[scopePath]) {
38+
for (const scopePath in scope) {
39+
if (!posix.relative(scopePath, args.importer).startsWith('..')) {
40+
if (args.path in scope[scopePath]) {
4141
path = scope[scopePath][args.path];
4242
}
4343
}

0 commit comments

Comments
 (0)