@modern-js/plugin-module-node-polyfill 2.37.2 → 2.38.0
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/dist/globals.js +7 -45
- package/package.json +4 -4
package/dist/globals.js
CHANGED
|
@@ -1,47 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var globals_exports = {};
|
|
30
|
-
__export(globals_exports, {
|
|
31
|
-
buffer: () => buffer,
|
|
32
|
-
console: () => import_console_browserify.default,
|
|
33
|
-
process: () => import_browser.default
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(globals_exports);
|
|
36
|
-
var import_buffer = __toESM(require("buffer"));
|
|
37
|
-
var import_browser = __toESM(require("process/browser"));
|
|
38
|
-
var import_console_browserify = __toESM(require("console-browserify"));
|
|
1
|
+
import Buffer from 'buffer';
|
|
2
|
+
import processBrowser from 'process/browser';
|
|
3
|
+
import console from 'console-browserify';
|
|
4
|
+
|
|
39
5
|
const buffer = {
|
|
40
|
-
Buffer
|
|
6
|
+
Buffer,
|
|
41
7
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
buffer,
|
|
45
|
-
console,
|
|
46
|
-
process
|
|
47
|
-
});
|
|
8
|
+
|
|
9
|
+
export { processBrowser as process, buffer, console };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/plugin-module-node-polyfill",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.38.0",
|
|
4
4
|
"description": "The node polyfill plugin of Modern.js Module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^14",
|
|
50
50
|
"typescript": "^5",
|
|
51
|
-
"@modern-js/module-tools": "2.
|
|
52
|
-
"@scripts/build": "2.
|
|
51
|
+
"@modern-js/module-tools": "2.38.0",
|
|
52
|
+
"@scripts/build": "2.38.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@modern-js/module-tools": "^2.
|
|
55
|
+
"@modern-js/module-tools": "^2.38.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@modern-js/module-tools": {
|