Skip to content

Interface: RolldownLog ​

Extended by ​

Properties ​

binding? ​

  • Type: string
  • Optional

cause? ​

  • Type: unknown
  • Optional

code? ​

  • Type: string
  • Optional

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

frame? ​

  • Type: string
  • Optional

hook? ​

  • Type: string
  • Optional

id? ​

  • Type: string
  • Optional

ids? ​

  • Type: string[]
  • Optional

loc? ​

  • Type: object with the properties below
  • Optional

column ​

  • Type: number

file? ​

  • Type: string
  • Optional

line ​

  • Type: number

message ​

  • Type: string

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

names? ​

  • Type: string[]
  • Optional

plugin? ​

  • Type: string
  • Optional

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

The code set by the plugin that caused this log.


pos? ​

  • Type: number
  • Optional

reexporter? ​

  • Type: string
  • Optional

stack? ​

  • Type: string
  • Optional

url? ​

  • Type: string
  • Optional

Was this page helpful?