This repository was archived by the owner on Aug 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change
1
+ export * as esbuild from 'https://deno.land/x/esbuild@v0.17.13/mod.js' ;
2
+ export * as cache from 'https://deno.land/x/cache@0.2.13/mod.ts' ;
Original file line number Diff line number Diff line change 1
- import { Loader , Plugin } from 'https://deno.land/x/esbuild@v0.17.13/mod.js ' ;
2
- import * as Cache from 'https://deno.land/x/cache@0.2.13/mod .ts' ;
1
+ import { esbuild } from './deps.ts ' ;
2
+ import { cache as Cache } from './deps .ts' ;
3
3
4
4
interface Options {
5
5
directory ?: string ;
6
6
rules ?: [ {
7
7
test : RegExp ;
8
- loader : Loader | string ;
8
+ loader : esbuild . Loader | string ;
9
9
} ] ;
10
10
}
11
11
12
- export function esbuildCachePlugin ( options : Options ) : Plugin {
12
+ export function esbuildCachePlugin ( options : Options ) : esbuild . Plugin {
13
13
const namespace = 'esbuild-cache-plugin' ;
14
14
if ( options . directory ) {
15
15
Cache . configure ( { directory : options . directory } ) ;
@@ -65,7 +65,7 @@ export function esbuildCachePlugin(options: Options): Plugin {
65
65
66
66
return {
67
67
contents : await Deno . readTextFile ( file . path ) ,
68
- loader : loader as Loader ,
68
+ loader : loader as esbuild . Loader ,
69
69
} ;
70
70
} ) ;
71
71
} ,
You can’t perform that action at this time.
0 commit comments