@midwayjs/coreClassesCommonJSFileDetector版本:Next本页总览CommonJSFileDetector CommonJS module loaderHierarchyAbstractFileDetector<{ conflictCheck?: boolean; ignore?: string | string[]; loadDir?: string | string[]; namespace?: string; pattern?: string | string[] }>CommonJSFileDetectorESModuleFileDetectorIndex ConstructorsconstructorPropertiesextraDetectorOptionsoptionsMethodsgetTypeloadAsyncloadSyncrunsetExtraDetectorOptionsConstructors constructornew CommonJSFileDetector(options?: { conflictCheck?: boolean; ignore?: string | string[]; loadDir?: string | string[]; namespace?: string; pattern?: string | string[] }): CommonJSFileDetectorProperties extraDetectorOptionsextraDetectorOptions: { conflictCheck?: boolean; ignore?: string | string[]; loadDir?: string | string[]; namespace?: string; pattern?: string | string[] }optionsoptions: { conflictCheck?: boolean; ignore?: string | string[]; loadDir?: string | string[]; namespace?: string; pattern?: string | string[] }Methods getTypegetType(): commonjs | moduleloadAsyncloadAsync(container: any): Promise<void>loadSyncloadSync(container: any): voidrunrun(container: any): void | Promise<void>setExtraDetectorOptionssetExtraDetectorOptions(detectorOptions: { conflictCheck?: boolean; ignore?: string | string[]; loadDir?: string | string[]; namespace?: string; pattern?: string | string[] }): void
CommonJS module loader