Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove useless dependencies #1595

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 14 additions & 122 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions crates/mako/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,8 @@ mimalloc-rust = { workspace = true }
tikv-jemallocator = { workspace = true }

[dev-dependencies]
insta = { version = "1.30.0", features = ["yaml"] }
maplit = "1.0.2"
swc_ecma_transforms_testing = "0.136.2"
testing = "0.35.10"
insta = { version = "1.30.0", features = ["yaml"] }
maplit = "1.0.2"

[features]
profile = ["dep:eframe", "dep:puffin", "dep:puffin_egui"]
2 changes: 1 addition & 1 deletion crates/mako/src/build/transform.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::sync::Arc;

use anyhow::Result;
use swc_core::base::try_with_handler;
use swc_core::common::errors::HANDLER;
use swc_core::common::GLOBALS;
use swc_core::css::ast::{AtRule, AtRulePrelude, ImportHref, Rule, Str, Stylesheet, UrlValue};
Expand All @@ -16,7 +17,6 @@ use swc_core::ecma::transforms::optimization::simplifier;
use swc_core::ecma::transforms::optimization::simplify::{dce, Config as SimpilifyConfig};
use swc_core::ecma::transforms::proposal::decorators;
use swc_core::ecma::visit::{Fold, VisitMut};
use swc_error_reporters::handler::try_with_handler;

use crate::ast::css_ast::CssAst;
use crate::ast::file::File;
Expand Down
1 change: 0 additions & 1 deletion crates/mako/src/generate/chunk_pot/str_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ mod tests {
use swc_core::ecma::transforms::base::hygiene::hygiene_with_config;
use swc_core::ecma::transforms::base::{hygiene, resolver};
use swc_core::ecma::visit::VisitMutWith;
use testing::assert_eq;

use super::{merge_code_and_sourcemap, EmittedWithMapping};
use crate::ast::js_ast::JsAst;
Expand Down
2 changes: 1 addition & 1 deletion crates/mako/src/generate/minify.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::sync::Arc;

use anyhow::Result;
use swc_core::base::try_with_handler;
use swc_core::common::errors::HANDLER;
use swc_core::common::GLOBALS;
use swc_core::css::ast::Stylesheet;
Expand All @@ -11,7 +12,6 @@ use swc_core::ecma::transforms::base::fixer::fixer;
use swc_core::ecma::transforms::base::helpers::{Helpers, HELPERS};
use swc_core::ecma::transforms::base::resolver;
use swc_core::ecma::visit::VisitMutWith;
use swc_error_reporters::handler::try_with_handler;

use crate::ast::js_ast::JsAst;
use crate::compiler::Context;
Expand Down
2 changes: 1 addition & 1 deletion crates/mako/src/generate/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::time::Instant;

use anyhow::{Error, Result};
use regex::Regex;
use swc_core::base::try_with_handler;
use swc_core::common::errors::HANDLER;
use swc_core::common::GLOBALS;
use swc_core::css::ast;
Expand All @@ -16,7 +17,6 @@ use swc_core::ecma::transforms::base::hygiene::hygiene_with_config;
use swc_core::ecma::transforms::module::import_analysis::import_analyzer;
use swc_core::ecma::transforms::module::util::ImportInterop;
use swc_core::ecma::visit::VisitMutWith;
use swc_error_reporters::handler::try_with_handler;
use tracing::debug;

use crate::ast::js_ast::JsAst;
Expand Down
2 changes: 1 addition & 1 deletion crates/mako/src/plugins/bundless_compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use std::sync::Arc;
use anyhow::{anyhow, Result};
use pathdiff::diff_paths;
use rayon::prelude::*;
use swc_core::base::try_with_handler;
use swc_core::common::errors::HANDLER;
use swc_core::common::GLOBALS;
use swc_core::ecma::transforms::base::fixer::fixer;
Expand All @@ -16,7 +17,6 @@ use swc_core::ecma::transforms::base::hygiene::hygiene_with_config;
use swc_core::ecma::transforms::module::import_analysis::import_analyzer;
use swc_core::ecma::transforms::module::util::ImportInterop;
use swc_core::ecma::visit::VisitMutWith;
use swc_error_reporters::handler::try_with_handler;
use tracing::warn;

use crate::ast::js_ast::JsAst;
Expand Down
Loading