mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
feat(transformer): enable the react refresh plugin in enable_all (#5630)
This commit is contained in:
parent
3e8b96f165
commit
95a6d9984c
1 changed files with 6 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ use crate::{
|
|||
react::ReactOptions,
|
||||
regexp::RegExpOptions,
|
||||
typescript::TypeScriptOptions,
|
||||
ReactRefreshOptions,
|
||||
};
|
||||
|
||||
/// <https://babel.dev/docs/options>
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue