Skip to content

Commit 62e2700

Browse files
committed
Revert using default export for module definition
1 parent c339695 commit 62e2700

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

stackframe.d.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
// Definitions by: Eric Wendelin <https://www.eriwen.com>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55

6+
export as namespace StackFrame; // global for non-module UMD users
7+
8+
export = StackFrame;
9+
610
declare namespace StackFrame {
711
export interface StackFrameOptions {
812
isConstructor?: boolean;
@@ -68,5 +72,3 @@ declare class StackFrame {
6872

6973
toString(): string;
7074
}
71-
72-
export default StackFrame;

stackframe.js

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

0 commit comments

Comments
 (0)