Skip to content

Commit

Permalink
feat(npm): add named consola export for consola v3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 10, 2023
1 parent 080cf5b commit 7e67d71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/runtime/npm/consola.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import mock from "../mock/proxy";

export default mock.__createMock__("consola", {
export const consola = mock.__createMock__("consola", {
...console,
});
})

export default consola;

0 comments on commit 7e67d71

Please sign in to comment.