mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
fix(es): Make ErrorConfig.filename
default to true (#4150)
This commit is contained in:
parent
d8abd9d2aa
commit
7a1dcb1b93
@ -1291,12 +1291,16 @@ fn default_jsonify_min_cost() -> usize {
|
||||
1024
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Clone, Copy, Serialize, Deserialize)]
|
||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields, rename_all = "camelCase")]
|
||||
pub struct ErrorConfig {
|
||||
#[serde(default = "true_by_default")]
|
||||
pub filename: bool,
|
||||
}
|
||||
impl Default for ErrorConfig {
|
||||
fn default() -> Self {
|
||||
ErrorConfig { filename: true }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields, rename_all = "camelCase")]
|
||||
|
@ -100,6 +100,7 @@ macro_rules! semi {
|
||||
};
|
||||
}
|
||||
|
||||
///
|
||||
/// - `srcmap!(true)` for start (span.lo)
|
||||
/// - `srcmap!(false)` for end (span.hi)
|
||||
macro_rules! srcmap {
|
||||
|
Loading…
Reference in New Issue
Block a user