File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,14 @@ export default [
4646 'import/resolver' : {
4747 node : {
4848 pathFilter ( pkg , path , relativePath ) {
49- return pkg . exports ?. [ `./${ relativePath } ` ] ?. import ?. default ??
50- pkg . exports ?. [ `./${ relativePath } ` ] ?. import ??
51- pkg . exports ?. [ `./${ relativePath } ` ] ?. default ??
52- pkg . exports ?. [ `./${ relativePath } ` ] ??
53- pkg . exports ?. [ '.' ] ?. import ?. default ??
54- pkg . exports ?. [ '.' ] ?. import ??
55- pkg . exports ?. [ '.' ] ?. [ 0 ] ?. import ??
56- pkg . exports ?. [ '.' ] ?. default ??
57- pkg . exports ?. [ '.' ] ??
49+ const pkgExport = relativePath
50+ ? pkg . exports ?. [ `./${ relativePath } ` ]
51+ : pkg . exports ?. [ '.' ] ;
52+ return pkgExport ?. import ?. default ??
53+ pkgExport ?. import ??
54+ pkgExport ?. [ 0 ] ?. import ??
55+ pkgExport ?. default ??
56+ pkgExport ??
5857 ( relativePath || pkg . main ) ;
5958 } ,
6059 } ,
You can’t perform that action at this time.
0 commit comments