Skip to content

Commit 4ea57ad

Browse files
Use export { default as syntax to dedupe resolver exports (OctoLinker#152)
This makes it so only one line is needed per resolver. Maybe we could also do some webpack trickery to make this work like the plugin auto-loading in ea30b42, but I haven't tried to figure that out yet.
1 parent 324766b commit 4ea57ad

File tree

1 file changed

+10
-23
lines changed

1 file changed

+10
-23
lines changed

lib/resolver/index.js

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
1-
import liveResolverQuery from './live-resolver-query.js';
2-
import relativeFile from './relative-file.js';
3-
import javascriptFile from './javascript-file.js';
4-
import homebrewFile from './homebrew-file.js';
5-
import gitUrl from './git-url.js';
6-
import githubShorthand from './github-shorthand.js';
7-
import javascriptUniversal from './javascript-universal.js';
8-
import rubyUniversal from './ruby-universal.js';
9-
import dockerImage from './docker-image.js';
10-
import vimPlugin from './vim-plugin.js';
11-
12-
export {
13-
liveResolverQuery,
14-
relativeFile,
15-
javascriptFile,
16-
homebrewFile,
17-
javascriptUniversal,
18-
gitUrl,
19-
githubShorthand,
20-
rubyUniversal,
21-
dockerImage,
22-
vimPlugin,
23-
};
1+
export { default as liveResolverQuery } from './live-resolver-query.js';
2+
export { default as relativeFile } from './relative-file.js';
3+
export { default as javascriptFile } from './javascript-file.js';
4+
export { default as homebrewFile } from './homebrew-file.js';
5+
export { default as gitUrl } from './git-url.js';
6+
export { default as githubShorthand } from './github-shorthand.js';
7+
export { default as javascriptUniversal } from './javascript-universal.js';
8+
export { default as rubyUniversal } from './ruby-universal.js';
9+
export { default as dockerImage } from './docker-image.js';
10+
export { default as vimPlugin } from './vim-plugin.js';

0 commit comments

Comments
 (0)