Interface: ModuleInfo
Defined in: types/module-info.ts:4
Extends
Properties
code
- Type:
string|null
Defined in: types/module-info.ts:14
The source code of the module.
null if external or not yet available.
dynamicallyImportedIds
- Type:
string[]
Defined in: types/module-info.ts:34
The module ids dynamically imported by this module.
dynamicImporters
- Type:
string[]
Defined in: types/module-info.ts:26
The ids of all modules that dynamically import this module.
exports
- Type:
string[]
Defined in: types/module-info.ts:38
All exported variables
id
- Type:
string
Defined in: types/module-info.ts:18
The id of the module for convenience
importedIds
- Type:
string[]
Defined in: types/module-info.ts:30
The module ids statically imported by this module.
importers
- Type:
string[]
Defined in: types/module-info.ts:22
The ids of all modules that statically import this module.
inputFormat
- Type:
"es"|"cjs"|"unknown" - Experimental
Defined in: types/module-info.ts:52
The detected format of the module, based on both its syntax and module definition metadata (such as package.json type and file extensions like .mjs/.cjs/.mts/.cts).
- "esm" for ES modules (has
import/exportstatements or is defined as ESM by module metadata) - "cjs" for CommonJS modules (uses
module.exports,exports, top-levelreturn, or is defined as CommonJS by module metadata) - "unknown" when the format could not be determined from either syntax or module definition metadata
invalidate?
- Type:
boolean - Optional
Defined in: plugin/index.ts:67
Inherited from
isEntry
- Type:
boolean
Defined in: types/module-info.ts:42
Whether this module is a user- or plugin-defined entry point.
meta
- Type:
CustomPluginOptions
Defined in: plugin/index.ts:64
See Custom module meta-data section for more details.
Inherited from
moduleSideEffects
- Type:
ModuleSideEffects
Defined in: plugin/index.ts:62
Inherited from
ModuleOptions.moduleSideEffects
packageJsonPath?
- Type:
string - Optional
Defined in: plugin/index.ts:68