Skip to content

Commit 98beb71

Browse files
committed
Fix umd build for node
1 parent f2842b9 commit 98beb71

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

dist/js-joda-extra.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
exports["JSJodaExtra"] = factory(require("js-joda"));
1313
else
1414
root["JSJodaExtra"] = factory(root["JSJoda"]);
15-
})(window, function(__WEBPACK_EXTERNAL_MODULE_js_joda__) {
15+
})(this, function(__WEBPACK_EXTERNAL_MODULE_js_joda__) {
1616
return /******/ (function(modules) { // webpackBootstrap
1717
/******/ // The module cache
1818
/******/ var installedModules = {};

dist/js-joda-extra.js.map

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

dist/js-joda-extra.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.

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = {
2929
filename: minify ? 'js-joda-extra.min.js' : 'js-joda-extra.js',
3030
libraryTarget: 'umd',
3131
library: 'JSJodaExtra',
32+
globalObject: 'this',
3233
},
3334
externals: {
3435
'js-joda': {

0 commit comments

Comments
 (0)