@@ -64,8 +64,8 @@ export default function commonjs(options = {}) {
6464 typeof esmExternals === 'function'
6565 ? esmExternals
6666 : Array . isArray ( esmExternals )
67- ? ( ( esmExternalIds = new Set ( esmExternals ) ) , ( id ) => esmExternalIds . has ( id ) )
68- : ( ) => esmExternals ;
67+ ? ( ( esmExternalIds = new Set ( esmExternals ) ) , ( id ) => esmExternalIds . has ( id ) )
68+ : ( ) => esmExternals ;
6969
7070 const getDefaultIsModuleExports =
7171 typeof defaultIsModuleExportsOption === 'function'
@@ -87,18 +87,18 @@ export default function commonjs(options = {}) {
8787 typeof options . ignore === 'function'
8888 ? options . ignore
8989 : Array . isArray ( options . ignore )
90- ? ( id ) => options . ignore . includes ( id )
91- : ( ) => false ;
90+ ? ( id ) => options . ignore . includes ( id )
91+ : ( ) => false ;
9292
9393 const getIgnoreTryCatchRequireStatementMode = ( id ) => {
9494 const mode =
9595 typeof options . ignoreTryCatch === 'function'
9696 ? options . ignoreTryCatch ( id )
9797 : Array . isArray ( options . ignoreTryCatch )
98- ? options . ignoreTryCatch . includes ( id )
99- : typeof options . ignoreTryCatch !== 'undefined'
100- ? options . ignoreTryCatch
101- : true ;
98+ ? options . ignoreTryCatch . includes ( id )
99+ : typeof options . ignoreTryCatch !== 'undefined'
100+ ? options . ignoreTryCatch
101+ : true ;
102102
103103 return {
104104 canConvertRequire : mode !== 'remove' && mode !== true ,
@@ -193,8 +193,8 @@ export default function commonjs(options = {}) {
193193 const plugins = Array . isArray ( rawOptions . plugins )
194194 ? [ ...rawOptions . plugins ]
195195 : rawOptions . plugins
196- ? [ rawOptions . plugins ]
197- : [ ] ;
196+ ? [ rawOptions . plugins ]
197+ : [ ] ;
198198 plugins . unshift ( {
199199 name : 'commonjs--resolver' ,
200200 resolveId
0 commit comments