Skip to content

Commit

Permalink
chore(rust-plugins): 🤖 dts to filename
Browse files Browse the repository at this point in the history
  • Loading branch information
CCherry07 committed Oct 23, 2024
1 parent 1138f20 commit 6a27974
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions rust-plugins/react-components/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 6a27974

Please sign in to comment.