File tree 2 files changed +4
-4
lines changed
astro/src/assets/services/vendor/squoosh
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import { isMainThread } from 'node:worker_threads';
2
2
import { cpus } from 'os' ;
3
3
import { fileURLToPath } from 'url' ;
4
4
import type { OutputFormat } from '../../../types.js' ;
5
- import execOnce from './utils/execOnce.js' ;
6
- import WorkerPool from './utils/workerPool.js' ;
7
5
import { getModuleURL } from './emscripten-utils.js' ;
8
6
import type { Operation } from './image.js' ;
9
7
import * as impl from './impl.js' ;
8
+ import execOnce from './utils/execOnce.js' ;
9
+ import WorkerPool from './utils/workerPool.js' ;
10
10
11
11
const getWorker = execOnce ( ( ) => {
12
12
return new WorkerPool (
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ export default function toRemarkCollectImages(resolveImage: OptionalResolveImage
16
16
if ( imagePaths . size === 0 ) {
17
17
vfile . data . imagePaths = [ ] ;
18
18
return ;
19
- } else if ( resolveImage ) {
19
+ } else if ( resolveImage ) {
20
20
const mapping = new Map < string , string > ( ) ;
21
- for ( const path of Array . from ( imagePaths ) ) {
21
+ for ( const path of Array . from ( imagePaths ) ) {
22
22
const id = await resolveImage ( path ) ;
23
23
mapping . set ( path , id ) ;
24
24
}
You can’t perform that action at this time.
0 commit comments