@@ -6,24 +6,25 @@ import {
6
6
print ,
7
7
findPlaces ,
8
8
} from 'putout' ;
9
- import * as pluginParseFilenames from './parse-filenames/index.js' ;
10
- import * as pluginResolveFilenames from './resolve-filenames/index.js' ;
11
- import * as pluginBundleFiles from './bundle-files/index.js' ;
12
9
import {
13
10
branch as originalBranch ,
14
11
merge as originalMerge ,
15
12
} from '@putout/processor-filesystem' ;
13
+ import * as pluginParseFilenames from './parse-filenames/index.js' ;
14
+ import * as pluginResolveFilenames from './resolve-filenames/index.js' ;
15
+ import * as pluginBundleFiles from './bundle-files/index.js' ;
16
16
17
17
const [ , replaceCwd ] = pluginFilesystem . rules [ 'replace-cwd' ] ;
18
18
const [ , readAllFiles ] = pluginFilesystem . rules [ 'read-all-files' ] ;
19
19
20
20
const getMessage = ( a ) => a . message ;
21
21
22
- export const bundle = ( from , entry , filesystem , {
23
- progress = createProgress ( ) ,
24
- branch = originalBranch ,
25
- merge = originalMerge ,
26
- } = { } ) => {
22
+ export const bundle = ( from , entry , filesystem , overrides = { } ) => {
23
+ const {
24
+ progress = createProgress ( ) ,
25
+ branch = originalBranch ,
26
+ merge = originalMerge ,
27
+ } = overrides ;
27
28
const [ { source} ] = branch ( filesystem ) ;
28
29
const ast = parse ( source ) ;
29
30
0 commit comments