@epublishing/grunt-epublishing 0.2.61 → 0.2.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tasks/jade.js +16 -0
package/package.json
CHANGED
package/tasks/jade.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
|
|
3
|
+
if (typeof globalThis === 'undefined') {
|
|
4
|
+
(function() {
|
|
5
|
+
if (typeof self !== 'undefined') { self.globalThis = self; }
|
|
6
|
+
else if (typeof window !== 'undefined') { window.globalThis = window; }
|
|
7
|
+
else if (typeof global !== 'undefined') { global.globalThis = global; }
|
|
8
|
+
else {
|
|
9
|
+
Object.defineProperty(Object.prototype, 'globalThis', {
|
|
10
|
+
get: function() {
|
|
11
|
+
return this;
|
|
12
|
+
},
|
|
13
|
+
configurable: true
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
})();
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
'use strict';
|
|
4
20
|
|
|
5
21
|
const path = require('path');
|