8000 Use default export for ErrorStackParser module · stacktracejs/error-stack-parser@0aae8a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0aae8a5

Browse files
committed
Use default export for ErrorStackParser module
1 parent ef819de commit 0aae8a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

error-stack-parser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ declare namespace ErrorStackParser {
1616
export function parse(error: Error): StackFrame[];
1717
}
1818

19-
export = ErrorStackParser;
19+
export default ErrorStackParser;

error-stack-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
if (typeof define === 'function' && define.amd) {
77
define('error-stack-parser', ['stackframe'], factory);
88
} else if (typeof exports === 'object') {
9-
module.exports = factory(require('stackframe'));
9+
module.exports.default = factory(require('stackframe'));
1010
} else {
1111
root.ErrorStackParser = factory(root.StackFrame);
1212
}

0 commit comments

Comments
 (0)
0