@hanzogui/static 3.0.6 → 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/check-dep-versions.cjs +201 -96
- package/dist/checkDeps.cjs +163 -92
- package/dist/constants.cjs +32 -30
- package/dist/exports.cjs +15 -13
- package/dist/extractor/accessSafe.cjs +25 -23
- package/dist/extractor/babelParse.cjs +30 -28
- package/dist/extractor/buildClassName.cjs +59 -35
- package/dist/extractor/bundle.cjs +163 -105
- package/dist/extractor/bundleConfig.cjs +467 -264
- package/dist/extractor/concatClassName.cjs +41 -29
- package/dist/extractor/createEvaluator.cjs +54 -41
- package/dist/extractor/createExtractor.cjs +1338 -661
- package/dist/extractor/createLogger.cjs +30 -25
- package/dist/extractor/detectModuleFormat.cjs +22 -16
- package/dist/extractor/ensureImportingConcat.cjs +31 -25
- package/dist/extractor/errors.cjs +12 -10
- package/dist/extractor/esbuildAliasPlugin.cjs +28 -16
- package/dist/extractor/esbuildTsconfigPaths.cjs +58 -36
- package/dist/extractor/evaluateAstNode.cjs +104 -59
- package/dist/extractor/extractHelpers.cjs +130 -67
- package/dist/extractor/extractMediaStyle.cjs +110 -69
- package/dist/extractor/extractToClassNames.cjs +336 -230
- package/dist/extractor/extractToNative.cjs +244 -149
- package/dist/extractor/findTopmostFunction.cjs +22 -13
- package/dist/extractor/generatedUid.cjs +39 -28
- package/dist/extractor/getGuiConfigPathFromOptionsConfig.cjs +20 -14
- package/dist/extractor/getPrefixLogs.cjs +12 -10
- package/dist/extractor/getPropValueFromAttributes.cjs +52 -34
- package/dist/extractor/getSourceModule.cjs +73 -37
- package/dist/extractor/getStaticBindingsForScope.cjs +131 -68
- package/dist/extractor/hasTopLevelAwait.cjs +62 -0
- package/dist/extractor/hoistClassNames.cjs +46 -32
- package/dist/extractor/literalToAst.cjs +67 -42
- package/dist/extractor/loadFile.cjs +9 -3
- package/dist/extractor/loadGui.cjs +198 -109
- package/dist/extractor/logLines.cjs +27 -19
- package/dist/extractor/normalizeTernaries.cjs +66 -44
- package/dist/extractor/propsToFontFamilyCache.cjs +15 -11
- package/dist/extractor/regenerateConfig.cjs +109 -81
- package/dist/extractor/removeUnusedHooks.cjs +73 -41
- package/dist/extractor/timer.cjs +23 -14
- package/dist/extractor/validHTMLAttributes.cjs +61 -59
- package/dist/extractor/watchGuiConfig.cjs +35 -23
- package/dist/getPragmaOptions.cjs +34 -19
- package/dist/helpers/memoize.cjs +24 -16
- package/dist/helpers/requireGuiCore.cjs +22 -15
- package/dist/index.cjs +26 -24
- package/dist/registerRequire.cjs +170 -77
- package/dist/server.cjs +35 -28
- package/dist/types.cjs +7 -5
- package/dist/worker.cjs +62 -40
- package/package.json +15 -15
- package/src/checkDeps.ts +1 -1
- package/src/extractor/babelParse.ts +1 -0
- package/src/extractor/bundle.ts +6 -6
- package/src/extractor/bundleConfig.ts +10 -10
- package/src/extractor/createExtractor.ts +28 -13
- package/src/extractor/createLogger.ts +1 -3
- package/src/extractor/extractToNative.ts +35 -9
- package/src/extractor/hasTopLevelAwait.ts +28 -0
- package/src/extractor/loadGui.ts +4 -4
- package/src/extractor/regenerateConfig.ts +2 -2
- package/src/getPragmaOptions.ts +2 -2
- package/src/helpers/requireGuiCore.ts +6 -6
- package/src/registerRequire.ts +52 -5
- package/src/worker.ts +1 -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/createExtractor.d.ts.map +1 -1
- package/types/extractor/createLogger.d.ts.map +1 -1
- package/types/extractor/extractToNative.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
- package/types/worker.d.ts +1 -1
|
@@ -210,7 +210,7 @@ export function getBabelParseDefinition(options: GuiOptions) {
|
|
|
210
210
|
const finalAttrs: (t.JSXAttribute | t.JSXSpreadAttribute)[] = []
|
|
211
211
|
const themeKeysUsed = new Set<string>()
|
|
212
212
|
|
|
213
|
-
function getStyleExpression(style: object | null) {
|
|
213
|
+
function getStyleExpression(style: object | null, forTernary = false) {
|
|
214
214
|
if (!style) return
|
|
215
215
|
|
|
216
216
|
// split theme properties and leave them as props since RN has no concept of theme
|
|
@@ -226,13 +226,24 @@ export function getBabelParseDefinition(options: GuiOptions) {
|
|
|
226
226
|
// make a sub-array
|
|
227
227
|
themeExpr = getThemedStyleExpression(themed)
|
|
228
228
|
}
|
|
229
|
-
const
|
|
229
|
+
const hasPlainKeys = Object.keys(plain).length > 0
|
|
230
|
+
const ident = hasPlainKeys ? addSheetStyle(plain, props.node) : null
|
|
230
231
|
if (themeExpr) {
|
|
231
|
-
|
|
232
|
-
|
|
232
|
+
if (forTernary) {
|
|
233
|
+
// for ternary branches, return combined expression
|
|
234
|
+
// without adding plain styles unconditionally
|
|
235
|
+
if (ident) {
|
|
236
|
+
return t.arrayExpression([ident, themeExpr])
|
|
237
|
+
}
|
|
238
|
+
return themeExpr
|
|
239
|
+
}
|
|
240
|
+
// for base styles, add unconditionally
|
|
241
|
+
if (ident) {
|
|
242
|
+
addStyleExpression(ident)
|
|
243
|
+
addStyleExpression(ident, true)
|
|
244
|
+
}
|
|
233
245
|
return themeExpr
|
|
234
246
|
}
|
|
235
|
-
// since we only do flattened disabling this path
|
|
236
247
|
return ident
|
|
237
248
|
}
|
|
238
249
|
|
|
@@ -268,6 +279,7 @@ export function getBabelParseDefinition(options: GuiOptions) {
|
|
|
268
279
|
}
|
|
269
280
|
|
|
270
281
|
let hasDynamicStyle = false
|
|
282
|
+
let hasMediaKeys = false
|
|
271
283
|
|
|
272
284
|
for (const attr of props.attrs) {
|
|
273
285
|
switch (attr.type) {
|
|
@@ -280,8 +292,12 @@ export function getBabelParseDefinition(options: GuiOptions) {
|
|
|
280
292
|
|
|
281
293
|
case 'ternary': {
|
|
282
294
|
const { consequent, alternate } = attr.value
|
|
283
|
-
const consExpr = getStyleExpression(consequent)
|
|
284
|
-
const altExpr = getStyleExpression(alternate)
|
|
295
|
+
const consExpr = getStyleExpression(consequent, true)
|
|
296
|
+
const altExpr = getStyleExpression(alternate, true)
|
|
297
|
+
|
|
298
|
+
if (attr.value.inlineMediaQuery) {
|
|
299
|
+
hasMediaKeys = true
|
|
300
|
+
}
|
|
285
301
|
|
|
286
302
|
expressions.push(attr.value.test)
|
|
287
303
|
addStyleExpression(
|
|
@@ -338,6 +354,7 @@ export function getBabelParseDefinition(options: GuiOptions) {
|
|
|
338
354
|
const WrapperIdentifier = t.identifier(wrapperName)
|
|
339
355
|
const WrapperJSXIdentifier = t.jsxIdentifier(wrapperName)
|
|
340
356
|
|
|
357
|
+
const hasThemeKeysFlag = themeKeysUsed.size > 0
|
|
341
358
|
root.pushContainer(
|
|
342
359
|
'body',
|
|
343
360
|
t.variableDeclaration('const', [
|
|
@@ -350,6 +367,8 @@ export function getBabelParseDefinition(options: GuiOptions) {
|
|
|
350
367
|
// return styles directly - no useMemo, theme changes must trigger style recalc
|
|
351
368
|
t.arrayExpression([...hocStylesExpr.elements])
|
|
352
369
|
),
|
|
370
|
+
t.booleanLiteral(hasThemeKeysFlag),
|
|
371
|
+
t.booleanLiteral(hasMediaKeys),
|
|
353
372
|
])
|
|
354
373
|
),
|
|
355
374
|
])
|
|
@@ -365,10 +384,17 @@ export function getBabelParseDefinition(options: GuiOptions) {
|
|
|
365
384
|
}
|
|
366
385
|
|
|
367
386
|
if (expressions.length) {
|
|
387
|
+
// coerce runtime expressions to boolean so they can't be
|
|
388
|
+
// confused with string media keys at runtime
|
|
389
|
+
const safeExpressions = expressions.map((expr) =>
|
|
390
|
+
t.isStringLiteral(expr)
|
|
391
|
+
? expr
|
|
392
|
+
: t.unaryExpression('!', t.unaryExpression('!', expr))
|
|
393
|
+
)
|
|
368
394
|
props.node.attributes.push(
|
|
369
395
|
t.jsxAttribute(
|
|
370
396
|
t.jsxIdentifier('_expressions'),
|
|
371
|
-
t.jsxExpressionContainer(t.arrayExpression(
|
|
397
|
+
t.jsxExpressionContainer(t.arrayExpression(safeExpressions))
|
|
372
398
|
)
|
|
373
399
|
)
|
|
374
400
|
}
|
|
@@ -393,7 +419,7 @@ export function getBabelParseDefinition(options: GuiOptions) {
|
|
|
393
419
|
if (message.includes('Unexpected return value from visitor method')) {
|
|
394
420
|
message = 'Unexpected return value from visitor method'
|
|
395
421
|
}
|
|
396
|
-
console.warn('Error in
|
|
422
|
+
console.warn('Error in GUI parse, skipping', message, err.stack)
|
|
397
423
|
return
|
|
398
424
|
}
|
|
399
425
|
}
|
|
@@ -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/extractor/loadGui.ts
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
|
|
28
28
|
const getFilledOptions = (propsIn: Partial<GuiOptions>): GuiOptions => ({
|
|
29
29
|
// defaults
|
|
30
|
-
platform: (process.env.
|
|
30
|
+
platform: (process.env.GUI_TARGET as any) || 'web',
|
|
31
31
|
config: 'gui.config.ts',
|
|
32
32
|
components: ['@hanzo/gui'],
|
|
33
33
|
...(propsIn as Partial<GuiOptions>),
|
|
@@ -248,7 +248,7 @@ export function loadGuiSync({
|
|
|
248
248
|
// lets shim require and avoid importing react-native + react-native-web
|
|
249
249
|
// we just need to read the config around them
|
|
250
250
|
process.env.IS_STATIC = 'is_static'
|
|
251
|
-
process.env.
|
|
251
|
+
process.env.GUI_IS_SERVER = 'true'
|
|
252
252
|
|
|
253
253
|
const { unregister } = registerRequire(props.platform || 'web', {
|
|
254
254
|
proxyWormImports: !!forceExports,
|
|
@@ -370,7 +370,7 @@ export async function getOptions({
|
|
|
370
370
|
debug,
|
|
371
371
|
tsconfigPath,
|
|
372
372
|
guiOptions: {
|
|
373
|
-
platform: (process.env.
|
|
373
|
+
platform: (process.env.GUI_TARGET as any) || 'web',
|
|
374
374
|
components: ['@hanzo/gui'],
|
|
375
375
|
...guiOptions,
|
|
376
376
|
config:
|
|
@@ -390,7 +390,7 @@ export function resolveWebOrNativeSpecificEntry(entry: string) {
|
|
|
390
390
|
const resolved = require.resolve(entry, { paths: [workspaceRoot] })
|
|
391
391
|
const ext = extname(resolved)
|
|
392
392
|
const fileName = basename(resolved).replace(ext, '')
|
|
393
|
-
const specificExt = process.env.
|
|
393
|
+
const specificExt = process.env.GUI_TARGET === 'web' ? 'web' : 'native'
|
|
394
394
|
const specificFile = join(dirname(resolved), fileName + '.' + specificExt + ext)
|
|
395
395
|
if (fsExtra.existsSync(specificFile)) {
|
|
396
396
|
return specificFile
|
|
@@ -33,7 +33,7 @@ export async function regenerateConfig(
|
|
|
33
33
|
spaces: 2,
|
|
34
34
|
})
|
|
35
35
|
} catch (err) {
|
|
36
|
-
if (process.env.DEBUG?.includes('@hanzo/gui') || process.env.
|
|
36
|
+
if (process.env.DEBUG?.includes('@hanzo/gui') || process.env.IS_GUI_DEV) {
|
|
37
37
|
console.warn('regenerateConfig error', err)
|
|
38
38
|
}
|
|
39
39
|
// ignore for now
|
|
@@ -47,7 +47,7 @@ export function regenerateConfigSync(_guiOptions: GuiOptions, config: BundledCon
|
|
|
47
47
|
spaces: 2,
|
|
48
48
|
})
|
|
49
49
|
} catch (err) {
|
|
50
|
-
if (process.env.DEBUG?.includes('@hanzo/gui') || process.env.
|
|
50
|
+
if (process.env.DEBUG?.includes('@hanzo/gui') || process.env.IS_GUI_DEV) {
|
|
51
51
|
console.warn('regenerateConfig error', err)
|
|
52
52
|
}
|
|
53
53
|
// ignore for now
|
package/src/getPragmaOptions.ts
CHANGED
|
@@ -36,8 +36,8 @@ export function getPragmaOptions({ source, path }: { source: string; path: strin
|
|
|
36
36
|
break
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
if (process.env.
|
|
40
|
-
if (path.includes(process.env.
|
|
39
|
+
if (process.env.GUI_DEBUG_FILE) {
|
|
40
|
+
if (path.includes(process.env.GUI_DEBUG_FILE)) {
|
|
41
41
|
shouldPrintDebug = 'verbose'
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -11,18 +11,18 @@ export function requireGuiCore(
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
// avoid tree shaking out themes
|
|
14
|
-
const og1 = process.env.
|
|
15
|
-
const og2 = process.env.
|
|
16
|
-
process.env.
|
|
17
|
-
process.env.
|
|
14
|
+
const og1 = process.env.GUI_IS_SERVER
|
|
15
|
+
const og2 = process.env.GUI_KEEP_THEMES
|
|
16
|
+
process.env.GUI_IS_SERVER ||= '1'
|
|
17
|
+
process.env.GUI_KEEP_THEMES ||= '1'
|
|
18
18
|
|
|
19
19
|
const exported = ogRequire(
|
|
20
20
|
platform === 'native' ? '@hanzogui/core/native' : '@hanzogui/core'
|
|
21
21
|
)
|
|
22
22
|
|
|
23
23
|
// restore back
|
|
24
|
-
process.env.
|
|
25
|
-
process.env.
|
|
24
|
+
process.env.GUI_IS_SERVER = og1
|
|
25
|
+
process.env.GUI_KEEP_THEMES = og2
|
|
26
26
|
|
|
27
27
|
return exported
|
|
28
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
|
|
@@ -165,7 +212,7 @@ export function registerRequire(
|
|
|
165
212
|
return out
|
|
166
213
|
} catch (err: any) {
|
|
167
214
|
if (
|
|
168
|
-
!process.env.
|
|
215
|
+
!process.env.GUI_ENABLE_WARN_DYNAMIC_LOAD &&
|
|
169
216
|
path.includes('gui-dynamic-eval')
|
|
170
217
|
) {
|
|
171
218
|
// ok, dynamic eval fails
|
|
@@ -173,7 +220,7 @@ export function registerRequire(
|
|
|
173
220
|
}
|
|
174
221
|
if (allowedIgnores[path] || IGNORES === 'true') {
|
|
175
222
|
// ignore
|
|
176
|
-
} else if (!process.env.
|
|
223
|
+
} else if (!process.env.GUI_SHOW_FULL_BUNDLE_ERRORS && !process.env.DEBUG) {
|
|
177
224
|
if (hasWarnedForModules.has(path)) {
|
|
178
225
|
// ignore
|
|
179
226
|
} else {
|
|
@@ -186,7 +233,7 @@ export function registerRequire(
|
|
|
186
233
|
*/
|
|
187
234
|
|
|
188
235
|
console.warn(
|
|
189
|
-
` [hanzo-gui] skipped "${path}" (set
|
|
236
|
+
` [hanzo-gui] skipped "${path}" (set GUI_IGNORE_BUNDLE_ERRORS="${path}" to silence)`
|
|
190
237
|
)
|
|
191
238
|
}
|
|
192
239
|
|
|
@@ -212,7 +259,7 @@ export function registerRequire(
|
|
|
212
259
|
}
|
|
213
260
|
|
|
214
261
|
const IGNORES =
|
|
215
|
-
process.env.
|
|
262
|
+
process.env.GUI_IGNORE_BUNDLE_ERRORS || process.env.GUI_IGNORE_BUNDLE_ERRORS
|
|
216
263
|
const extraIgnores = IGNORES === 'true' ? [] : IGNORES?.split(',')
|
|
217
264
|
|
|
218
265
|
const knownIgnorableModules = {
|
package/src/worker.ts
CHANGED
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createExtractor.d.ts","sourceRoot":"","sources":["../../src/extractor/createExtractor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,iBAAiB,CAAA;AAEhE,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAmBjC,OAAO,KAAK,EAGV,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EAGX,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAoB,cAAc,EAAE,MAAM,gBAAgB,CAAA;AActE,OAAO,EAAE,iBAAiB,EAA6B,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"createExtractor.d.ts","sourceRoot":"","sources":["../../src/extractor/createExtractor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,iBAAiB,CAAA;AAEhE,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAmBjC,OAAO,KAAK,EAGV,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EAGX,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAoB,cAAc,EAAE,MAAM,gBAAgB,CAAA;AActE,OAAO,EAAE,iBAAiB,EAA6B,MAAM,6BAA6B,CAAA;AAwB1F,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D,KAAK,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAQ9C,wBAAgB,eAAe,CAC7B,EAAE,MAAgB,EAAE,QAAgB,EAAE,GAAE,gBAAsC;;;;;qBAsJnD,UAAU;yBAPZ,UAAU;;mBAwBlB,UAAU,SAAS,mBAAmB;;;;;;;eAKpC,UAAU,SAAS,mBAAmB;;;;;;;EAq3E1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLogger.d.ts","sourceRoot":"","sources":["../../src/extractor/createLogger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"createLogger.d.ts","sourceRoot":"","sources":["../../src/extractor/createLogger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,IAM1D,QAAG,UA2BZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractToNative.d.ts","sourceRoot":"","sources":["../../src/extractor/extractToNative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,aAAa,CAAA;AAQxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAsB1C,wBAAgB,eAAe,CAC7B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,UAAU,GAClB,eAAe,CAoBjB;AAED,wBAAgB,cAAc,QAK7B;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,UAAU;;;;wBAMvC,GAAG;;;
|
|
1
|
+
{"version":3,"file":"extractToNative.d.ts","sourceRoot":"","sources":["../../src/extractor/extractToNative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,aAAa,CAAA;AAQxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAsB1C,wBAAgB,eAAe,CAC7B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,UAAU,GAClB,eAAe,CAoBjB;AAED,wBAAgB,cAAc,QAK7B;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,UAAU;;;;wBAMvC,GAAG;;;EAyYtB"}
|
|
@@ -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"}
|
package/types/worker.d.ts
CHANGED