rolldown_error 0.1.0

rolldown_error
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{types::diagnostic_options::DiagnosticOptions, types::event_kind::EventKind};

use super::BuildEvent;

#[derive(Debug)]
pub struct InvalidDefineConfig {
  pub message: String,
}

impl BuildEvent for InvalidDefineConfig {
  fn kind(&self) -> crate::types::event_kind::EventKind {
    EventKind::InvalidDefineConfigError
  }

  fn message(&self, _opts: &DiagnosticOptions) -> String {
    self.message.clone()
  }
}