mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
style(transformer/react-refresh): fix whitespace (#6813)
Style nit. Fix whitespace/indentation. Not sure why `rustfmt` didn't do this automatically.
This commit is contained in:
parent
759710aa66
commit
871b9f5abc
1 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ use super::options::ReactRefreshOptions;
|
|||
enum RefreshIdentifierResolver<'a> {
|
||||
/// Simple IdentifierReference (e.g. `$RefreshReg$`)
|
||||
Identifier(IdentifierReference<'a>),
|
||||
/// StaticMemberExpression (object, property) (e.g. `window.$RefreshReg$`)
|
||||
/// StaticMemberExpression (object, property) (e.g. `window.$RefreshReg$`)
|
||||
Member((IdentifierReference<'a>, IdentifierName<'a>)),
|
||||
/// Used for `import.meta` expression (e.g. `import.meta.$RefreshReg$`)
|
||||
Expression(Expression<'a>),
|
||||
|
|
@ -849,10 +849,10 @@ impl<'a, 'ctx> ReactRefresh<'a, 'ctx> {
|
|||
// babel-plugin-styled-components)
|
||||
}
|
||||
Expression::CallExpression(call_expr) => {
|
||||
let is_import_expression = match call_expr.callee.get_inner_expression() {
|
||||
Expression::ImportExpression(_) => {
|
||||
let is_import_expression = match call_expr.callee.get_inner_expression() {
|
||||
Expression::ImportExpression(_) => {
|
||||
true
|
||||
}
|
||||
}
|
||||
Expression::Identifier(ident) => {
|
||||
ident.name.starts_with("require")
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue