Skip to content

Commit

Permalink
feat(transformer): enable the react refresh plugin in enable_all
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Sep 9, 2024
1 parent 413d918 commit 1d1ec5b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/oxc_transformer/src/options/transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use crate::{
react::ReactOptions,
regexp::RegExpOptions,
typescript::TypeScriptOptions,
ReactRefreshOptions,
};

/// <https://babel.dev/docs/options>
Expand Down Expand Up @@ -61,7 +62,11 @@ impl TransformOptions {
cwd: PathBuf::new(),
assumptions: CompilerAssumptions::default(),
typescript: TypeScriptOptions::default(),
react: ReactOptions { development: true, ..ReactOptions::default() },
react: ReactOptions {
development: true,
refresh: Some(ReactRefreshOptions::default()),
..ReactOptions::default()
},
regexp: RegExpOptions {
sticky_flag: true,
unicode_flag: true,
Expand Down

0 comments on commit 1d1ec5b

Please sign in to comment.