Interface: PartialResolvedId
Defined in: plugin/index.ts:98
Extends
SpecifiedModuleOptions.Partial<PartialNull<ModuleOptions>>
Properties
external?
- Type:
boolean|"absolute"|"relative" - Optional
Defined in: plugin/index.ts:113
Whether this id should be treated as external.
Relative external ids, i.e. ids starting with ./ or ../, will not be internally converted to an absolute id and converted back to a relative id in the output, but are instead included in the output unchanged. If you want relative ids to be re-normalized and deduplicated instead, return an absolute file system location as id and choose external: "relative".
- If
true, absolute ids will be converted to relative ids based on the user's choice for themakeAbsoluteExternalsRelativeoption. - If
'relative', absolute ids will always be converted to relative ids. - If
'absolute', absolute ids will always be kept as absolute ids.
id
- Type:
string
Defined in: plugin/index.ts:114
invalidate?
- Type:
boolean|null - Optional
Defined in: plugin/index.ts:67
Inherited from
meta?
- Type:
CustomPluginOptions|null - Optional
Defined in: plugin/index.ts:64
See Custom module meta-data section for more details.
Inherited from
moduleSideEffects?
- Type:
ModuleSideEffects - Optional
Defined in: plugin/index.ts:94
Indicates whether the module has side effects to Rolldown.
- If
falseis set and no other module imports anything from this module, then this module will not be included in the bundle even if the module would have side effects. - If
trueis set, Rolldown will use its default algorithm to include all statements in the module that has side effects. - If
"no-treeshake"is set, treeshaking will be disabled for this module, and this module will be included in one of the chunks even if it is empty.
The precedence of this option is as follows (highest to lowest):
transformhook's returnedmoduleSideEffectsoptionloadhook's returnedmoduleSideEffectsoptionresolveIdhook's returnedmoduleSideEffectsoptiontreeshake.moduleSideEffectsoptionsideEffectsfield in thepackage.jsonfiletrue(default)
Inherited from
SpecifiedModuleOptions.moduleSideEffects
packageJsonPath?
- Type:
string|null - Optional
Defined in: plugin/index.ts:68