Interface: RolldownLog
Defined in: packages/rolldown/src/log/logging.ts:8
Extended by
Properties
binding?
- Type:
string - Optional
Defined in: packages/rolldown/src/log/logging.ts:9
cause?
- Type:
unknown - Optional
Defined in: packages/rolldown/src/log/logging.ts:10
code?
- Type:
string - Optional
Defined in: packages/rolldown/src/log/logging.ts:18
The log code for this log object.
For errors / warnings / logs from plugins, it is always PLUGIN_ERROR / PLUGIN_WARNING / PLUGIN_LOG. If a plugin sets a code to identify a specific warning, Rolldown copies that code to pluginCode.
Example
ts
'PLUGIN_ERROR'exporter?
- Type:
string - Optional
Defined in: packages/rolldown/src/log/logging.ts:19
frame?
- Type:
string - Optional
Defined in: packages/rolldown/src/log/logging.ts:20
hook?
- Type:
string - Optional
Defined in: packages/rolldown/src/log/logging.ts:21
id?
- Type:
string - Optional
Defined in: packages/rolldown/src/log/logging.ts:22
ids?
- Type:
string[] - Optional
Defined in: packages/rolldown/src/log/logging.ts:23
loc?
- Type: object with the properties below
- Optional
Defined in: packages/rolldown/src/log/logging.ts:24
column
- Type:
number
file?
- Type:
string - Optional
line
- Type:
number
message
- Type:
string
Defined in: packages/rolldown/src/log/logging.ts:33
The message for this log object.
Example
ts
'The "transform" hook used by the output plugin "rolldown-plugin-foo" is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.'meta?
- Type:
any - Optional
Defined in: packages/rolldown/src/log/logging.ts:34
names?
- Type:
string[] - Optional
Defined in: packages/rolldown/src/log/logging.ts:35
plugin?
- Type:
string - Optional
Defined in: packages/rolldown/src/log/logging.ts:41
The name of the plugin that caused this log.
This is set by Rolldown automatically when a plugin causes a log.
pluginCode?
- Type:
unknown - Optional
Defined in: packages/rolldown/src/log/logging.ts:45
The code set by the plugin that caused this log.
pos?
- Type:
number - Optional
Defined in: packages/rolldown/src/log/logging.ts:46
reexporter?
- Type:
string - Optional
Defined in: packages/rolldown/src/log/logging.ts:47
stack?
- Type:
string - Optional
Defined in: packages/rolldown/src/log/logging.ts:48
url?
- Type:
string - Optional
Defined in: packages/rolldown/src/log/logging.ts:49