Skip to content

Commit

Permalink
[gem] Improve hmr
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Jan 1, 2025
1 parent f4c5fbc commit 56be1a1
Show file tree
Hide file tree
Showing 9 changed files with 634 additions and 170 deletions.
19 changes: 19 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Folder-specific settings
//
// For a full list of overridable settings, and general information on folder-specific settings,
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
{
"auto_install_extension": {
"biome": true,
"emmet": true,
"toml": true,
"html": true,
"gem": true
},
"tab_size": 2,
"languages": {
"Rust": {
"tab_size": 4
}
}
}
2 changes: 1 addition & 1 deletion crates/swc-plugin-gem/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swc-plugin-gem",
"version": "0.1.5",
"version": "0.1.6",
"description": "swc plugin for Gem",
"keywords": [
"swc-plugin",
Expand Down
2 changes: 1 addition & 1 deletion crates/swc-plugin-gem/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub fn process_transform(mut program: Program, data: TransformPluginProgramMetad
},
Optional {
enabled: config.hmr,
visitor: hmr_transform(),
visitor: hmr_transform(filename.clone()),
},
));

Expand Down
Loading

0 comments on commit 56be1a1

Please sign in to comment.