@rspack/core 0.0.0-20221104052453 → 0.0.0-20221108071754
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 +6 -6
- package/dist/bundle.js +0 -1
- package/dist/main.js +0 -1
- package/dist/node/NodeEnvironmentPlugin.d.ts +0 -12
- package/dist/node/NodeEnvironmentPlugin.d.ts.map +0 -1
- package/dist/node/NodeEnvironmentPlugin.js +0 -31
- package/dist/node/NodeEnvironmentPlugin.js.map +0 -1
- package/dist/node/NodeWatchFileSystem.d.ts +0 -31
- package/dist/node/NodeWatchFileSystem.d.ts.map +0 -1
- package/dist/node/NodeWatchFileSystem.js +0 -148
- package/dist/node/NodeWatchFileSystem.js.map +0 -1
- package/dist/runtime.js +0 -1
- package/dist/watching.d.ts +0 -16
- package/dist/watching.d.ts.map +0 -1
- package/dist/watching.js +0 -27
- package/dist/watching.js.map +0 -1
- package/dist/web/nodeShim.d.ts +0 -5
- package/dist/web/nodeShim.d.ts.map +0 -1
- package/dist/web/nodeShim.js +0 -43
- package/dist/web/nodeShim.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20221108071754",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@rspack/core": "0.0.0-
|
|
10
|
+
"@rspack/core": "0.0.0-20221108071754",
|
|
11
11
|
"@swc/helpers": "^0.4.12",
|
|
12
12
|
"@types/jest": "29.0.2",
|
|
13
13
|
"@types/node": "^18.6.3",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"util": "0.12.5"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@rspack/binding": "0.0.0-
|
|
28
|
-
"@rspack/dev-client": "0.0.0-
|
|
29
|
-
"@rspack/plugin-less": "^0.0.0-
|
|
30
|
-
"@rspack/plugin-postcss": "^0.0.0-
|
|
27
|
+
"@rspack/binding": "0.0.0-20221108071754",
|
|
28
|
+
"@rspack/dev-client": "0.0.0-20221108071754",
|
|
29
|
+
"@rspack/plugin-less": "^0.0.0-20221108071754",
|
|
30
|
+
"@rspack/plugin-postcss": "^0.0.0-20221108071754",
|
|
31
31
|
"browserslist": "^4.21.3",
|
|
32
32
|
"chokidar": "3.5.3",
|
|
33
33
|
"tapable": "2.2.1",
|
package/dist/bundle.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__rspack_runtime__.__rspack_register__(["main"],{"./a.js":function(_,r,s,e,i){"use strict";_.exports=function(){return"This is a"}}}),self.__rspack_runtime__.__rspack_require__("./a.js");
|
package/dist/main.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__rspack_runtime__.__rspack_register__(["main"],{"./fixtures/a.js":function(_,r,s,e,i){"use strict";_.exports=function(){return"This is a"}}}),self.__rspack_runtime__.__rspack_require__("./fixtures/a.js");
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Compiler } from "../compiler";
|
|
2
|
-
import { InfrastructureLogging } from "../config/RspackOptions";
|
|
3
|
-
export declare class NodeEnvironmentPlugin {
|
|
4
|
-
options: {
|
|
5
|
-
infrastructureLogging: InfrastructureLogging;
|
|
6
|
-
};
|
|
7
|
-
constructor(options: {
|
|
8
|
-
infrastructureLogging: InfrastructureLogging;
|
|
9
|
-
});
|
|
10
|
-
apply(compiler: Compiler): void;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=NodeEnvironmentPlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeEnvironmentPlugin.d.ts","sourceRoot":"","sources":["../../src/node/NodeEnvironmentPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAKhE,qBAAa,qBAAqB;IAEzB,OAAO,EAAE;QACf,qBAAqB,EAAE,qBAAqB,CAAC;KAC7C;gBAFM,OAAO,EAAE;QACf,qBAAqB,EAAE,qBAAqB,CAAC;KAC7C;IAIF,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAiBxB"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NodeEnvironmentPlugin = void 0;
|
|
7
|
-
const createConsoleLogger_1 = __importDefault(require("../logging/createConsoleLogger"));
|
|
8
|
-
const nodeConsole_1 = __importDefault(require("./nodeConsole"));
|
|
9
|
-
const NodeWatchFileSystem_1 = require("./NodeWatchFileSystem");
|
|
10
|
-
class NodeEnvironmentPlugin {
|
|
11
|
-
constructor(options) {
|
|
12
|
-
this.options = options;
|
|
13
|
-
this.options = options;
|
|
14
|
-
}
|
|
15
|
-
apply(compiler) {
|
|
16
|
-
const { infrastructureLogging } = this.options;
|
|
17
|
-
compiler.infrastructureLogger = (0, createConsoleLogger_1.default)({
|
|
18
|
-
level: infrastructureLogging.level || "info",
|
|
19
|
-
debug: infrastructureLogging.debug || false,
|
|
20
|
-
console: infrastructureLogging.console ||
|
|
21
|
-
(0, nodeConsole_1.default)({
|
|
22
|
-
colors: infrastructureLogging.colors,
|
|
23
|
-
appendOnly: infrastructureLogging.appendOnly,
|
|
24
|
-
stream: infrastructureLogging.stream
|
|
25
|
-
})
|
|
26
|
-
});
|
|
27
|
-
compiler.watchFileSystem = new NodeWatchFileSystem_1.NodeWatchFileSystem(compiler.inputFileSystem);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.NodeEnvironmentPlugin = NodeEnvironmentPlugin;
|
|
31
|
-
//# sourceMappingURL=NodeEnvironmentPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeEnvironmentPlugin.js","sourceRoot":"","sources":["../../src/node/NodeEnvironmentPlugin.ts"],"names":[],"mappings":";;;;;;AAEA,yFAAiE;AACjE,gEAAwC;AACxC,+DAA4D;AAE5D,MAAa,qBAAqB;IACjC,YACQ,OAEN;QAFM,YAAO,GAAP,OAAO,CAEb;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IACD,KAAK,CAAC,QAAkB;QACvB,MAAM,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAC/C,QAAQ,CAAC,oBAAoB,GAAG,IAAA,6BAAmB,EAAC;YACnD,KAAK,EAAE,qBAAqB,CAAC,KAAK,IAAI,MAAM;YAC5C,KAAK,EAAE,qBAAqB,CAAC,KAAK,IAAI,KAAK;YAC3C,OAAO,EACN,qBAAqB,CAAC,OAAO;gBAC7B,IAAA,qBAAW,EAAC;oBACX,MAAM,EAAE,qBAAqB,CAAC,MAAM;oBACpC,UAAU,EAAE,qBAAqB,CAAC,UAAU;oBAC5C,MAAM,EAAE,qBAAqB,CAAC,MAAM;iBACpC,CAAC;SACH,CAAC,CAAC;QACH,QAAQ,CAAC,eAAe,GAAG,IAAI,yCAAmB,CACjD,QAAQ,CAAC,eAAe,CACxB,CAAC;IACH,CAAC;CACD;AAzBD,sDAyBC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare class NodeWatchFileSystem {
|
|
2
|
-
inputFileSystem: any;
|
|
3
|
-
watcherOptions: any;
|
|
4
|
-
watcher: any;
|
|
5
|
-
constructor(inputFileSystem: any);
|
|
6
|
-
/**
|
|
7
|
-
* @param {Iterable<string>} files watched files
|
|
8
|
-
* @param {Iterable<string>} directories watched directories
|
|
9
|
-
* @param {Iterable<string>} missing watched exitance entries
|
|
10
|
-
* @param {number} startTime timestamp of start time
|
|
11
|
-
* @param {WatchOptions} options options object
|
|
12
|
-
* @param {function(Error=, Map<string, FileSystemInfoEntry>, Map<string, FileSystemInfoEntry>, Set<string>, Set<string>): void} callback aggregated callback
|
|
13
|
-
* @param {function(string, number): void} callbackUndelayed callback when the first change was detected
|
|
14
|
-
* @returns {Watcher} a watcher
|
|
15
|
-
*/
|
|
16
|
-
watch(files: any, directories: any, missing: any, startTime: any, options: any, callback: any, callbackUndelayed: any): {
|
|
17
|
-
close: () => void;
|
|
18
|
-
pause: () => void;
|
|
19
|
-
getAggregatedRemovals: any;
|
|
20
|
-
getAggregatedChanges: any;
|
|
21
|
-
getFileTimeInfoEntries: any;
|
|
22
|
-
getContextTimeInfoEntries: any;
|
|
23
|
-
getInfo: () => {
|
|
24
|
-
changes: any;
|
|
25
|
-
removals: any;
|
|
26
|
-
fileTimeInfoEntries: Map<any, any>;
|
|
27
|
-
contextTimeInfoEntries: Map<any, any>;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=NodeWatchFileSystem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeWatchFileSystem.d.ts","sourceRoot":"","sources":["../../src/node/NodeWatchFileSystem.ts"],"names":[],"mappings":"AAQA,qBAAa,mBAAmB;IAC/B,eAAe,EAAE,GAAG,CAAC;IACrB,cAAc,EAAE,GAAG,CAAC;IACpB,OAAO,EAAE,GAAG,CAAC;gBACD,eAAe,KAAA;IAQ3B;;;;;;;;;OASG;IACH,KAAK,CACJ,KAAK,KAAA,EACL,WAAW,KAAA,EACX,OAAO,KAAA,EACP,SAAS,KAAA,EACT,OAAO,KAAA,EACP,QAAQ,KAAA,EACR,iBAAiB,KAAA;;;;;;;;;;;;;;CAqJlB"}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
4
|
-
Author Tobias Koppers @sokra
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.NodeWatchFileSystem = void 0;
|
|
8
|
-
const util = require("util");
|
|
9
|
-
const Watchpack = require("watchpack");
|
|
10
|
-
class NodeWatchFileSystem {
|
|
11
|
-
constructor(inputFileSystem) {
|
|
12
|
-
this.inputFileSystem = inputFileSystem;
|
|
13
|
-
this.watcherOptions = {
|
|
14
|
-
aggregateTimeout: 0
|
|
15
|
-
};
|
|
16
|
-
this.watcher = new Watchpack(this.watcherOptions);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @param {Iterable<string>} files watched files
|
|
20
|
-
* @param {Iterable<string>} directories watched directories
|
|
21
|
-
* @param {Iterable<string>} missing watched exitance entries
|
|
22
|
-
* @param {number} startTime timestamp of start time
|
|
23
|
-
* @param {WatchOptions} options options object
|
|
24
|
-
* @param {function(Error=, Map<string, FileSystemInfoEntry>, Map<string, FileSystemInfoEntry>, Set<string>, Set<string>): void} callback aggregated callback
|
|
25
|
-
* @param {function(string, number): void} callbackUndelayed callback when the first change was detected
|
|
26
|
-
* @returns {Watcher} a watcher
|
|
27
|
-
*/
|
|
28
|
-
watch(files, directories, missing, startTime, options, callback, callbackUndelayed) {
|
|
29
|
-
if (!files || typeof files[Symbol.iterator] !== "function") {
|
|
30
|
-
throw new Error("Invalid arguments: 'files'");
|
|
31
|
-
}
|
|
32
|
-
if (!directories || typeof directories[Symbol.iterator] !== "function") {
|
|
33
|
-
throw new Error("Invalid arguments: 'directories'");
|
|
34
|
-
}
|
|
35
|
-
if (!missing || typeof missing[Symbol.iterator] !== "function") {
|
|
36
|
-
throw new Error("Invalid arguments: 'missing'");
|
|
37
|
-
}
|
|
38
|
-
if (typeof callback !== "function") {
|
|
39
|
-
throw new Error("Invalid arguments: 'callback'");
|
|
40
|
-
}
|
|
41
|
-
if (typeof startTime !== "number" && startTime) {
|
|
42
|
-
throw new Error("Invalid arguments: 'startTime'");
|
|
43
|
-
}
|
|
44
|
-
if (typeof options !== "object") {
|
|
45
|
-
throw new Error("Invalid arguments: 'options'");
|
|
46
|
-
}
|
|
47
|
-
if (typeof callbackUndelayed !== "function" && callbackUndelayed) {
|
|
48
|
-
throw new Error("Invalid arguments: 'callbackUndelayed'");
|
|
49
|
-
}
|
|
50
|
-
const oldWatcher = this.watcher;
|
|
51
|
-
this.watcher = new Watchpack(options);
|
|
52
|
-
if (callbackUndelayed) {
|
|
53
|
-
this.watcher.once("change", callbackUndelayed);
|
|
54
|
-
}
|
|
55
|
-
const fetchTimeInfo = () => {
|
|
56
|
-
const fileTimeInfoEntries = new Map();
|
|
57
|
-
const contextTimeInfoEntries = new Map();
|
|
58
|
-
if (this.watcher) {
|
|
59
|
-
this.watcher.collectTimeInfoEntries(fileTimeInfoEntries, contextTimeInfoEntries);
|
|
60
|
-
}
|
|
61
|
-
return { fileTimeInfoEntries, contextTimeInfoEntries };
|
|
62
|
-
};
|
|
63
|
-
this.watcher.once("aggregated", (changes, removals) => {
|
|
64
|
-
// pause emitting events (avoids clearing aggregated changes and removals on timeout)
|
|
65
|
-
this.watcher.pause();
|
|
66
|
-
if (this.inputFileSystem && this.inputFileSystem.purge) {
|
|
67
|
-
const fs = this.inputFileSystem;
|
|
68
|
-
for (const item of changes) {
|
|
69
|
-
fs.purge(item);
|
|
70
|
-
}
|
|
71
|
-
for (const item of removals) {
|
|
72
|
-
fs.purge(item);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
const { fileTimeInfoEntries, contextTimeInfoEntries } = fetchTimeInfo();
|
|
76
|
-
callback(null, fileTimeInfoEntries, contextTimeInfoEntries, changes, removals);
|
|
77
|
-
});
|
|
78
|
-
this.watcher.watch({ files, directories, missing, startTime });
|
|
79
|
-
if (oldWatcher) {
|
|
80
|
-
oldWatcher.close();
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
close: () => {
|
|
84
|
-
if (this.watcher) {
|
|
85
|
-
this.watcher.close();
|
|
86
|
-
this.watcher = null;
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
pause: () => {
|
|
90
|
-
if (this.watcher) {
|
|
91
|
-
this.watcher.pause();
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
getAggregatedRemovals: util.deprecate(() => {
|
|
95
|
-
const items = this.watcher && this.watcher.aggregatedRemovals;
|
|
96
|
-
if (items && this.inputFileSystem && this.inputFileSystem.purge) {
|
|
97
|
-
const fs = this.inputFileSystem;
|
|
98
|
-
for (const item of items) {
|
|
99
|
-
fs.purge(item);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return items;
|
|
103
|
-
}, "Watcher.getAggregatedRemovals is deprecated in favor of Watcher.getInfo since that's more performant.", "DEP_WEBPACK_WATCHER_GET_AGGREGATED_REMOVALS"),
|
|
104
|
-
getAggregatedChanges: util.deprecate(() => {
|
|
105
|
-
const items = this.watcher && this.watcher.aggregatedChanges;
|
|
106
|
-
if (items && this.inputFileSystem && this.inputFileSystem.purge) {
|
|
107
|
-
const fs = this.inputFileSystem;
|
|
108
|
-
for (const item of items) {
|
|
109
|
-
fs.purge(item);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return items;
|
|
113
|
-
}, "Watcher.getAggregatedChanges is deprecated in favor of Watcher.getInfo since that's more performant.", "DEP_WEBPACK_WATCHER_GET_AGGREGATED_CHANGES"),
|
|
114
|
-
getFileTimeInfoEntries: util.deprecate(() => {
|
|
115
|
-
return fetchTimeInfo().fileTimeInfoEntries;
|
|
116
|
-
}, "Watcher.getFileTimeInfoEntries is deprecated in favor of Watcher.getInfo since that's more performant.", "DEP_WEBPACK_WATCHER_FILE_TIME_INFO_ENTRIES"),
|
|
117
|
-
getContextTimeInfoEntries: util.deprecate(() => {
|
|
118
|
-
return fetchTimeInfo().contextTimeInfoEntries;
|
|
119
|
-
}, "Watcher.getContextTimeInfoEntries is deprecated in favor of Watcher.getInfo since that's more performant.", "DEP_WEBPACK_WATCHER_CONTEXT_TIME_INFO_ENTRIES"),
|
|
120
|
-
getInfo: () => {
|
|
121
|
-
const removals = this.watcher && this.watcher.aggregatedRemovals;
|
|
122
|
-
const changes = this.watcher && this.watcher.aggregatedChanges;
|
|
123
|
-
if (this.inputFileSystem && this.inputFileSystem.purge) {
|
|
124
|
-
const fs = this.inputFileSystem;
|
|
125
|
-
if (removals) {
|
|
126
|
-
for (const item of removals) {
|
|
127
|
-
fs.purge(item);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
if (changes) {
|
|
131
|
-
for (const item of changes) {
|
|
132
|
-
fs.purge(item);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
const { fileTimeInfoEntries, contextTimeInfoEntries } = fetchTimeInfo();
|
|
137
|
-
return {
|
|
138
|
-
changes,
|
|
139
|
-
removals,
|
|
140
|
-
fileTimeInfoEntries,
|
|
141
|
-
contextTimeInfoEntries
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
exports.NodeWatchFileSystem = NodeWatchFileSystem;
|
|
148
|
-
//# sourceMappingURL=NodeWatchFileSystem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeWatchFileSystem.js","sourceRoot":"","sources":["../../src/node/NodeWatchFileSystem.ts"],"names":[],"mappings":";AAAA;;;EAGE;;;AAEF,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAEvC,MAAa,mBAAmB;IAI/B,YAAY,eAAe;QAC1B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG;YACrB,gBAAgB,EAAE,CAAC;SACnB,CAAC;QACF,IAAI,CAAC,OAAO,G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CACrC,GAAG,EAAE;gBACJ,OAAO,aAAa,EAAE,CAAC,mBAAmB,CAAC;YAC5C,CAAC,EACD,wGAAwG,EACxG,4CAA4C,CAC5C;YACD,yBAAyB,EAAE,IAAI,CAAC,SAAS,CACxC,GAAG,EAAE;gBACJ,OAAO,aAAa,EAAE,CAAC,sBAAsB,CAAC;YAC/C,CAAC,EACD,2GAA2G,EAC3G,+CAA+C,CAC/C;YACD,OAAO,EAAE,GAAG,EAAE;gBACb,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC;gBACjE,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC;gBAC/D,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE;oBACvD,MAAM,EAAE,GAAG,IAAI,CAAC,eAAe,CAAC;oBAChC,IAAI,QAAQ,EAAE;wBACb,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;4BAC5B,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;yBACf;qBACD;oBACD,IAAI,OAAO,EAAE;wBACZ,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE;4BAC3B,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;yBACf;qBACD;iBACD;gBACD,MAAM,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,GAAG,aAAa,EAAE,CAAC;gBACxE,OAAO;oBACN,OAAO;oBACP,QAAQ;oBACR,mBAAmB;oBACnB,sBAAsB;iBACtB,CAAC;YACH,CAAC;SACD,CAAC;IACH,CAAC;CACD;AAlLD,kDAkLC"}
|
package/dist/runtime.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){var e,r={};self.__rspack_runtime__=r,r.installedModules={},r.installedChunks={},r.moduleCache={},r.checkById=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.publicPath="/",r.__rspack_require__=function e(n){var t=r.moduleCache[n];if(void 0!==t)return t.exports;var i=r.moduleCache[n]={exports:{}};try{var o={id:n,module:i,factory:r.installedModules[n],require:e};i=o.module,e.i.forEach(function(e){e(o)}),o.factory.call(i.exports,i,i.exports,o.require.bind(this),r.__rspack_dynamic_require__&&r.__rspack_dynamic_require__.bind(this),r)}catch(a){throw i.error=a,a}return i.exports},r.__rspack_require__.i=[],r.__rspack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r.__rspack_register__=function(e,r,n){if(e.some((function(e){return 0!==this.installedChunks[e]}).bind(this))){for(moduleId in r)this.checkById(r,moduleId)&&(this.installedModules[moduleId]=r[moduleId]);n&&n(this.__rspack_require__)}for(var t=0;t<e.length;t++)chunkId=e[t],this.checkById(this.installedChunks,chunkId)&&this.installedChunks[chunkId]&&this.installedChunks[chunkId][0](),this.installedChunks[chunkId]=0},function(){var e,n,t,i={},o=r.moduleCache,a=[],c=[],d="idle",u=0,s=[];function l(e){d=e;for(var r=[],n=0;n<c.length;n++)r[n]=c[n].call(null,e);return Promise.all(r)}function _(){0==--u&&l("ready").then(function(){if(0===u){var e=s;s=[];for(var r=0;r<e.length;r++)e[r]()}})}function p(e){if("idle"!==d)throw Error("check() is only allowed in idle status");return l("check").then(r.__rspack_require__.hmrM).then(function(t){return t?l("prepare").then(function(){var i=t.updatedModule;return n=[],Promise.all(Object.keys(r.__rspack_require__.hmrC).reduce(function(e,o){return r.__rspack_require__.hmrC[o](t.c,t.r,t.m,e,n,i),e},[])).then(function(){var r;return r=function(){return e?f(e):l("ready").then(function(){return i})},0===u?r():new Promise(function(e){s.push(function(){e(r())})})})}):l(m()?"ready":"idle").then(function(){return null})})}function h(e){return"ready"!==d?Promise.resolve().then(function(){throw Error("apply() is only allowed in ready status (state: "+d+")")}):f(e)}function f(e){e=e||{},m();var r,i=n.map(function(r){return r(e)});n=void 0;var o=i.map(function(e){return e.errors}).filter(Boolean);if(o.length>0)return l("abort").then(function(){throw o[0]});var a=l("dispose");i.forEach(function(e){e.dispose&&e.dispose()});var c=l("apply"),d=function(e){r||(r=e)},u=[];return i.forEach(function(e){if(e.apply){var r=e.apply(d);if(r)for(var n=0;n<r.length;n++)u.push(r[n])}}),Promise.all([a,c]).then(function(){return r?l("fail").then(function(){throw r}):t?f(e).then(function(e){return u.forEach(function(r){0>e.indexOf(r)&&e.push(r)}),e}):l("idle").then(function(){return u})})}function m(){if(t)return n||(n=[]),Object.keys(r.__rspack_require__.hmrI).forEach(function(e){t.forEach(function(t){r.__rspack_require__.hmrI[e](t,n)})}),t=void 0,!0}r.__rspack_require__.hmrD=i,r.__rspack_require__.i.push(function(s){var f,m,v,k=s.module,y=function(r,n){var t=o[n];if(!t)return r;var i=function(i){if(t.hot.active){if(o[i]){var c=o[i].parents;-1===c.indexOf(n)&&c.push(n)}else a=[n],e=i;-1===t.children.indexOf(i)&&t.children.push(i)}else console.log("[HMR] unexpected require("+i+") from disposed module "+n),a=[];return r(i)},c=function(e){return{configurable:!0,enumerable:!0,get:function(){return r[e]},set:function(n){r[e]=n}}};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&"e"!==s&&Object.defineProperty(i,s,c(s));return i.e=function(e){return function(e){switch(d){case"ready":l("prepare");case"prepare":return u++,e.then(_,_),e;default:return e}}(r.e(e))},i}(s.require,s.id);k.hot=(v={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:m=e!==(f=s.id),_requireSelf:function(){a=k.parents.slice(),e=m?void 0:f,r.__rspack_require__(f)},active:!0,accept:function(e,r,n){if(void 0===e)v._selfAccepted=!0;else if("function"==typeof e)v._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)v._acceptedDependencies[e[t]]=r||function(){},v._acceptedErrorHandlers[e[t]]=n;else v._acceptedDependencies[e]=r||function(){},v._acceptedErrorHandlers[e]=n},decline:function(e){if(void 0===e)v._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var r=0;r<e.length;r++)v._declinedDependencies[e[r]]=!0;else v._declinedDependencies[e]=!0},dispose:function(e){v._disposeHandlers.push(e)},addDisposeHandler:function(e){v._disposeHandlers.push(e)},removeDisposeHandler:function(e){var r=v._disposeHandlers.indexOf(e);r>0&&v._disposeHandlers.splice(r,1)},invalidate:function(){switch(this._selfInvalidated=!0,d){case"idle":n=[],Object.keys(r.__rspack_require__.hmrI).forEach(function(e){r.__rspack_require__.hmrI[e](f,n)}),l("ready");break;case"ready":Object.keys(r.__rspack_require__.hmrI).forEach(function(e){r.__rspack_require__.hmrI[e](f,n)});break;case"prepare":case"check":case"dispose":case"apply":(t=t||[]).push(f)}},check:p,apply:h,status:function(e){if(!e)return d;c.push(e)},addStatusHandler:function(e){c.push(e)},removeStatusHandler:function(e){var r=c.indexOf(e);r>=0&&c.splice(r,1)},data:i[f]},e=void 0,v),k.parents=a,k.children=[],a=[],s.require=y}),r.__rspack_require__.hmrC={},r.__rspack_require__.hmrI={}}(),e={},r.__rspack_require__.l=(r,n,t,i)=>{if(e[r]){e[r].push(n);return}if(void 0!==t)for(var o,a,c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.text==r){o=u;break}}o||(a=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,o.id="hot-script",o.text=r),e[r]=[n];var s=(n,t)=>{o.onerror=o.onload=null,clearTimeout(l);var i=e[r];if(delete e[r],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(t)),n)return n(t)},l=setTimeout(s.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=s.bind(null,o.onerror),o.onload=s.bind(null,o.onload),a&&document.head.appendChild(o)},function(){var e,n,t,i,o,a=r.__rspack_require__.hmrS_jsonp=r.__rspack_require__.hmrS_jsonp||{main:0},c={};function d(e){function c(e,r){for(var n=0;n<r.length;n++){var t=r[n];-1===e.indexOf(t)&&e.push(t)}}n=void 0;var d,u={},s=[],l={},_=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var p in t)if(r.__rspack_require__.o(t,p)){var h,f=t[p];h=f?function(e){for(var n=[e],t={},i=n.map(function(e){return{chain:[e],id:e}});i.length>0;){var o=i.pop(),a=o.id,d=o.chain,u=r.moduleCache[a];if(u&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:d,moduleId:a};if(u.hot._main)return{type:"unaccepted",chain:d,moduleId:a};for(var s=0;s<u.parents.length;s++){var l=u.parents[s],_=r.moduleCache[l];if(_){if(_.hot._declinedDependencies[a])return{type:"declined",chain:d.concat([l]),moduleId:a,parentId:l};if(-1===n.indexOf(l)){if(_.hot._acceptedDependencies[a]){t[l]||(t[l]=[]),c(t[l],[a]);continue}delete t[l],n.push(l),i.push({chain:d.concat([l]),id:l})}}}}}return{type:"accepted",moduleId:e,outdatedModules:n,outdatedDependencies:t}}(p):{type:"disposed",moduleId:p};var m=!1,v=!1,k=!1,y="";switch(h.chain&&(y="\nUpdate propagation: "+h.chain.join(" -> ")),h.type){case"self-declined":e.onDeclined&&e.onDeclined(h),e.ignoreDeclined||(m=Error("Aborted because of self decline: "+h.moduleId+y));break;case"declined":e.onDeclined&&e.onDeclined(h),e.ignoreDeclined||(m=Error("Aborted because of declined dependency: "+h.moduleId+" in "+h.parentId+y));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(h),e.ignoreUnaccepted||(m=Error("Aborted because "+p+" is not accepted"+y));break;case"accepted":e.onAccepted&&e.onAccepted(h),v=!0;break;case"disposed":e.onDisposed&&e.onDisposed(h),k=!0;break;default:throw Error("Unexception type "+h.type)}if(m)return{error:m};if(v)for(p in l[p]=f,c(s,h.outdatedModules),h.outdatedDependencies)r.__rspack_require__.o(h.outdatedDependencies,p)&&(u[p]||(u[p]=[]),c(u[p],h.outdatedDependencies[p]));k&&(c(s,[h.moduleId]),l[p]=_)}t=void 0;for(var g=[],b=0;b<s.length;b++){var q=s[b],E=r.moduleCache[q];E&&(E.hot._selfAccepted||E.hot._main)&&l[q]!==_&&!E.hot._selfInvalidated&&g.push({module:q,require:E.hot._requireSelf,errorHandler:E.hot._selfAccepted})}return{dispose:function(){i.forEach(function(e){delete a[e]}),i=void 0;for(var e,n,t=s.slice();t.length>0;){var o=t.pop(),c=r.moduleCache[o];if(c){var l={},_=c.hot._disposeHandlers;for(b=0;b<_.length;b++)_[b].call(null,l);for(r.__rspack_require__.hmrD[o]=l,c.hot.active=!1,delete r.moduleCache[o],delete u[o],b=0;b<c.children.length;b++){var p=r.moduleCache[c.children[b]];p&&(e=p.parents.indexOf(o))>=0&&p.parents.splice(e,1)}}}for(var h in u)if(r.__rspack_require__.o(u,h)&&(c=r.moduleCache[h]))for(b=0,d=u[h];b<d.length;b++)n=d[b],(e=c.children.indexOf(n))>=0&&c.children.splice(e,1)},apply:function(n){for(var t in l)r.__rspack_require__.o(l,t)&&(r.installedModules[t]=l[t]);for(var i=0;i<o.length;i++)o[i](r.__rspack_require__);for(var a in u)if(r.__rspack_require__.o(u,a)){var c=r.moduleCache[a];if(c){d=u[a];for(var _=[],p=[],h=[],f=0;f<d.length;f++){var m=d[f],v=c.hot._acceptedDependencies[m],k=c.hot._acceptedErrorHandlers[m];if(v){if(-1!==_.indexOf(v))continue;_.push(v),p.push(k),h.push(m)}}for(var y=0;y<_.length;y++)try{_[y].call(null,d)}catch(q){if("function"==typeof p[y])try{p[y](q,{moduleId:a,dependencyId:h[y]})}catch(b){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:a,dependencyId:h[y],error:b,originalError:q}),e.ignoreErrored||(n(b),n(q))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:a,dependencyId:h[y],error:q}),e.ignoreErrored||n(q)}}}for(var E=0;E<g.length;E++){var I=g[E],C=I.module;try{I.require(C)}catch(O){if("function"==typeof I.errorHandler)try{I.errorHandler(O,{moduleId:C,module:r.moduleCache[C]})}catch(D){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:C,error:D,originalError:O}),e.ignoreErrored||(n(D),n(O))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:C,error:O}),e.ignoreErrored||n(O)}}return s}}}self.hotUpdate=(r,n,i)=>{for(var a in n)__rspack_runtime__.__rspack_require__.o(n,a)&&(t[a]=n[a],e&&e.push(a));if(i&&o.push(i),c[r]){c[r](),c[r]=void 0;var d=document.getElementById("hot-script");d&&d.parentNode&&d.parentNode.removeChild(d)}},r.__rspack_require__.hmrI.jsonp=function(e,n){t||(t={},o=[],i=[],n.push(d)),r.__rspack_require__.o(t,e)||(t[e]=r.installedModules[e])},r.__rspack_require__.hmrC.jsonp=function(u,s,l,_,p,h){p.push(d),n={},i=s,t=l.reduce(function(e,r){return e[r]=!1,e},{}),o=[],u.forEach(function(t){if(r.__rspack_require__.o(a,t)&&void 0!==a[t]){var i,o=[h.uri];_.push((i=h.content,e=o,new Promise((e,n)=>{c[t]=e;var o=Error(),a=e=>{if(c[t]){c[t]=void 0;var r=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;o.message="Loading hot update chunk "+t+" failed.\n("+r+": "+i+")",o.name="ChunkLoadError",o.type=r,o.request=i,n(o)}};r.__rspack_require__.l(i,a)}))),n[t]=!0}else n[t]=!1})}}(),r.installedCssChunks={},r.chunkHashData={js:{main:""},css:{}},r.setChunkHashData=function(e,r,n){return this.chunkHashData[n][e]=r},r.__rspack_has_dynamic_chunk__=function(e,r){return Boolean(this.chunkHashData&&this.chunkHashData[r]&&void 0!==this.chunkHashData[r][e])},r.__rspack_get_dynamic_chunk_url__=function(e,r){return"static/"+r+"/"+e+".chunk."+r},r.__rspack_dynamic_require__=function(e){return Promise.all(e.map((function(e){return Object.keys(this).filter(function(e){return e.indexOf("rspack_load_dynamic")>0}).reduce((function(r,n){return this[n](e,r),r}).bind(this),[])}).bind(this)).reduce(function(e,r){return e.concat(r)},[]))};var n={};r.__rspack_load_dynamic_js__=function(e,r){var t=this,i=this.checkById(this.installedChunks,e)?this.installedChunks[e]:void 0;if(0!==i){if(i)r.push(i[2]);else{var o=new Promise((function(r,n){i=this.installedChunks[e]=[r,n]}).bind(this));r.push(i[2]=o);var a=this.publicPath+this.__rspack_get_dynamic_chunk_url__(e,"js"),c=Error();!function(e,r,t){var i,o,a="rspack-test:";if(n[e]){n[e].push(r);return}if(void 0!==t)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")==a+t){i=u;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,i.setAttribute("data-rspack",a+t),i.src=e),n[e]=[r];var s=function(r,t){i.onerror=i.onload=null,clearTimeout(l);var o=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(t)}),r)return r(t)},l=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),o&&document.head.appendChild(i)}(a,function(r){if(t.checkById(t.installedChunks,e)&&(0!==(i=t.installedChunks[e])&&(t.installedChunks[e]=void 0),i)){var n=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",c.name="ChunkLoadError",c.type=n,c.request=o,i[1](c)}},"chunk-"+e)}}},r.__rspack_load_dynamic_css__=function(e,r){var n=this.installedCssChunks[e];if(n)r.push(n);else if(0!==n&&this.__rspack_has_dynamic_chunk__(e,"css")){var t=this.__rspack_get_dynamic_chunk_url__(e,"css"),i=this.publicPath+t;r.push(n=new Promise(function(r,n){!function(e,r,n,t,i){for(var o=document.getElementsByTagName("link"),a=0;a<o.length;a++){var c=o[a],d=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(d===r||d===n))return t()}for(var u=document.getElementsByTagName("style"),a=0;a<u.length;a++){var c=u[a],d=c.getAttribute("data-href");if(d===r||d===n)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onerror=s.onload=function(r){if(s.onerror=s.onload=null,"load"===r.type)t();else{var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.href||n,c=Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=a,s.parentNode.removeChild(s),i(c)}},s.href=n,document.head.appendChild(s)}(e,t,i,r,n)}).then(function(){n=0},function(e){throw n=void 0,e}))}},function(){function e(r){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(e=function(e){return e?t:n})(r)}r.interopRequire=function(r,n){if(!n&&r&&r.__esModule)return r;if(null===r||"object"!=typeof r&&"function"!=typeof r)return{default:r};var t=e(n);if(t&&t.has(r))return t.get(r);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if("default"!==a&&Object.prototype.hasOwnProperty.call(r,a)){var c=o?Object.getOwnPropertyDescriptor(r,a):null;c&&(c.get||c.set)?Object.defineProperty(i,a,c):i[a]=r[a]}return i.default=r,t&&t.set(r,i),i}}(),r.exportStar=function(e,r){return Object.keys(e).forEach(function(n){"default"===n||Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[n]}})}),e}}();
|
package/dist/watching.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Callback } from "tapable";
|
|
2
|
-
import { Compiler } from "./compiler";
|
|
3
|
-
import { ResolvedWatch, Watch } from "./config/watch";
|
|
4
|
-
import { Stats } from "./stats";
|
|
5
|
-
export declare class Watching {
|
|
6
|
-
compiler: Compiler;
|
|
7
|
-
watchOptions: ResolvedWatch;
|
|
8
|
-
watcher: any;
|
|
9
|
-
handler: Callback<Error, Stats>;
|
|
10
|
-
constructor(compiler: Compiler, watchOptions: Watch, handler: Callback<Error, Stats>);
|
|
11
|
-
_go(fileTimeInfoEntries: Iterable<string>, contextTimeInfoEntries: Iterable<string>, changedFiles: Iterable<string>, removedFiles: Iterable<string>): void;
|
|
12
|
-
_invalidate(fileTimeInfoEntries: Iterable<string>, contextTimeInfoEntries: Iterable<string>, changedFiles: Iterable<string>, removedFiles: Iterable<string>): void;
|
|
13
|
-
watch(files: Iterable<string>, dirs: Iterable<string>, missing: Iterable<string>): void;
|
|
14
|
-
close(): void;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=watching.d.ts.map
|
package/dist/watching.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watching.d.ts","sourceRoot":"","sources":["../src/watching.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAsB,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,QAAQ;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,EAAE,aAAa,CAAC;IAC5B,OAAO,EAAE,GAAG,CAAC;IACpB,OAAO,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;gBAE/B,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,KAAK,EACnB,OAAO,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IAMhC,GAAG,CACF,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,EACrC,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,EACxC,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,EAC9B,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC;IAI/B,WAAW,CACV,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,EACrC,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,EACxC,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,EAC9B,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC;IAS/B,KAAK,CACJ,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,EACvB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,EACtB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC;IAqB1B,KAAK;CACL"}
|
package/dist/watching.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Watching = void 0;
|
|
4
|
-
const watch_1 = require("./config/watch");
|
|
5
|
-
class Watching {
|
|
6
|
-
constructor(compiler, watchOptions, handler) {
|
|
7
|
-
this.compiler = compiler;
|
|
8
|
-
this.watchOptions = (0, watch_1.resolveWatchOption)(watchOptions);
|
|
9
|
-
this.handler = handler;
|
|
10
|
-
}
|
|
11
|
-
_go(fileTimeInfoEntries, contextTimeInfoEntries, changedFiles, removedFiles) {
|
|
12
|
-
const run = () => { };
|
|
13
|
-
}
|
|
14
|
-
_invalidate(fileTimeInfoEntries, contextTimeInfoEntries, changedFiles, removedFiles) {
|
|
15
|
-
this._go(fileTimeInfoEntries, contextTimeInfoEntries, changedFiles, removedFiles);
|
|
16
|
-
}
|
|
17
|
-
watch(files, dirs, missing) {
|
|
18
|
-
this.watcher = this.compiler.watchFileSystem.watch(files, dirs, missing, undefined, this.watchOptions, (err, fileTimeInfoEntries, contextTimeInfoEntries, changedFiles, removedFiles) => {
|
|
19
|
-
if (err) {
|
|
20
|
-
return this.handler(err);
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
close() { }
|
|
25
|
-
}
|
|
26
|
-
exports.Watching = Watching;
|
|
27
|
-
//# sourceMappingURL=watching.js.map
|
package/dist/watching.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watching.js","sourceRoot":"","sources":["../src/watching.ts"],"names":[],"mappings":";;;AAEA,0CAA0E;AAG1E,MAAa,QAAQ;IAKpB,YACC,QAAkB,EAClB,YAAmB,EACnB,OAA+B;QAE/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,IAAA,0BAAkB,EAAC,YAAY,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IACD,GAAG,CACF,mBAAqC,EACrC,sBAAwC,EACxC,YAA8B,EAC9B,YAA8B;QAE9B,MAAM,GAAG,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;IACtB,CAAC;IACD,WAAW,CACV,mBAAqC,EACrC,sBAAwC,EACxC,YAA8B,EAC9B,YAA8B;QAE9B,IAAI,CAAC,GAAG,CACP,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,EACZ,YAAY,CACZ,CAAC;IACH,CAAC;IACD,KAAK,CACJ,KAAuB,EACvB,IAAsB,EACtB,OAAyB;QAEzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK,CACjD,KAAK,EACL,IAAI,EACJ,OAAO,EACP,SAAS,EACT,IAAI,CAAC,YAAY,EACjB,CACC,GAAU,EACV,mBAAqC,EACrC,sBAAwC,EACxC,YAA8B,EAC9B,YAA8B,EAC7B,EAAE;YACH,IAAI,GAAG,EAAE;gBACR,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;aACzB;QACF,CAAC,CACD,CAAC;IACH,CAAC;IACD,KAAK,KAAI,CAAC;CACV;AA5DD,4BA4DC"}
|
package/dist/web/nodeShim.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeShim.d.ts","sourceRoot":"","sources":["../../src/web/nodeShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA+BvC,qBAAa,cAAc;IAC1B,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAMxB"}
|
package/dist/web/nodeShim.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeShimPlugin = void 0;
|
|
4
|
-
const PolyfilledBuiltinModules = {
|
|
5
|
-
assert: "assert/",
|
|
6
|
-
buffer: "buffer/",
|
|
7
|
-
console: "console-browserify",
|
|
8
|
-
constants: "constants-browserify",
|
|
9
|
-
crypto: "crypto-browserify",
|
|
10
|
-
domain: "domain-browser",
|
|
11
|
-
events: "events/",
|
|
12
|
-
http: "stream-http",
|
|
13
|
-
https: "https-browserify",
|
|
14
|
-
os: "os-browserify/browser",
|
|
15
|
-
path: "path-browserify",
|
|
16
|
-
punycode: "punycode/",
|
|
17
|
-
process: "process/browser",
|
|
18
|
-
querystring: "querystring-es3",
|
|
19
|
-
stream: "stream-browserify",
|
|
20
|
-
_stream_duplex: "readable-stream/duplex",
|
|
21
|
-
_stream_passthrough: "readable-stream/passthrough",
|
|
22
|
-
_stream_readable: "readable-stream/readable",
|
|
23
|
-
_stream_transform: "readable-stream/transform",
|
|
24
|
-
_stream_writable: "readable-stream/writable",
|
|
25
|
-
string_decoder: "string_decoder/",
|
|
26
|
-
sys: "util/",
|
|
27
|
-
timers: "timers-browserify",
|
|
28
|
-
tty: "tty-browserify",
|
|
29
|
-
url: "url/",
|
|
30
|
-
util: "util/",
|
|
31
|
-
vm: "vm-browserify",
|
|
32
|
-
zlib: "browserify-zlib"
|
|
33
|
-
};
|
|
34
|
-
class NodeShimPlugin {
|
|
35
|
-
apply(compiler) {
|
|
36
|
-
compiler.options.resolve.alias = {
|
|
37
|
-
...PolyfilledBuiltinModules,
|
|
38
|
-
...compiler.options.resolve.alias
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.NodeShimPlugin = NodeShimPlugin;
|
|
43
|
-
//# sourceMappingURL=nodeShim.js.map
|
package/dist/web/nodeShim.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeShim.js","sourceRoot":"","sources":["../../src/web/nodeShim.ts"],"names":[],"mappings":";;;AACA,MAAM,wBAAwB,GAAG;IAChC,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,oBAAoB;IAC7B,SAAS,EAAE,sBAAsB;IACjC,MAAM,EAAE,mBAAmB;IAC3B,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,SAAS;IACjB,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,kBAAkB;IACzB,EAAE,EAAE,uBAAuB;IAC3B,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,iBAAiB;IAC9B,MAAM,EAAE,mBAAmB;IAC3B,cAAc,EAAE,wBAAwB;IACxC,mBAAmB,EAAE,6BAA6B;IAClD,gBAAgB,EAAE,0BAA0B;IAC5C,iBAAiB,EAAE,2BAA2B;IAC9C,gBAAgB,EAAE,0BAA0B;IAC5C,cAAc,EAAE,iBAAiB;IACjC,GAAG,EAAE,OAAO;IACZ,MAAM,EAAE,mBAAmB;IAC3B,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,OAAO;IACb,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,iBAAiB;CACvB,CAAC;AACF,MAAa,cAAc;IAC1B,KAAK,CAAC,QAAkB;QACvB,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,GAAG;YAChC,GAAG,wBAAwB;YAC3B,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;SACjC,CAAC;IACH,CAAC;CACD;AAPD,wCAOC"}
|