@hanzogui/static 4.3.1 → 4.4.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/extractor/babelParse.cjs +1 -1
- package/dist/extractor/bundle.cjs +5 -2
- package/dist/extractor/bundleConfig.cjs +5 -2
- package/dist/extractor/hasTopLevelAwait.cjs +62 -0
- package/dist/registerRequire.cjs +39 -1
- package/package.json +15 -15
- package/src/extractor/babelParse.ts +1 -0
- package/src/extractor/bundle.ts +5 -5
- package/src/extractor/bundleConfig.ts +5 -5
- package/src/extractor/hasTopLevelAwait.ts +28 -0
- package/src/registerRequire.ts +48 -1
- package/types/extractor/babelParse.d.ts.map +1 -1
- package/types/extractor/bundle.d.ts.map +1 -1
- package/types/extractor/bundleConfig.d.ts.map +1 -1
- package/types/extractor/hasTopLevelAwait.d.ts +2 -0
- package/types/extractor/hasTopLevelAwait.d.ts.map +1 -0
- package/types/registerRequire.d.ts.map +1 -1
|
@@ -38,7 +38,7 @@ __export(babelParse_exports, {
|
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(babelParse_exports);
|
|
40
40
|
var babelParser = __toESM(require("@babel/parser"));
|
|
41
|
-
const plugins = ["asyncGenerators", "classProperties", "dynamicImport", "functionBind", "jsx", "numericSeparator", "objectRestSpread", "optionalCatchBinding", "decorators-legacy", "typescript", "optionalChaining", "nullishCoalescingOperator"];
|
|
41
|
+
const plugins = ["asyncGenerators", "classProperties", "dynamicImport", "functionBind", "jsx", "numericSeparator", "objectRestSpread", "optionalCatchBinding", "decorators-legacy", "typescript", "optionalChaining", "nullishCoalescingOperator", "topLevelAwait"];
|
|
42
42
|
const parserOptions = Object.freeze({
|
|
43
43
|
plugins,
|
|
44
44
|
sourceType: "module"
|
|
@@ -43,6 +43,7 @@ var import_esbuild = __toESM(require("esbuild"));
|
|
|
43
43
|
var FS = __toESM(require("fs-extra"));
|
|
44
44
|
var import_detectModuleFormat = require("./detectModuleFormat.cjs");
|
|
45
45
|
var import_esbuildAliasPlugin = require("./esbuildAliasPlugin.cjs");
|
|
46
|
+
var import_hasTopLevelAwait = require("./hasTopLevelAwait.cjs");
|
|
46
47
|
var import_loadGui = require("./loadGui.cjs");
|
|
47
48
|
var import_esbuildTsconfigPaths = require("./esbuildTsconfigPaths.cjs");
|
|
48
49
|
const esbuildLoaderConfig = {
|
|
@@ -136,13 +137,15 @@ function getESBuildConfig({
|
|
|
136
137
|
contents = contents.replace(/import\.meta\.main/g, "false");
|
|
137
138
|
modified = true;
|
|
138
139
|
}
|
|
139
|
-
if (
|
|
140
|
+
if ((0, import_hasTopLevelAwait.hasTopLevelAwait)(contents, args.path)) {
|
|
140
141
|
if (process.env.DEBUG?.startsWith("@hanzo/gui")) {
|
|
141
142
|
console.info(`[hanzo-gui] stubbing file with top-level await: ${args.path}`);
|
|
142
143
|
}
|
|
143
144
|
return {
|
|
145
|
+
// Keep this as an ESM-shaped stub so esbuild doesn't inline a
|
|
146
|
+
// top-level `module.exports = {}` into the parent bundle.
|
|
144
147
|
contents: `// stubbed - contains top-level await
|
|
145
|
-
|
|
148
|
+
export default {}`,
|
|
146
149
|
loader: "js"
|
|
147
150
|
};
|
|
148
151
|
}
|
|
@@ -61,6 +61,7 @@ var import_registerRequire = require("../registerRequire.cjs");
|
|
|
61
61
|
var import_babelParse = require("./babelParse.cjs");
|
|
62
62
|
var import_bundle = require("./bundle.cjs");
|
|
63
63
|
var import_getGuiConfigPathFromOptionsConfig = require("./getGuiConfigPathFromOptionsConfig.cjs");
|
|
64
|
+
var import_hasTopLevelAwait = require("./hasTopLevelAwait.cjs");
|
|
64
65
|
var import_requireGuiCore = require("../helpers/requireGuiCore.cjs");
|
|
65
66
|
var import_detectModuleFormat = require("./detectModuleFormat.cjs");
|
|
66
67
|
const activeTempFiles = /* @__PURE__ */new Set();
|
|
@@ -139,13 +140,15 @@ const handleEsmFeaturesPlugin = {
|
|
|
139
140
|
contents = contents.replace(/import\.meta\.main/g, "false");
|
|
140
141
|
modified = true;
|
|
141
142
|
}
|
|
142
|
-
if (
|
|
143
|
+
if ((0, import_hasTopLevelAwait.hasTopLevelAwait)(contents, args.path)) {
|
|
143
144
|
if (process.env.DEBUG?.startsWith("@hanzo/gui")) {
|
|
144
145
|
console.info(`[hanzo-gui] stubbing file with top-level await: ${args.path}`);
|
|
145
146
|
}
|
|
146
147
|
return {
|
|
148
|
+
// Keep this as an ESM-shaped stub so esbuild doesn't inline a top-level
|
|
149
|
+
// `module.exports = {}` into the parent bundle and wipe its exports.
|
|
147
150
|
contents: `// stubbed - contains top-level await
|
|
148
|
-
|
|
151
|
+
export default {}`,
|
|
149
152
|
loader: "js"
|
|
150
153
|
};
|
|
151
154
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: true
|
|
30
|
+
}) : target, mod));
|
|
31
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: true
|
|
33
|
+
}), mod);
|
|
34
|
+
var hasTopLevelAwait_exports = {};
|
|
35
|
+
__export(hasTopLevelAwait_exports, {
|
|
36
|
+
hasTopLevelAwait: () => hasTopLevelAwait
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(hasTopLevelAwait_exports);
|
|
39
|
+
var import_traverse = __toESM(require("@babel/traverse"));
|
|
40
|
+
var import_babelParse = require("./babelParse.cjs");
|
|
41
|
+
function hasTopLevelAwait(contents, fileName) {
|
|
42
|
+
if (!contents.includes("await")) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
const ast = (0, import_babelParse.babelParse)(contents, fileName);
|
|
46
|
+
let found = false;
|
|
47
|
+
(0, import_traverse.default)(ast, {
|
|
48
|
+
AwaitExpression(path) {
|
|
49
|
+
if (!path.getFunctionParent()) {
|
|
50
|
+
found = true;
|
|
51
|
+
path.stop();
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
ForOfStatement(path) {
|
|
55
|
+
if (path.node.await && !path.getFunctionParent()) {
|
|
56
|
+
found = true;
|
|
57
|
+
path.stop();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return found;
|
|
62
|
+
}
|
package/dist/registerRequire.cjs
CHANGED
|
@@ -43,6 +43,39 @@ const compiled = {};
|
|
|
43
43
|
function setRequireResult(name, result) {
|
|
44
44
|
compiled[name] = result;
|
|
45
45
|
}
|
|
46
|
+
function getStaticExtractionStub(path) {
|
|
47
|
+
switch (path) {
|
|
48
|
+
case "expo-constants":
|
|
49
|
+
return {
|
|
50
|
+
__esModule: true,
|
|
51
|
+
default: {
|
|
52
|
+
executionEnvironment: null
|
|
53
|
+
},
|
|
54
|
+
ExecutionEnvironment: {
|
|
55
|
+
Bare: "bare",
|
|
56
|
+
Standalone: "standalone",
|
|
57
|
+
StoreClient: "storeClient"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
case "expo-updates":
|
|
61
|
+
return {
|
|
62
|
+
__esModule: true,
|
|
63
|
+
default: {
|
|
64
|
+
isEnabled: false,
|
|
65
|
+
isUsingEmbeddedAssets: true
|
|
66
|
+
},
|
|
67
|
+
checkForUpdateAsync: async () => ({
|
|
68
|
+
isAvailable: false
|
|
69
|
+
}),
|
|
70
|
+
fetchUpdateAsync: async () => ({
|
|
71
|
+
isNew: false
|
|
72
|
+
}),
|
|
73
|
+
reloadAsync: async () => {}
|
|
74
|
+
};
|
|
75
|
+
default:
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
46
79
|
function registerRequire(platform, {
|
|
47
80
|
proxyWormImports
|
|
48
81
|
} = {
|
|
@@ -80,6 +113,10 @@ function registerRequire(platform, {
|
|
|
80
113
|
isRegistered = true;
|
|
81
114
|
Module.prototype.require = guiRequire;
|
|
82
115
|
function guiRequire(path) {
|
|
116
|
+
const staticExtractionStub = getStaticExtractionStub(path);
|
|
117
|
+
if (staticExtractionStub) {
|
|
118
|
+
return staticExtractionStub;
|
|
119
|
+
}
|
|
83
120
|
if (path === "@hanzo/gui" && platform === "native") {
|
|
84
121
|
return og.apply(this, ["@hanzo/gui/native"]);
|
|
85
122
|
}
|
|
@@ -111,7 +148,8 @@ function registerRequire(platform, {
|
|
|
111
148
|
if (proxyWormImports && !path.includes(".gui-dynamic-eval")) {
|
|
112
149
|
const callerFile = this?.filename || this?.id || "";
|
|
113
150
|
const isFromGuiPkg = callerFile.includes("@hanzo/gui") || callerFile.includes("@gui") || callerFile.includes("node_modules/@hanzo/");
|
|
114
|
-
|
|
151
|
+
const isFromStaticLoader = !callerFile || callerFile === "." || callerFile === "[eval]" || callerFile.endsWith("/[eval]") || callerFile.includes("/code/compiler/static/") || callerFile.includes("/.gui/");
|
|
152
|
+
if (path === "@hanzo/gui" || path.startsWith("@hanzogui/") || isFromGuiPkg || isFromStaticLoader) {
|
|
115
153
|
return og.apply(this, [path]);
|
|
116
154
|
}
|
|
117
155
|
return proxyWorm;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/static",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -50,19 +50,19 @@
|
|
|
50
50
|
"@babel/template": "^7.25.0",
|
|
51
51
|
"@babel/traverse": "^7.25.4",
|
|
52
52
|
"@babel/types": "^7.25.4",
|
|
53
|
-
"@hanzogui/cli-color": "
|
|
54
|
-
"@hanzogui/config-default": "
|
|
55
|
-
"@hanzogui/core": "
|
|
56
|
-
"@hanzogui/fake-react-native": "
|
|
57
|
-
"@hanzogui/generate-themes": "
|
|
58
|
-
"@hanzogui/helpers": "
|
|
59
|
-
"@hanzogui/helpers-node": "
|
|
60
|
-
"@hanzogui/proxy-worm": "
|
|
61
|
-
"@hanzogui/react-native-web-internals": "
|
|
62
|
-
"@hanzogui/react-native-web-lite": "
|
|
63
|
-
"@hanzogui/shorthands": "
|
|
64
|
-
"@hanzogui/types": "
|
|
65
|
-
"@hanzogui/web": "
|
|
53
|
+
"@hanzogui/cli-color": "4.4.0",
|
|
54
|
+
"@hanzogui/config-default": "4.4.0",
|
|
55
|
+
"@hanzogui/core": "4.4.0",
|
|
56
|
+
"@hanzogui/fake-react-native": "4.4.0",
|
|
57
|
+
"@hanzogui/generate-themes": "4.4.0",
|
|
58
|
+
"@hanzogui/helpers": "4.4.0",
|
|
59
|
+
"@hanzogui/helpers-node": "4.4.0",
|
|
60
|
+
"@hanzogui/proxy-worm": "4.4.0",
|
|
61
|
+
"@hanzogui/react-native-web-internals": "4.4.0",
|
|
62
|
+
"@hanzogui/react-native-web-lite": "4.4.0",
|
|
63
|
+
"@hanzogui/shorthands": "4.4.0",
|
|
64
|
+
"@hanzogui/types": "4.4.0",
|
|
65
|
+
"@hanzogui/web": "4.4.0",
|
|
66
66
|
"babel-literal-to-ast": "^2.1.0",
|
|
67
67
|
"browserslist": "^4.28.1",
|
|
68
68
|
"check-dependency-version-consistency": "^4.1.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@babel/plugin-syntax-typescript": "^7.25.4",
|
|
82
|
-
"@hanzogui/build": "
|
|
82
|
+
"@hanzogui/build": "4.4.0",
|
|
83
83
|
"@types/babel__core": "^7.20.5",
|
|
84
84
|
"@types/find-root": "^1.1.2",
|
|
85
85
|
"@types/node": "^22.1.0",
|
package/src/extractor/bundle.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as FS from 'fs-extra'
|
|
|
4
4
|
import type { GuiPlatform } from '../types'
|
|
5
5
|
import { detectModuleFormat } from './detectModuleFormat'
|
|
6
6
|
import { esbuildAliasPlugin } from './esbuildAliasPlugin'
|
|
7
|
+
import { hasTopLevelAwait } from './hasTopLevelAwait'
|
|
7
8
|
import { resolveWebOrNativeSpecificEntry } from './loadGui'
|
|
8
9
|
import { TsconfigPathsPlugin } from './esbuildTsconfigPaths'
|
|
9
10
|
|
|
@@ -146,17 +147,16 @@ function getESBuildConfig(
|
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
// stub files with top-level await - they're typically runtime-only
|
|
149
|
-
if (
|
|
150
|
-
/^\s*(?:const|let|var|export)\s+[^=]*=\s*await\b/m.test(contents) ||
|
|
151
|
-
/^await\s/m.test(contents)
|
|
152
|
-
) {
|
|
150
|
+
if (hasTopLevelAwait(contents, args.path)) {
|
|
153
151
|
if (process.env.DEBUG?.startsWith('@hanzo/gui')) {
|
|
154
152
|
console.info(
|
|
155
153
|
`[hanzo-gui] stubbing file with top-level await: ${args.path}`
|
|
156
154
|
)
|
|
157
155
|
}
|
|
158
156
|
return {
|
|
159
|
-
|
|
157
|
+
// Keep this as an ESM-shaped stub so esbuild doesn't inline a
|
|
158
|
+
// top-level `module.exports = {}` into the parent bundle.
|
|
159
|
+
contents: `// stubbed - contains top-level await\nexport default {}`,
|
|
160
160
|
loader: 'js',
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -16,6 +16,7 @@ import type { GuiOptions } from '../types'
|
|
|
16
16
|
import { babelParse } from './babelParse'
|
|
17
17
|
import { esbuildLoaderConfig, esbundleGuiConfig } from './bundle'
|
|
18
18
|
import { getGuiConfigPathFromOptionsConfig } from './getGuiConfigPathFromOptionsConfig'
|
|
19
|
+
import { hasTopLevelAwait } from './hasTopLevelAwait'
|
|
19
20
|
import { requireGuiCore } from '../helpers/requireGuiCore'
|
|
20
21
|
import { detectModuleFormat } from './detectModuleFormat'
|
|
21
22
|
|
|
@@ -159,15 +160,14 @@ const handleEsmFeaturesPlugin: esbuild.Plugin = {
|
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
// stub files with top-level await - they're typically runtime-only
|
|
162
|
-
if (
|
|
163
|
-
/^\s*(?:const|let|var|export)\s+[^=]*=\s*await\b/m.test(contents) ||
|
|
164
|
-
/^await\s/m.test(contents)
|
|
165
|
-
) {
|
|
163
|
+
if (hasTopLevelAwait(contents, args.path)) {
|
|
166
164
|
if (process.env.DEBUG?.startsWith('@hanzo/gui')) {
|
|
167
165
|
console.info(`[hanzo-gui] stubbing file with top-level await: ${args.path}`)
|
|
168
166
|
}
|
|
169
167
|
return {
|
|
170
|
-
|
|
168
|
+
// Keep this as an ESM-shaped stub so esbuild doesn't inline a top-level
|
|
169
|
+
// `module.exports = {}` into the parent bundle and wipe its exports.
|
|
170
|
+
contents: `// stubbed - contains top-level await\nexport default {}`,
|
|
171
171
|
loader: 'js',
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import traverse from '@babel/traverse'
|
|
2
|
+
import { babelParse } from './babelParse'
|
|
3
|
+
|
|
4
|
+
export function hasTopLevelAwait(contents: string, fileName?: string) {
|
|
5
|
+
if (!contents.includes('await')) {
|
|
6
|
+
return false
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const ast = babelParse(contents, fileName)
|
|
10
|
+
let found = false
|
|
11
|
+
|
|
12
|
+
traverse(ast, {
|
|
13
|
+
AwaitExpression(path) {
|
|
14
|
+
if (!path.getFunctionParent()) {
|
|
15
|
+
found = true
|
|
16
|
+
path.stop()
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
ForOfStatement(path) {
|
|
20
|
+
if (path.node.await && !path.getFunctionParent()) {
|
|
21
|
+
found = true
|
|
22
|
+
path.stop()
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
return found
|
|
28
|
+
}
|
package/src/registerRequire.ts
CHANGED
|
@@ -23,6 +23,36 @@ export function setRequireResult(name: string, result: any) {
|
|
|
23
23
|
compiled[name] = result
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
function getStaticExtractionStub(path: string) {
|
|
27
|
+
switch (path) {
|
|
28
|
+
case 'expo-constants':
|
|
29
|
+
return {
|
|
30
|
+
__esModule: true,
|
|
31
|
+
default: {
|
|
32
|
+
executionEnvironment: null,
|
|
33
|
+
},
|
|
34
|
+
ExecutionEnvironment: {
|
|
35
|
+
Bare: 'bare',
|
|
36
|
+
Standalone: 'standalone',
|
|
37
|
+
StoreClient: 'storeClient',
|
|
38
|
+
},
|
|
39
|
+
}
|
|
40
|
+
case 'expo-updates':
|
|
41
|
+
return {
|
|
42
|
+
__esModule: true,
|
|
43
|
+
default: {
|
|
44
|
+
isEnabled: false,
|
|
45
|
+
isUsingEmbeddedAssets: true,
|
|
46
|
+
},
|
|
47
|
+
checkForUpdateAsync: async () => ({ isAvailable: false }),
|
|
48
|
+
fetchUpdateAsync: async () => ({ isNew: false }),
|
|
49
|
+
reloadAsync: async () => {},
|
|
50
|
+
}
|
|
51
|
+
default:
|
|
52
|
+
return null
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
26
56
|
export function registerRequire(
|
|
27
57
|
platform: GuiPlatform,
|
|
28
58
|
{ proxyWormImports } = {
|
|
@@ -78,6 +108,11 @@ export function registerRequire(
|
|
|
78
108
|
Module.prototype.require = guiRequire
|
|
79
109
|
|
|
80
110
|
function guiRequire(this: any, path: string) {
|
|
111
|
+
const staticExtractionStub = getStaticExtractionStub(path)
|
|
112
|
+
if (staticExtractionStub) {
|
|
113
|
+
return staticExtractionStub
|
|
114
|
+
}
|
|
115
|
+
|
|
81
116
|
if (path === '@hanzo/gui' && platform === 'native') {
|
|
82
117
|
return og.apply(this, ['@hanzo/gui/native'])
|
|
83
118
|
}
|
|
@@ -130,7 +165,19 @@ export function registerRequire(
|
|
|
130
165
|
callerFile.includes('@hanzo/gui') ||
|
|
131
166
|
callerFile.includes('@gui') ||
|
|
132
167
|
callerFile.includes('node_modules/@hanzo/')
|
|
133
|
-
|
|
168
|
+
const isFromStaticLoader =
|
|
169
|
+
!callerFile ||
|
|
170
|
+
callerFile === '.' ||
|
|
171
|
+
callerFile === '[eval]' ||
|
|
172
|
+
callerFile.endsWith('/[eval]') ||
|
|
173
|
+
callerFile.includes('/code/compiler/static/') ||
|
|
174
|
+
callerFile.includes('/.gui/')
|
|
175
|
+
if (
|
|
176
|
+
path === '@hanzo/gui' ||
|
|
177
|
+
path.startsWith('@hanzogui/') ||
|
|
178
|
+
isFromGuiPkg ||
|
|
179
|
+
isFromStaticLoader
|
|
180
|
+
) {
|
|
134
181
|
return og.apply(this, [path])
|
|
135
182
|
}
|
|
136
183
|
return proxyWorm
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"babelParse.d.ts","sourceRoot":"","sources":["../../src/extractor/babelParse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"babelParse.d.ts","sourceRoot":"","sources":["../../src/extractor/babelParse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAA;AAkBtC,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,aAGtC,CAAA;AAIF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,CAW3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/extractor/bundle.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/extractor/bundle.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAO3C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;CAwBtB,CAAA;AAQV,eAAO,MAAM,uBAAuB,QAAqD,CAAA;AAEzF;;GAEG;AAEH,KAAK,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,GAAG;IAChE,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,8BAA8B,CAAC,EAAE,OAAO,CAAA;CACzC,CAAA;AA+MD,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundleConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/bundleConfig.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACzE,OAAO,OAAO,MAAM,SAAS,CAAA;AAI7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"bundleConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/bundleConfig.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACzE,OAAO,OAAO,MAAM,SAAS,CAAA;AAI7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAyE1C,KAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAChB,MAAM,EACN;QACE,YAAY,EAAE,YAAY,CAAA;KAC3B,CACF,CAAA;CACF,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC/B,SAAS,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IACpC,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAgGD,eAAO,MAAM,cAAc;;;;;;;;CAEK,CAAA;AAGhC,eAAO,MAAM,yBAAyB;;;;;;;;;CAGN,CAAA;AAEhC,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;AAQxF,wBAAgB,uBAAuB,YAMtC;AAID,eAAO,MAAM,eAAe,gCAAqB,CAAA;AAEjD,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,UAAQ,gBASxE;AAgBD,wBAAsB,YAAY,CAAC,KAAK,EAAE,UAAU,gBAmPnD;AAED,wBAAsB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,iBAmB7E;AAED,wBAAsB,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,YAAY,UAAQ,+BAI3E;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,YAAY,UAAQ,sBAIzE;AAqBD,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,UAAU,EACjB,YAAY,UAAQ,GACnB,OAAO,CAAC,IAAI,GAAG,gBAAgB,EAAE,CAAC,CAyJpC;AAGD,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,UAAU,EACjB,YAAY,UAAQ,GACnB,IAAI,GAAG,gBAAgB,EAAE,CAyI3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasTopLevelAwait.d.ts","sourceRoot":"","sources":["../../src/extractor/hasTopLevelAwait.ts"],"names":[],"mappings":"AAGA,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,WAwBnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRequire.d.ts","sourceRoot":"","sources":["../src/registerRequire.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C,eAAO,MAAM,cAAc,UAAoB,CAAA;AAa/C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,QAEzD;
|
|
1
|
+
{"version":3,"file":"registerRequire.d.ts","sourceRoot":"","sources":["../src/registerRequire.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C,eAAO,MAAM,cAAc,UAAoB,CAAA;AAa/C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,QAEzD;AAgCD,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,WAAW,EACrB,EAAE,gBAAgB,EAAE;;CAEnB;uBAkDyB,GAAG,QAAQ,MAAM;;EAqJ5C"}
|