Skip to content

Commit

Permalink
Use default export for ErrorStackParser module
Browse files Browse the repository at this point in the history
  • Loading branch information
eriwen committed Jun 6, 2022
1 parent ef819de commit 0aae8a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion error-stack-parser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ declare namespace ErrorStackParser {
export function parse(error: Error): StackFrame[];
}

export = ErrorStackParser;
export default ErrorStackParser;
2 changes: 1 addition & 1 deletion error-stack-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
if (typeof define === 'function' && define.amd) {
define('error-stack-parser', ['stackframe'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('stackframe'));
module.exports.default = factory(require('stackframe'));
} else {
root.ErrorStackParser = factory(root.StackFrame);
}
Expand Down

0 comments on commit 0aae8a5

Please sign in to comment.