From 6a27974402103cff4c71e5a1f8925c01ddee4231 Mon Sep 17 00:00:00 2001 From: CCherry07 <2405693142@qq.com> Date: Wed, 23 Oct 2024 13:26:24 +0800 Subject: [PATCH] =?UTF-8?q?chore(rust-plugins):=20=F0=9F=A4=96=20dts=20to?= =?UTF-8?q?=20filename?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + rust-plugins/react-components/tests/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 05bb447..71e4361 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ | [url](rust-plugins/url) | Imports files as data-URIs or ES Modules. | | [virtual](rust-plugins/virtual) | Load virtual modules from memory | | [icons](rust-plugins/icons) | Load Access thousands of icons as components on-demand universally. (Inspired by [unplugin-icons](https://github.com/unplugin/unplugin-icons)) | +| [wasm](rust-plugins/wasm) | Add WebAssembly ESM integration support `wasm-pack` generated modules. | | | | ### JavaScript plugins diff --git a/rust-plugins/react-components/tests/mod.rs b/rust-plugins/react-components/tests/mod.rs index 48e6b70..43409c1 100644 --- a/rust-plugins/react-components/tests/mod.rs +++ b/rust-plugins/react-components/tests/mod.rs @@ -16,6 +16,7 @@ use farmfe_core::serde_json; use farmfe_plugin_react_components::find_local_components::ExportType; use farmfe_plugin_react_components::resolvers::ImportStyle; use farmfe_plugin_react_components::resolvers::ResolverOption; +use farmfe_plugin_react_components::Dts; use farmfe_plugin_react_components::ImportMode; use farmfe_plugin_react_components::{FarmPluginReactComponents, Options}; #[test] @@ -51,12 +52,11 @@ fn transform() { // let resolvers_components = get_resolvers_result(&root_path.to_string_lossy().to_string(), resolvers.to_vec()); let option = Options { dirs: Some(vec![ConfigRegex::new("src/components")]), - dts: Some(true), + dts: Some(Dts::Bool(true)), import_mode: Some(ImportMode::Relative), local: Some(true), include: None, exclude: None, - filename: None, resolvers: Some(resolvers.to_vec()), }; let option = serde_json::to_string(&option).unwrap();