Skip to content

Commit ec7d97d

Browse files
committed
chore: bump version
1 parent 359a7f0 commit ec7d97d

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/lib.rs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,22 @@
22

33
use std::{
44
env,
5-
path::{Path, PathBuf},
5+
path::Path,
66
sync::Arc,
77
};
88

99
use farmfe_core::{
1010
config::{config_regex::ConfigRegex, Config},
1111
context::CompilationContext,
1212
error::CompilationError,
13-
plugin::{Plugin, PluginProcessModuleHookParam, PluginTransformHookResult},
14-
swc_common::{comments::NoopComments, BytePos, Mark, SourceMap, DUMMY_SP},
15-
swc_ecma_ast::{self, Expr, Ident, Lit, MemberExpr, MemberProp, Module, Str},
16-
swc_ecma_parser::{EsConfig, Parser, StringInput, Syntax},
13+
plugin::{Plugin, PluginProcessModuleHookParam},
14+
swc_common::DUMMY_SP,
15+
swc_ecma_ast::{self, Expr, Lit, MemberExpr, MemberProp, Module, Str},
1716
};
1817

1918
use farmfe_macro_plugin::farm_plugin;
2019
use farmfe_toolkit::{
21-
common::{create_swc_source_map, PathFilter, Source},
22-
script::swc_try_with::try_with,
23-
swc_ecma_codegen::{self, text_writer::JsWriter, Emitter},
24-
swc_ecma_transforms::{helpers::inject_helpers, typescript::tsx},
20+
common::PathFilter,
2521
swc_ecma_visit::{VisitMut, VisitMutWith},
2622
};
2723
use serde;
@@ -47,7 +43,7 @@ impl Default for ReplaceDirnameOptions {
4743
}
4844

4945
impl FarmPluginReplaceDirname {
50-
fn new(config: &Config, options: String) -> Self {
46+
fn new(_: &Config, options: String) -> Self {
5147
let options: ReplaceDirnameOptions = serde_json::from_str(&options).unwrap_or_default();
5248
Self { options }
5349
}
@@ -61,7 +57,7 @@ impl Plugin for FarmPluginReplaceDirname {
6157
fn process_module(
6258
&self,
6359
param: &mut PluginProcessModuleHookParam,
64-
context: &Arc<CompilationContext>,
60+
_: &Arc<CompilationContext>,
6561
) -> Result<Option<()>, CompilationError> {
6662
let filter = PathFilter::new(&self.options.include, &self.options.exclude);
6763
if !filter.execute(&param.module_id.relative_path()) {

0 commit comments

Comments
 (0)