Skip to content

Commit 8ddecc3

Browse files
author
pooya parsa
committed
fix: fix esm compatibility
1 parent 09274cf commit 8ddecc3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/consola.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { isLogObj } from './utils/index.js'
44
let paused = false
55
const queue = []
66

7-
export default class Consola {
7+
class Consola {
88
constructor (options = {}) {
99
this._reporters = options.reporters || []
1010
this._types = options.types || Types
@@ -283,3 +283,6 @@ Consola.prototype.mock = Consola.prototype.mockTypes
283283

284284
Consola.prototype.pause = Consola.prototype.pauseLogs
285285
Consola.prototype.resume = Consola.prototype.resumeLogs
286+
287+
// Export class
288+
export default Consola

0 commit comments

Comments
 (0)