Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 27, 2021
1 parent 4e08b13 commit ce826a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ export function registerTSXLegacyModuleInterop(hookOptions?: HookOptions): Rever
}

export function registerAll(hookOptions?: HookOptions): RevertFunction {
const functions = [
const reverts = [
registerJS(hookOptions),
registerJSX(hookOptions),
registerTS(hookOptions),
registerTSX(hookOptions),
];

return () => {
functions.forEach((fn) => {
reverts.forEach((fn) => {
fn();
});
};
Expand Down

0 comments on commit ce826a3

Please sign in to comment.