dbg_swc/es/minifier/next/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use std::sync::Arc;

use anyhow::Result;
use clap::Subcommand;
use swc_common::SourceMap;

use self::check_size::CheckSizeCommand;

mod check_size;

/// [Experimental] Debug the minifier issue related to next.js application.
#[derive(Debug, Subcommand)]
pub enum NextCommand {
    CheckSize(CheckSizeCommand),
}

impl NextCommand {
    pub fn run(self, cm: Arc<SourceMap>) -> Result<()> {
        match self {
            NextCommand::CheckSize(cmd) => cmd.run(cm),
        }
    }
}