Skip to content

Commit cec5b37

Browse files
committed
Fixes for default
1 parent 9b0046d commit cec5b37

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

dist/show-js-error.custom.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*! show-js-error | © 2019 Denis Seleznev | MIT License */
22
(function (global, factory) {
3-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
5-
(global = global || self, factory(global.showJSError = {}));
6-
}(this, function (exports) { 'use strict';
3+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4+
typeof define === 'function' && define.amd ? define(factory) :
5+
(global = global || self, global.showJSError = factory());
6+
}(this, function () { 'use strict';
77

88
var showJSError = { // eslint-disable-line no-unused-vars
99
/**
@@ -535,8 +535,6 @@
535535
}
536536
};
537537

538-
exports.showJSError = showJSError;
539-
540-
Object.defineProperty(exports, '__esModule', { value: true });
538+
return showJSError;
541539

542540
}));

dist/show-js-error.custom.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/show-js-error.custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default as showJSError } from './main';
1+
export { default as default } from './main';

0 commit comments

Comments
 (0)