We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff99a79 commit 6c3a0bdCopy full SHA for 6c3a0bd
src/driver.rs
@@ -56,7 +56,17 @@ impl CompilerInterface for Driver {
56
}
57
58
fn transform_options(&self) -> Option<TransformOptions> {
59
- self.transform.then(|| TransformOptions::enable_all())
+ self.transform.then(|| {
60
+ let mut options = TransformOptions::enable_all();
61
+ // Turns off the refresh plugin because it is never idempotent
62
+ options.react.refresh = None;
63
+ // Enables `only_remove_type_imports` avoiding removing all unused imports
64
+ options.typescript.only_remove_type_imports = true;
65
+ // Unfinished plugins
66
+ options.es2018.object_rest_spread = None;
67
+
68
+ options
69
+ })
70
71
72
fn compress_options(&self) -> Option<CompressOptions> {
0 commit comments