Interface: ResolvedId
Defined in: packages/rolldown/src/plugin/index.ts:119
Extends
Properties
description?
- Type:
string - Optional
Defined in: packages/rolldown/src/plugin/index.ts:111
A short, human-readable description of the module.
This is useful for virtual modules, whose ids (e.g. \0vite/modulepreload-polyfill.js) do not convey their purpose on their own.
Example
js
function polyfillPlugin() {
return {
name: 'vite:modulepreload-polyfill',
load: {
filter: { id: /^\0vite/modulepreload-polyfill\.js$/ },
handler(id) {
return {
code: '',
description: 'A polyfill for `link` tag with `rel="modulepreload"`',
};
}
},
};
}Inherited from
external
- Type:
boolean|"absolute"
Defined in: packages/rolldown/src/plugin/index.ts:120
id
- Type:
string
Defined in: packages/rolldown/src/plugin/index.ts:121
invalidate?
- Type:
boolean - Optional
Defined in: packages/rolldown/src/plugin/index.ts:114
Inherited from
meta
- Type:
CustomPluginOptions
Defined in: packages/rolldown/src/plugin/index.ts:86
See Custom module meta-data section for more details.
Inherited from
moduleSideEffects
- Type:
ModuleSideEffects
Defined in: packages/rolldown/src/plugin/index.ts:84
Inherited from
ModuleOptions.moduleSideEffects
packageJsonPath?
- Type:
string - Optional
Defined in: packages/rolldown/src/plugin/index.ts:115