mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +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> {
|
enum RefreshIdentifierResolver<'a> {
|
||||||
/// Simple IdentifierReference (e.g. `$RefreshReg$`)
|
/// Simple IdentifierReference (e.g. `$RefreshReg$`)
|
||||||
Identifier(IdentifierReference<'a>),
|
Identifier(IdentifierReference<'a>),
|
||||||
/// StaticMemberExpression (object, property) (e.g. `window.$RefreshReg$`)
|
/// StaticMemberExpression (object, property) (e.g. `window.$RefreshReg$`)
|
||||||
Member((IdentifierReference<'a>, IdentifierName<'a>)),
|
Member((IdentifierReference<'a>, IdentifierName<'a>)),
|
||||||
/// Used for `import.meta` expression (e.g. `import.meta.$RefreshReg$`)
|
/// Used for `import.meta` expression (e.g. `import.meta.$RefreshReg$`)
|
||||||
Expression(Expression<'a>),
|
Expression(Expression<'a>),
|
||||||
|
|
@ -849,10 +849,10 @@ impl<'a, 'ctx> ReactRefresh<'a, 'ctx> {
|
||||||
// babel-plugin-styled-components)
|
// babel-plugin-styled-components)
|
||||||
}
|
}
|
||||||
Expression::CallExpression(call_expr) => {
|
Expression::CallExpression(call_expr) => {
|
||||||
let is_import_expression = match call_expr.callee.get_inner_expression() {
|
let is_import_expression = match call_expr.callee.get_inner_expression() {
|
||||||
Expression::ImportExpression(_) => {
|
Expression::ImportExpression(_) => {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
Expression::Identifier(ident) => {
|
Expression::Identifier(ident) => {
|
||||||
ident.name.starts_with("require")
|
ident.name.starts_with("require")
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue