@stencil/core 4.43.1 → 4.43.2-dev.1772429103.534643f
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +140 -20
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +22 -13
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +20 -13
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +4 -1
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +11 -0
- package/internal/testing/index.js +13 -2
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +4 -1
- package/mock-doc/index.d.ts +2 -1
- package/mock-doc/index.js +4 -1
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +28 -28
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +2 -1
- package/testing/package.json +1 -1
package/cli/index.cjs
CHANGED
package/cli/index.js
CHANGED
package/cli/package.json
CHANGED
package/compiler/package.json
CHANGED
package/compiler/stencil.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Compiler v4.43.
|
|
2
|
+
Stencil Compiler v4.43.2-dev.1772429103.534643f | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __create = Object.create;
|
|
@@ -247708,7 +247708,7 @@ var import_typescript72 = __toESM(require_typescript_5_8_3_bundle_cache_min());
|
|
|
247708
247708
|
|
|
247709
247709
|
// src/version.ts
|
|
247710
247710
|
init_import_meta_url();
|
|
247711
|
-
var buildId = "
|
|
247711
|
+
var buildId = "1772429103";
|
|
247712
247712
|
var minfyJsId = "terser5.37.0_7";
|
|
247713
247713
|
var optimizeCssId = "autoprefixer10.4.19_postcss8.5.6_7";
|
|
247714
247714
|
var parse5Version = "7.2.1";
|
|
@@ -247716,8 +247716,8 @@ var rollupVersion = "4.44.0";
|
|
|
247716
247716
|
var jqueryVersion = "4.0.0-pre";
|
|
247717
247717
|
var terserVersion = "5.37.0";
|
|
247718
247718
|
var typescriptVersion = "5.8.3";
|
|
247719
|
-
var vermoji = "\u{
|
|
247720
|
-
var version = "4.43.
|
|
247719
|
+
var vermoji = "\u{1F3D5}";
|
|
247720
|
+
var version = "4.43.2-dev.1772429103.534643f";
|
|
247721
247721
|
var versions = {
|
|
247722
247722
|
stencil: version,
|
|
247723
247723
|
parse5: parse5Version,
|
|
@@ -250343,6 +250343,9 @@ init_import_meta_url();
|
|
|
250343
250343
|
// src/utils/es2022-rewire-class-members.ts
|
|
250344
250344
|
init_import_meta_url();
|
|
250345
250345
|
|
|
250346
|
+
// src/utils/get-prop-descriptor.ts
|
|
250347
|
+
init_import_meta_url();
|
|
250348
|
+
|
|
250346
250349
|
// src/client/client-load-module.ts
|
|
250347
250350
|
init_import_meta_url();
|
|
250348
250351
|
|
|
@@ -251244,6 +251247,7 @@ var getModuleLegacy = (compilerCtx, sourceFilePath) => {
|
|
|
251244
251247
|
cmps: [],
|
|
251245
251248
|
isExtended: false,
|
|
251246
251249
|
isMixin: false,
|
|
251250
|
+
hasExportableMixins: false,
|
|
251247
251251
|
coreRuntimeApis: [],
|
|
251248
251252
|
outputTargetCoreRuntimeApis: {},
|
|
251249
251253
|
collectionName: null,
|
|
@@ -252986,6 +252990,9 @@ var writeCollectionManifest = async (compilerCtx, collectionData, outputTarget)
|
|
|
252986
252990
|
var serializeCollectionManifest = (config, compilerCtx, buildCtx) => {
|
|
252987
252991
|
const collectionManifest = {
|
|
252988
252992
|
entries: buildCtx.moduleFiles.filter((mod) => !mod.isCollectionDependency && mod.cmps.length > 0).map((mod) => relative(config.srcDir, mod.jsFilePath)),
|
|
252993
|
+
// Include mixin/abstract class modules that can be extended by consuming projects
|
|
252994
|
+
// These are modules with Stencil static members but no @Component decorator
|
|
252995
|
+
mixins: buildCtx.moduleFiles.filter((mod) => !mod.isCollectionDependency && mod.hasExportableMixins && mod.cmps.length === 0).map((mod) => relative(config.srcDir, mod.jsFilePath)),
|
|
252989
252996
|
compiler: {
|
|
252990
252997
|
name: "@stencil/core",
|
|
252991
252998
|
version,
|
|
@@ -260023,6 +260030,7 @@ var createModule = (staticSourceFile, staticSourceFileText, emitFilepath) => ({
|
|
|
260023
260030
|
cmps: [],
|
|
260024
260031
|
isExtended: false,
|
|
260025
260032
|
isMixin: false,
|
|
260033
|
+
hasExportableMixins: false,
|
|
260026
260034
|
coreRuntimeApis: [],
|
|
260027
260035
|
outputTargetCoreRuntimeApis: {},
|
|
260028
260036
|
collectionName: null,
|
|
@@ -270601,7 +270609,8 @@ var KEEP_IMPORTS = /* @__PURE__ */ new Set([
|
|
|
270601
270609
|
"Mixin",
|
|
270602
270610
|
"jsx",
|
|
270603
270611
|
"jsxs",
|
|
270604
|
-
"jsxDEV"
|
|
270612
|
+
"jsxDEV",
|
|
270613
|
+
"render"
|
|
270605
270614
|
]);
|
|
270606
270615
|
|
|
270607
270616
|
// src/compiler/output-targets/dist-custom-elements/custom-elements-build-conditionals.ts
|
|
@@ -280209,6 +280218,23 @@ var parseCallExpression = (m, node, typeChecker) => {
|
|
|
280209
280218
|
visitCallExpressionArgs(m, n3, node.arguments, typeChecker);
|
|
280210
280219
|
}
|
|
280211
280220
|
}
|
|
280221
|
+
} else if (import_typescript58.default.isPropertyAccessExpression(node.expression)) {
|
|
280222
|
+
if (import_typescript58.default.isIdentifier(node.expression.name)) {
|
|
280223
|
+
const symbol = typeChecker == null ? void 0 : typeChecker.getSymbolAtLocation(node.expression);
|
|
280224
|
+
if (!symbol) return;
|
|
280225
|
+
const declarations = symbol.getDeclarations();
|
|
280226
|
+
if (!declarations || declarations.length === 0) return;
|
|
280227
|
+
const declaration = declarations[0];
|
|
280228
|
+
const sourceFile = declaration.getSourceFile();
|
|
280229
|
+
if (!sourceFile) return;
|
|
280230
|
+
const sourceFilePath = normalizePath(sourceFile.fileName);
|
|
280231
|
+
const moduleFile = m;
|
|
280232
|
+
if (moduleFile.functionalComponentDeps) {
|
|
280233
|
+
if (!moduleFile.functionalComponentDeps.includes(sourceFilePath)) {
|
|
280234
|
+
moduleFile.functionalComponentDeps.push(sourceFilePath);
|
|
280235
|
+
}
|
|
280236
|
+
}
|
|
280237
|
+
}
|
|
280212
280238
|
}
|
|
280213
280239
|
};
|
|
280214
280240
|
var visitCallExpressionArgs = (m, callExpressionName, args, typeChecker) => {
|
|
@@ -280835,6 +280861,11 @@ function matchesNamedDeclaration(name) {
|
|
|
280835
280861
|
return false;
|
|
280836
280862
|
};
|
|
280837
280863
|
}
|
|
280864
|
+
function convertDtsToJs(declarationSourceFile, compilerCtx) {
|
|
280865
|
+
const jsPath = normalizePath(declarationSourceFile.replace(/\.d\.ts$/, ".js").replace("/types/", "/collection/"));
|
|
280866
|
+
const jsModule = compilerCtx.moduleMap.get(jsPath);
|
|
280867
|
+
return jsModule == null ? void 0 : jsModule.staticSourceFile;
|
|
280868
|
+
}
|
|
280838
280869
|
function buildExtendsTree(compilerCtx, classDeclaration3, dependentClasses, typeChecker, buildCtx, ogModule) {
|
|
280839
280870
|
const hasHeritageClauses = classDeclaration3.heritageClauses;
|
|
280840
280871
|
if (!(hasHeritageClauses == null ? void 0 : hasHeritageClauses.length)) return dependentClasses;
|
|
@@ -280851,13 +280882,19 @@ function buildExtendsTree(compilerCtx, classDeclaration3, dependentClasses, type
|
|
|
280851
280882
|
}
|
|
280852
280883
|
});
|
|
280853
280884
|
classIdentifiers.forEach((extendee) => {
|
|
280854
|
-
var _a2, _b, _c
|
|
280885
|
+
var _a2, _b, _c;
|
|
280855
280886
|
try {
|
|
280856
|
-
const symbol = typeChecker.getSymbolAtLocation(extendee);
|
|
280887
|
+
const symbol = typeChecker == null ? void 0 : typeChecker.getSymbolAtLocation(extendee);
|
|
280857
280888
|
const aliasedSymbol = symbol ? typeChecker.getAliasedSymbol(symbol) : void 0;
|
|
280858
|
-
|
|
280889
|
+
let source = (_a2 = aliasedSymbol == null ? void 0 : aliasedSymbol.declarations) == null ? void 0 : _a2[0].getSourceFile();
|
|
280890
|
+
let declarations = aliasedSymbol == null ? void 0 : aliasedSymbol.declarations;
|
|
280891
|
+
if (source.fileName.endsWith(".d.ts")) {
|
|
280892
|
+
source = convertDtsToJs(source.fileName, compilerCtx);
|
|
280893
|
+
declarations = [...source.statements];
|
|
280894
|
+
}
|
|
280895
|
+
foundClassDeclaration = declarations == null ? void 0 : declarations.find(import_typescript61.default.isClassDeclaration);
|
|
280859
280896
|
if (!foundClassDeclaration) {
|
|
280860
|
-
const node =
|
|
280897
|
+
const node = declarations == null ? void 0 : declarations[0];
|
|
280861
280898
|
foundClassDeclaration = findClassWalk(node);
|
|
280862
280899
|
if (!node) {
|
|
280863
280900
|
throw "revert to sad path";
|
|
@@ -280867,10 +280904,10 @@ function buildExtendsTree(compilerCtx, classDeclaration3, dependentClasses, type
|
|
|
280867
280904
|
if (foundClassDeclaration && !dependentClasses.some((dc) => dc.classNode === foundClassDeclaration)) {
|
|
280868
280905
|
const foundModule = compilerCtx.moduleMap.get(foundClassDeclaration.getSourceFile().fileName);
|
|
280869
280906
|
if (foundModule) {
|
|
280870
|
-
const
|
|
280871
|
-
const sourceClass = findClassWalk(
|
|
280907
|
+
const source2 = foundModule.staticSourceFile;
|
|
280908
|
+
const sourceClass = findClassWalk(source2, (_b = foundClassDeclaration.name) == null ? void 0 : _b.getText());
|
|
280872
280909
|
if (sourceClass) {
|
|
280873
|
-
dependentClasses.push({ classNode: sourceClass, sourceFile:
|
|
280910
|
+
dependentClasses.push({ classNode: sourceClass, sourceFile: source2, fileName: source2.fileName });
|
|
280874
280911
|
if (keepLooking) {
|
|
280875
280912
|
buildExtendsTree(compilerCtx, foundClassDeclaration, dependentClasses, typeChecker, buildCtx, ogModule);
|
|
280876
280913
|
}
|
|
@@ -280888,7 +280925,7 @@ function buildExtendsTree(compilerCtx, classDeclaration3, dependentClasses, type
|
|
|
280888
280925
|
}
|
|
280889
280926
|
if (!currentSource) {
|
|
280890
280927
|
const err2 = buildWarn(buildCtx.diagnostics);
|
|
280891
|
-
err2.messageText = `Unable to find source file for class "${(
|
|
280928
|
+
err2.messageText = `Unable to find source file for class "${(_c = classDeclaration3.name) == null ? void 0 : _c.getText()}"`;
|
|
280892
280929
|
if (!buildCtx.config._isTesting) augmentDiagnosticWithNode(err2, classDeclaration3);
|
|
280893
280930
|
return;
|
|
280894
280931
|
}
|
|
@@ -281253,6 +281290,12 @@ init_import_meta_url();
|
|
|
281253
281290
|
init_import_meta_url();
|
|
281254
281291
|
var import_typescript63 = __toESM(require_typescript_5_8_3_bundle_cache_min());
|
|
281255
281292
|
var parseCollectionComponents = (config, compilerCtx, buildCtx, collectionDir, collectionManifest, collection) => {
|
|
281293
|
+
if (collectionManifest.mixins) {
|
|
281294
|
+
collectionManifest.mixins.forEach((mixinPath) => {
|
|
281295
|
+
const fullPath = join(collectionDir, mixinPath);
|
|
281296
|
+
transpileCollectionModule(config, compilerCtx, buildCtx, collection, fullPath);
|
|
281297
|
+
});
|
|
281298
|
+
}
|
|
281256
281299
|
if (collectionManifest.entries) {
|
|
281257
281300
|
collectionManifest.entries.forEach((entryPath) => {
|
|
281258
281301
|
const componentPath = join(collectionDir, entryPath);
|
|
@@ -281436,6 +281479,28 @@ var parseModuleImport = (config, compilerCtx, buildCtx, moduleFile, dirPath, imp
|
|
|
281436
281479
|
};
|
|
281437
281480
|
|
|
281438
281481
|
// src/compiler/transformers/static-to-meta/parse-static.ts
|
|
281482
|
+
var STENCIL_MIXIN_STATIC_MEMBERS = ["properties", "states", "methods", "events", "listeners", "watchers"];
|
|
281483
|
+
var getMemberName = (member2) => {
|
|
281484
|
+
var _a2, _b;
|
|
281485
|
+
if (!member2.name) return void 0;
|
|
281486
|
+
if (import_typescript65.default.isIdentifier(member2.name)) {
|
|
281487
|
+
return (_b = member2.name.text) != null ? _b : (_a2 = member2.name.escapedText) == null ? void 0 : _a2.toString();
|
|
281488
|
+
}
|
|
281489
|
+
if (import_typescript65.default.isStringLiteral(member2.name)) {
|
|
281490
|
+
return member2.name.text;
|
|
281491
|
+
}
|
|
281492
|
+
return void 0;
|
|
281493
|
+
};
|
|
281494
|
+
var isExportableMixinClass = (classNode) => {
|
|
281495
|
+
const staticGetters = classNode.members.filter(isStaticGetter);
|
|
281496
|
+
if (staticGetters.length === 0) return false;
|
|
281497
|
+
const tagName = getComponentTagName(staticGetters);
|
|
281498
|
+
if (tagName) return false;
|
|
281499
|
+
return staticGetters.some((getter) => {
|
|
281500
|
+
const name = getMemberName(getter);
|
|
281501
|
+
return name && STENCIL_MIXIN_STATIC_MEMBERS.includes(name);
|
|
281502
|
+
});
|
|
281503
|
+
};
|
|
281439
281504
|
var updateModule = (config, compilerCtx, buildCtx, tsSourceFile, sourceFileText, emitFilePath, typeChecker, collection) => {
|
|
281440
281505
|
const sourceFilePath = normalizePath(tsSourceFile.fileName);
|
|
281441
281506
|
const prevModuleFile = getModule(compilerCtx, sourceFilePath);
|
|
@@ -281460,6 +281525,9 @@ var updateModule = (config, compilerCtx, buildCtx, tsSourceFile, sourceFileText,
|
|
|
281460
281525
|
const visitNode = (node) => {
|
|
281461
281526
|
if (import_typescript65.default.isClassDeclaration(node)) {
|
|
281462
281527
|
parseStaticComponentMeta(compilerCtx, typeChecker, node, moduleFile, buildCtx, void 0);
|
|
281528
|
+
if (isExportableMixinClass(node)) {
|
|
281529
|
+
moduleFile.hasExportableMixins = true;
|
|
281530
|
+
}
|
|
281463
281531
|
return;
|
|
281464
281532
|
} else if (import_typescript65.default.isImportDeclaration(node)) {
|
|
281465
281533
|
parseModuleImport(config, compilerCtx, buildCtx, moduleFile, srcDirPath, node, true);
|
|
@@ -281468,6 +281536,28 @@ var updateModule = (config, compilerCtx, buildCtx, tsSourceFile, sourceFileText,
|
|
|
281468
281536
|
parseCallExpression(moduleFile, node, typeChecker);
|
|
281469
281537
|
} else if (import_typescript65.default.isStringLiteral(node)) {
|
|
281470
281538
|
parseStringLiteral(moduleFile, node);
|
|
281539
|
+
} else if (import_typescript65.default.isVariableStatement(node)) {
|
|
281540
|
+
node.declarationList.declarations.forEach((declaration) => {
|
|
281541
|
+
if (declaration.initializer) {
|
|
281542
|
+
if (import_typescript65.default.isArrowFunction(declaration.initializer) || import_typescript65.default.isFunctionExpression(declaration.initializer)) {
|
|
281543
|
+
const funcBody = declaration.initializer.body;
|
|
281544
|
+
if (import_typescript65.default.isBlock(funcBody)) {
|
|
281545
|
+
funcBody.statements.forEach((statement) => {
|
|
281546
|
+
if (import_typescript65.default.isClassDeclaration(statement)) {
|
|
281547
|
+
if (isExportableMixinClass(statement)) {
|
|
281548
|
+
moduleFile.hasExportableMixins = true;
|
|
281549
|
+
}
|
|
281550
|
+
statement.members.forEach((member2) => {
|
|
281551
|
+
if (import_typescript65.default.isPropertyDeclaration(member2) && member2.initializer) {
|
|
281552
|
+
import_typescript65.default.forEachChild(member2.initializer, visitNode);
|
|
281553
|
+
}
|
|
281554
|
+
});
|
|
281555
|
+
}
|
|
281556
|
+
});
|
|
281557
|
+
}
|
|
281558
|
+
}
|
|
281559
|
+
}
|
|
281560
|
+
});
|
|
281471
281561
|
}
|
|
281472
281562
|
node.forEachChild(visitNode);
|
|
281473
281563
|
};
|
|
@@ -281477,7 +281567,7 @@ var updateModule = (config, compilerCtx, buildCtx, tsSourceFile, sourceFileText,
|
|
|
281477
281567
|
collection.moduleFiles.push(moduleFile);
|
|
281478
281568
|
}
|
|
281479
281569
|
visitNode(tsSourceFile);
|
|
281480
|
-
if (moduleFile.cmps.length > 0) {
|
|
281570
|
+
if (moduleFile.cmps.length > 0 || moduleFile.hasExportableMixins) {
|
|
281481
281571
|
moduleFile.staticSourceFile = import_typescript65.default.createSourceFile(
|
|
281482
281572
|
sourceFilePath,
|
|
281483
281573
|
sourceFileText,
|
|
@@ -281548,7 +281638,24 @@ var runTsProgram = async (config, compilerCtx, buildCtx, tsBuilder) => {
|
|
|
281548
281638
|
if (config.transformAliasedImportPaths) {
|
|
281549
281639
|
transformers.afterDeclarations.push(rewriteAliasedDTSImportPaths);
|
|
281550
281640
|
}
|
|
281551
|
-
tsBuilder.emit(void 0, emitCallback, void 0, false, transformers);
|
|
281641
|
+
const emitResult = tsBuilder.emit(void 0, emitCallback, void 0, false, transformers);
|
|
281642
|
+
if (emitResult.diagnostics.length > 0) {
|
|
281643
|
+
const emitDiagnostics = loadTypeScriptDiagnostics(emitResult.diagnostics);
|
|
281644
|
+
emitDiagnostics.forEach((diagnostic) => {
|
|
281645
|
+
if (diagnostic.code === "4094") {
|
|
281646
|
+
diagnostic.level = "warn";
|
|
281647
|
+
diagnostic.messageText = `${diagnostic.messageText}
|
|
281648
|
+
|
|
281649
|
+
This commonly occurs when using mixins that return classes with private or protected members. TypeScript cannot emit declaration files for anonymous classes with non-public members.
|
|
281650
|
+
|
|
281651
|
+
Possible solutions:
|
|
281652
|
+
1. Add explicit type annotations to your mixin's return type
|
|
281653
|
+
2. Use public members in your mixin classes
|
|
281654
|
+
3. Use JavaScript private fields (#field) instead of TypeScript's private keyword`;
|
|
281655
|
+
}
|
|
281656
|
+
});
|
|
281657
|
+
buildCtx.diagnostics.push(...emitDiagnostics);
|
|
281658
|
+
}
|
|
281552
281659
|
const changedmodules = Array.from(compilerCtx.changedModules.keys());
|
|
281553
281660
|
buildCtx.debug("Transpiled modules: " + JSON.stringify(changedmodules, null, "\n"));
|
|
281554
281661
|
buildCtx.moduleFiles = Array.from(compilerCtx.moduleMap.values());
|
|
@@ -281580,8 +281687,12 @@ var validateTypesAfterGeneration = async (config, compilerCtx, buildCtx, tsBuild
|
|
|
281580
281687
|
const tsProgram = tsBuilder.getProgram();
|
|
281581
281688
|
const typesOutputTarget = config.outputTargets.filter(isOutputTargetDistTypes);
|
|
281582
281689
|
const componentsDtsPath = join(config.srcDir, "components.d.ts");
|
|
281583
|
-
const
|
|
281584
|
-
if (
|
|
281690
|
+
const componentsDtsExistedBefore = await compilerCtx.fs.access(componentsDtsPath);
|
|
281691
|
+
if (!componentsDtsExistedBefore) {
|
|
281692
|
+
await generateAppTypes(config, compilerCtx, buildCtx, "src");
|
|
281693
|
+
return { hasTypesChanged: true, needsRebuild: true };
|
|
281694
|
+
}
|
|
281695
|
+
if (config.validateTypes) {
|
|
281585
281696
|
const sourceFiles = tsProgram.getSourceFiles().filter((sf) => {
|
|
281586
281697
|
const fileName = normalizePath(sf.fileName);
|
|
281587
281698
|
return !fileName.includes("node_modules") && !fileName.endsWith(".d.ts") && fileName.startsWith(normalizePath(config.srcDir));
|
|
@@ -281614,7 +281725,7 @@ var validateTypesAfterGeneration = async (config, compilerCtx, buildCtx, tsBuild
|
|
|
281614
281725
|
});
|
|
281615
281726
|
await Promise.all(srcRootDtsFiles);
|
|
281616
281727
|
}
|
|
281617
|
-
return hasTypesChanged;
|
|
281728
|
+
return { hasTypesChanged, needsRebuild: false };
|
|
281618
281729
|
};
|
|
281619
281730
|
var getRelativeDts = (config, srcPath, emitDtsPath) => {
|
|
281620
281731
|
const parts = [];
|
|
@@ -282516,7 +282627,7 @@ var build2 = async (config, compilerCtx, buildCtx, tsBuilder) => {
|
|
|
282516
282627
|
const emittedDts = await runTsProgram(config, compilerCtx, buildCtx, tsBuilder);
|
|
282517
282628
|
tsTimeSpan.finish("transpile finished");
|
|
282518
282629
|
if (buildCtx.hasError) return buildAbort(buildCtx);
|
|
282519
|
-
const
|
|
282630
|
+
const { hasTypesChanged, needsRebuild } = await validateTypesAfterGeneration(
|
|
282520
282631
|
config,
|
|
282521
282632
|
compilerCtx,
|
|
282522
282633
|
buildCtx,
|
|
@@ -282524,7 +282635,7 @@ var build2 = async (config, compilerCtx, buildCtx, tsBuilder) => {
|
|
|
282524
282635
|
emittedDts
|
|
282525
282636
|
);
|
|
282526
282637
|
if (buildCtx.hasError) return buildAbort(buildCtx);
|
|
282527
|
-
if (config.watch &&
|
|
282638
|
+
if (needsRebuild || config.watch && hasTypesChanged) {
|
|
282528
282639
|
return null;
|
|
282529
282640
|
}
|
|
282530
282641
|
buildCtx.stylesPromise = generateGlobalStyles(config, compilerCtx, buildCtx);
|
|
@@ -282560,6 +282671,15 @@ var createFullBuild = async (config, compilerCtx) => {
|
|
|
282560
282671
|
tsWatchProgram = null;
|
|
282561
282672
|
}
|
|
282562
282673
|
resolve10(result2);
|
|
282674
|
+
} else {
|
|
282675
|
+
if (tsWatchProgram) {
|
|
282676
|
+
tsWatchProgram.close();
|
|
282677
|
+
tsWatchProgram = null;
|
|
282678
|
+
}
|
|
282679
|
+
config.logger.debug("Rebuilding with fresh TypeScript program after components.d.ts generation");
|
|
282680
|
+
createTsBuildProgram(config, onBuild).then((program3) => {
|
|
282681
|
+
tsWatchProgram = program3;
|
|
282682
|
+
});
|
|
282563
282683
|
}
|
|
282564
282684
|
};
|
|
282565
282685
|
createTsBuildProgram(config, onBuild).then((program3) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<!doctype html><html><head><meta charset="utf-8"><title>Stencil Dev Server Connector 4.43.
|
|
1
|
+
<!doctype html><html><head><meta charset="utf-8"><title>Stencil Dev Server Connector 4.43.2-dev.1772429103.534643f ⚡</title><style>body{background:black;color:white;font:18px monospace;text-align:center}</style></head><body>
|
|
2
2
|
|
|
3
|
-
Stencil Dev Server Connector 4.43.
|
|
3
|
+
Stencil Dev Server Connector 4.43.2-dev.1772429103.534643f ⚡
|
|
4
4
|
|
|
5
5
|
<script>!function(e,t,n){"use strict";var r="#dev-server-modal * { box-sizing: border-box !important; } #dev-server-modal { direction: ltr !important; display: block !important; position: absolute !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; z-index: 100000; margin: 0 !important; padding: 0 !important; font-family: -apple-system, 'Roboto', BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important; font-size: 14px !important; line-height: 1.5 !important; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; text-size-adjust: none; word-wrap: break-word; color: #333 !important; background-color: white !important; box-sizing: border-box !important; overflow: hidden; user-select: auto; } #dev-server-modal-inner { position: relative !important; padding: 0 0 30px 0 !important; width: 100% !important; height: 100%; overflow-x: hidden; overflow-y: scroll; -webkit-overflow-scrolling: touch; } .dev-server-diagnostic { margin: 20px !important; border: 1px solid #ddd !important; border-radius: 3px !important; } .dev-server-diagnostic-masthead { padding: 8px 12px 12px 12px !important; } .dev-server-diagnostic-title { margin: 0 !important; font-weight: bold !important; color: #222 !important; } .dev-server-diagnostic-message { margin-top: 4px !important; color: #555 !important; } .dev-server-diagnostic-file { position: relative !important; border-top: 1px solid #ddd !important; } .dev-server-diagnostic-file-header { display: block !important; padding: 5px 10px !important; color: #555 !important; border-bottom: 1px solid #ddd !important; border-top-left-radius: 2px !important; border-top-right-radius: 2px !important; background-color: #f9f9f9 !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; } a.dev-server-diagnostic-file-header { color: #0000ee !important; text-decoration: underline !important; } a.dev-server-diagnostic-file-header:hover { text-decoration: none !important; background-color: #f4f4f4 !important; } .dev-server-diagnostic-file-name { font-weight: bold !important; } .dev-server-diagnostic-blob { overflow-x: auto !important; overflow-y: hidden !important; border-bottom-right-radius: 3px !important; border-bottom-left-radius: 3px !important; } .dev-server-diagnostic-table { margin: 0 !important; padding: 0 !important; border-spacing: 0 !important; border-collapse: collapse !important; border-width: 0 !important; border-style: none !important; -moz-tab-size: 2; tab-size: 2; } .dev-server-diagnostic-table td, .dev-server-diagnostic-table th { padding: 0 !important; border-width: 0 !important; border-style: none !important; } td.dev-server-diagnostic-blob-num { padding-right: 10px !important; padding-left: 10px !important; width: 1% !important; min-width: 50px !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; line-height: 20px !important; color: rgba(0, 0, 0, 0.3) !important; text-align: right !important; white-space: nowrap !important; vertical-align: top !important; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: solid #eee !important; border-width: 0 1px 0 0 !important; } td.dev-server-diagnostic-blob-num::before { content: attr(data-line-number) !important; } .dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-num { background-color: #ffdddd !important; border-color: #ffc9c9 !important; } .dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-code { background: rgba(255, 221, 221, 0.25) !important; z-index: -1; } .dev-server-diagnostic-open-in-editor td.dev-server-diagnostic-blob-num:hover { cursor: pointer; background-color: #ffffe3 !important; font-weight: bold; } .dev-server-diagnostic-open-in-editor.dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-num:hover { background-color: #ffdada !important; } td.dev-server-diagnostic-blob-code { position: relative !important; padding-right: 10px !important; padding-left: 10px !important; line-height: 20px !important; vertical-align: top !important; overflow: visible !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; color: #333 !important; word-wrap: normal !important; white-space: pre !important; } td.dev-server-diagnostic-blob-code::before { content: '' !important; } .dev-server-diagnostic-error-chr { position: relative !important; } .dev-server-diagnostic-error-chr::before { position: absolute !important; z-index: -1; top: -3px !important; left: 0px !important; width: 8px !important; height: 20px !important; background-color: #ffdddd !important; content: '' !important; } /** * GitHub Gist Theme * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro * https://highlightjs.org/ */ .hljs-comment, .hljs-meta { color: #969896; } .hljs-string, .hljs-variable, .hljs-template-variable, .hljs-strong, .hljs-emphasis, .hljs-quote { color: #df5000; } .hljs-keyword, .hljs-selector-tag, .hljs-type { color: #a71d5d; } .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-attribute { color: #0086b3; } .hljs-section, .hljs-name { color: #63a35c; } .hljs-tag { color: #333333; } .hljs-title, .hljs-attr, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #795da3; } .hljs-addition { color: #55a532; background-color: #eaffea; } .hljs-deletion { color: #bd2c00; background-color: #ffecec; } .hljs-link { text-decoration: underline; }",o=function(e){var t,n,r={diagnostics:[],status:null};return e&&e.window&&Array.isArray(e.buildResults.diagnostics)&&(t=e.buildResults.diagnostics.filter((function(e){return"error"===e.level}))).length>0&&(n=s(e.window.document),t.forEach((function(t){r.diagnostics.push(t),i(e.window.document,e.openInEditor,n,t)})),r.status="error"),r},i=function(e,t,n,r){var o,i,s,l,u,m,f,g,h,v,b,w,y,k,E,C,L=e.createElement("div");L.className="dev-server-diagnostic",(u=e.createElement("div")).className="dev-server-diagnostic-masthead",u.title="".concat(d(r.type)," error: ").concat(d(null!=(o=r.code)?o:"unknown error")),L.appendChild(u),(m=e.createElement("div")).className="dev-server-diagnostic-title","string"==typeof r.header&&r.header.trim().length>0?m.textContent=r.header:m.textContent="".concat(c(r.type)," ").concat(c(r.level)),u.appendChild(m),(f=e.createElement("div")).className="dev-server-diagnostic-message",f.textContent=r.messageText,u.appendChild(f),(g=e.createElement("div")).className="dev-server-diagnostic-file",L.appendChild(g),h="string"==typeof r.absFilePath&&0===r.absFilePath.indexOf("http"),v="function"==typeof t&&"string"==typeof r.absFilePath&&!h,h?((b=e.createElement("a")).href=null!=(i=r.absFilePath)?i:"",b.setAttribute("target","_blank"),b.setAttribute("rel","noopener noreferrer"),b.className="dev-server-diagnostic-file-header",(w=e.createElement("span")).className="dev-server-diagnostic-file-path",w.textContent=null!=(s=r.absFilePath)?s:"",b.appendChild(w),g.appendChild(b)):r.relFilePath&&((b=e.createElement(v?"a":"div")).className="dev-server-diagnostic-file-header",r.absFilePath&&(b.title=d(r.absFilePath),v&&a(t,b,r.absFilePath,r.lineNumber,r.columnNumber)),y=r.relFilePath.split("/"),(k=e.createElement("span")).className="dev-server-diagnostic-file-name",k.textContent=null!=(l=y.pop())?l:"",(w=e.createElement("span")).className="dev-server-diagnostic-file-path",w.textContent=y.join("/")+"/",b.appendChild(w),b.appendChild(k),g.appendChild(b)),r.lines&&r.lines.length>0&&((E=e.createElement("div")).className="dev-server-diagnostic-blob",g.appendChild(E),(C=e.createElement("table")).className="dev-server-diagnostic-table",E.appendChild(C),p(r.lines).forEach((function(n){var o,i,s,l,c,p,u,m=e.createElement("tr");n.errorCharStart>0&&m.classList.add("dev-server-diagnostic-error-line"),v&&m.classList.add("dev-server-diagnostic-open-in-editor"),C.appendChild(m),(l=e.createElement("td")).className="dev-server-diagnostic-blob-num",n.lineNumber>0&&(l.setAttribute("data-line-number",n.lineNumber+""),l.title=d(null!=(o=r.relFilePath)?o:"")+", line "+n.lineNumber,c=r.absFilePath,v&&c&&(p=n.lineNumber===r.lineNumber?r.columnNumber:1,a(t,l,c,n.lineNumber,p))),m.appendChild(l),(u=e.createElement("td")).className="dev-server-diagnostic-blob-code",u.innerHTML=A(null!=(i=n.text)?i:"",n.errorCharStart,null!=(s=n.errorLength)?s:0),m.appendChild(u)}))),n.appendChild(L)},a=function(e,t,n,r,o){var i,a;"A"===t.tagName&&(t.href="#open-in-editor"),i="number"!=typeof r||r<1?1:r,a="number"!=typeof o||o<1?1:o,t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e({file:n,line:i,column:a})}))},s=function(e){var t=e.getElementById(m);return t||((t=e.createElement("div")).id=m,t.setAttribute("role","dialog"),e.body.appendChild(t)),t.innerHTML="<style>".concat(r,'</style><div id="').concat(m,'-inner"></div>'),e.getElementById("".concat(m,"-inner"))},l=function(e){var t=e.window.document.getElementById(m);(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)},d=function(e){return"number"==typeof e||"boolean"==typeof e?e.toString():"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""},c=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},A=function(e,t,n){if("string"!=typeof e)return"";var r=t+n;return e.split("").map((function(e,n){var o;return o="<"===e?"<":">"===e?">":'"'===e?""":"'"===e?"'":"&"===e?"&":e,n>=t&&n<r&&(o='<span class="dev-server-diagnostic-error-chr">'.concat(o,"</span>")),o})).join("")},p=function(e){var t,n,r,o,i,a=JSON.parse(JSON.stringify(e));for(o=0;o<100;o++){if(!u(a))return a;for(i=0;i<a.length;i++)if(a[i].text=null!=(n=null==(t=a[i].text)?void 0:t.slice(1))?n:"",a[i].errorCharStart--,!(null==(r=a[i].text)?void 0:r.length))return a}return a},u=function(e){var t,n,r,o,i;if(!e.length)return!1;for(o=0;o<e.length;o++){if(!e[o].text||(null!=(n=null==(t=e[o].text)?void 0:t.length)?n:0)<1)return!1;if(" "!==(i=null==(r=e[o].text)?void 0:r.charAt(0))&&"\t"!==i)return!1}return!0},m="dev-server-modal",f=function(e,t){e.dispatchEvent(new CustomEvent(y,{detail:t}))},g=function(e,t){e.dispatchEvent(new CustomEvent(k,{detail:t}))},h=function(e,t){e.dispatchEvent(new CustomEvent(E,{detail:t}))},v=function(e,t){e.addEventListener(y,(function(e){t(e.detail)}))},b=function(e,t){e.addEventListener(k,(function(e){t(e.detail)}))},w=function(e,t){e.addEventListener(E,(function(e){t(e.detail)}))},y="devserver:buildlog",k="devserver:buildresults",E="devserver:buildstatus",C=function(e,t,n){return"string"==typeof n&&""!==n.trim()&&L(t)===L(n)?Q(n,e):n},L=function(e){var t=e.split("/");return t[t.length-1].split("&")[0].split("?")[0]},j=function(e){var t={};return"string"==typeof e&&e.split("&").forEach((function(e){var n=e.split("=");t[n[0]]=n[1]?n[1]:""})),t},x=function(e){return Object.keys(e).map((function(t){return t+"="+e[t]})).join("&")},I=function(e,t,n){var r=e.split("?"),o=r[0],i=j(r[1]);return i[t]=n,o+"?"+x(i)},Q=function(e,t){return I(e,"s-hmr",t)},H=function(e,t,n){for(var r,o,i=/url\((['"]?)(.*)\1\)/gi,a=n;null!==(r=i.exec(n));)o=r[2],a=a.replace(o,C(e,t,o));return a},S=function(e){return"link"===e.nodeName.toLowerCase()&&!!e.href&&!!e.rel&&"stylesheet"===e.rel.toLowerCase()},B=function(e){return"template"===e.nodeName.toLowerCase()&&!!e.content&&11===e.content.nodeType},U=function(e,t){e.setAttribute("data-hmr",t)},N=function(e){return!!e.shadowRoot&&11===e.shadowRoot.nodeType&&e.shadowRoot!==e},D=function(e){return!!e&&1===e.nodeType&&!!e.getAttribute},F=function(e,t,n){var r=[];return n.forEach((function(n){T(r,e,t,n)})),r.sort()},T=function(e,t,n,r){if(t.nodeName.toLowerCase()===r&&"function"==typeof t["s-hmr"]&&(t["s-hmr"](n),U(t,n),-1===e.indexOf(r)&&e.push(r)),N(t)&&T(e,t.shadowRoot,n,r),t.children)for(var o=0;o<t.children.length;o++)T(e,t.children[o],n,r)},R=function(e,t,n){if(S(e)&&n.forEach((function(n){O(e,t,n)})),B(e)&&R(e.content,t,n),N(e)&&R(e.shadowRoot,t,n),e.children)for(var r=0;r<e.children.length;r++)R(e.children[r],t,n);return n.sort()},O=function(e,t,n){var r=e.getAttribute("href"),o=C(t,n,e.href);o!==r&&(e.setAttribute("href",o),U(e,t))},M=function(e,t,n,r){return"file:"!==e.location.protocol&&t.styleSheets&&z(t,n,r),P(e,t.documentElement,n,r),r.sort()},z=function(e,t,n){var r,o=Object.keys(e.documentElement.style).filter((function(e){return e.endsWith("Image")}));for(r=0;r<e.styleSheets.length;r++)K(o,e.styleSheets[r],t,n)},K=function(e,t,n,r){var o,i,a;try{for(o=t.cssRules,i=0;i<o.length;i++)switch((a=o[i]).type){case CSSRule.IMPORT_RULE:K(e,a.styleSheet,n,r);break;case CSSRule.STYLE_RULE:J(e,a,n,r);break;case CSSRule.MEDIA_RULE:K(e,a,n,r)}}catch(e){console.error("hmrStyleSheetImages: "+e)}},J=function(e,t,n,r){e.forEach((function(e){r.forEach((function(r){var o=t.style[e],i=H(n,r,o);o!==i&&(t.style[e]=i)}))}))},P=function(e,t,n,r){var o,i,a=t.nodeName.toLowerCase();if("img"===a&&Y(t,n,r),D(t)&&(o=t.getAttribute("style"))&&W(t,n,r,o),"style"===a&&X(t,n,r),"file:"!==e.location.protocol&&S(t)&&q(t,n,r),B(t)&&P(e,t.content,n,r),N(t)&&P(e,t.shadowRoot,n,r),t.children)for(i=0;i<t.children.length;i++)P(e,t.children[i],n,r)},Y=function(e,t,n){n.forEach((function(n){var r=e.getAttribute("src"),o=C(t,n,r);o!==r&&(e.setAttribute("src",o),U(e,t))}))},W=function(e,t,n,r){n.forEach((function(n){var o=H(t,n,r);o!==r&&(e.setAttribute("style",o),U(e,t))}))},X=function(e,t,n){n.forEach((function(n){var r=e.innerHTML,o=H(t,n,r);o!==r&&(e.innerHTML=o,U(e,t))}))},q=function(e,t,n){e.href=I(e.href,"s-hmr-urls",n.sort().join(",")),e.href=Q(e.href,t),e.setAttribute("data-hmr",t)},G=function(e,t,n){var r,o=n;if(D(e)&&"style"===e.nodeName.toLowerCase()&&o.forEach((function(n){Z(e,t,n)})),B(e)&&G(e.content,t,o),N(e)&&G(e.shadowRoot,t,o),e.children)for(r=0;r<e.children.length;r++)G(e.children[r],t,o);return o.map((function(e){return e.styleTag})).reduce((function(e,t){return-1===e.indexOf(t)&&e.push(t),e}),[]).sort()},Z=function(e,t,n){e.getAttribute("sty-id")===n.styleId&&n.styleText&&(e.innerHTML=n.styleText.replace(/\\n/g,"\n"),e.setAttribute("data-hmr",t))},V=function(e){var t,n,r,o,i,a={updatedComponents:[],updatedExternalStyles:[],updatedInlineStyles:[],updatedImages:[],versionId:""};try{if(!(e&&e.window&&e.window.document.documentElement&&e.hmr&&"string"==typeof e.hmr.versionId))return a;n=(t=e.window).document,r=e.hmr,o=n.documentElement,i=r.versionId,a.versionId=i,r.componentsUpdated&&(a.updatedComponents=F(o,i,r.componentsUpdated)),r.inlineStylesUpdated&&(a.updatedInlineStyles=G(o,i,r.inlineStylesUpdated)),r.externalStylesUpdated&&(a.updatedExternalStyles=R(o,i,r.externalStylesUpdated)),r.imagesUpdated&&(a.updatedImages=M(t,n,i,r.imagesUpdated)),U(o,i)}catch(e){console.error(e)}return a},_=function(e){return re(ae,"Build",e)},$=function(e){return ee("Reload",e)},ee=function(e,t){return re(oe,e,t)},te=function(e,t){return re(se,e,t)},ne=function(e){var t,n=e,r=ie,o="Error";"warn"===n.level&&(r=oe,o="Warning"),n.header&&(o=n.header),t="",n.relFilePath&&(t+=n.relFilePath,"number"==typeof n.lineNumber&&n.lineNumber>0&&(t+=", line "+n.lineNumber,"number"==typeof n.columnNumber&&n.columnNumber>0&&(t+=", column "+n.columnNumber)),t+="\n"),t+=n.messageText,re(r,o,t)},re=function(e,t,n){"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Trident")>-1?console.log(t,n):console.log.apply(console,["%c"+t,"background: ".concat(e,"; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;"),n])},oe="#f39c12",ie="#c0392b",ae="#3498db",se="#717171",le=function(e){function t(){clearTimeout(s),clearTimeout(a);var e=o();if(!e)return function(){var e=p.createElement("div");e.id=c,e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.zIndex="100001",e.style.width="100%",e.style.height="2px",e.style.transform="scaleX(0)",e.style.opacity="1",e.style.background=u,e.style.transformOrigin="left center",e.style.transition="transform .1s ease-in-out, opacity .5s ease-in",e.style.contain="strict",p.body.appendChild(e)}(),void(i=setTimeout(t,16));e.style.background=u,e.style.opacity="1",e.style.transform="scaleX(".concat(Math.min(1,r()),")"),null==l&&(l=setInterval((function(){d+=.05*Math.random()+.01,r()<.9?t():clearInterval(l)}),800))}function n(){clearInterval(l),d=.05,l=null,clearTimeout(s),clearTimeout(i),clearTimeout(a);var e=o();e&&(f>=1&&(e.style.transform="scaleX(1)"),s=setTimeout((function(){try{var e=o();e&&(e.style.opacity="0")}catch(e){}}),150),a=setTimeout((function(){try{var e=o();e&&e.parentNode.removeChild(e)}catch(e){}}),1e3))}function r(){var e=f+d;return Math.max(0,Math.min(1,e))}function o(){return p.getElementById(c)}var i,a,s,l,d,c,A=e.window,p=A.document,u="#5851ff",m="#b70c19",f=0;n(),v(A,(function(e){(f=e.progress)>=0&&f<1?t():n()})),b(A,(function(e){if(e.hasError){var t=o();t&&(t.style.transform="scaleX(1)",t.style.background=m)}n()})),w(A,(function(e){"disabled"===e&&n()})),"tmpl-initial-load"===p.head.dataset.tmpl&&t(),c="dev-server-progress-bar"},de=function(e){var t=e.window,n=t.document,r=pe(n);r.forEach((function(e){e.href&&(e.dataset.href=e.href,e.dataset.type=e.type)})),w(t,(function(e){ce(n,e)}))},ce=function(e,t){pe(e).forEach((function(e){Ae(e,t)}))},Ae=function(e,t){"pending"===t?(e.href=me,e.type=he,e.setAttribute("data-status",t)):"error"===t?(e.href=fe,e.type=he,e.setAttribute("data-status",t)):"disabled"===t?(e.href=ge,e.type=he,e.setAttribute("data-status",t)):(e.removeAttribute("data-status"),e.dataset.href?(e.href=e.dataset.href,e.type=e.dataset.type):(e.href=ue,e.type=he))},pe=function(e){var t,n,r=[],o=e.querySelectorAll("link");for(t=0;t<o.length;t++)o[t].href&&o[t].rel&&(o[t].rel.indexOf("shortcut")>-1||o[t].rel.indexOf("icon")>-1)&&r.push(o[t]);return 0===r.length&&((n=e.createElement("link")).rel="shortcut icon",e.head.appendChild(n),r.push(n)),r},ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAnFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4jUz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jz2w95UqpJ0r28Uf2WTQAAAAAAAAAAAYMiWpTxJQ8JSTqThwVI2pKFZsJC3ghTs5izkmpKCcspCljNSkB9ZSLsnBfuWhRxzUjBbspBpSQrSKwuZr0lB8cZCFg1p2LCUB2k4sZSENNxYypY0nFlKTxqGmoUcClJwEQu4SUoKdmIBtEpJQZ6xkHeVAKqOYgFUkYL9OwvJclKQrsQCbkcK0olYAF1IQXFgIfVAGnqWcqZwFidYN4phb4L1onCYYMlPsLqUFKwxwRozwTIYcG1FCqrWdwBhgqU7wUo7FlJ7n2DdScPL+RPezfkT3tl5AA217yc89xMssYBbzUjDkEjZEwAA+NFMbOrDJygmZXnwBMWkaRk8QTFpvg6eoJi0aIInKDY9gp/AbEqCJyg2bYOfwGzqKUzPNh2K0Ccwm0IfRBK2KfSLkDvbFPog0tRsUlsh4EZAwP2SgKu9B9wdATcOAg4BZwACbgQEHALOCATcCAg4BJwVCLhREHB/LOAebFNwwC3YJATcKAi4yICjfmJTQwAA4EeZSBkojrWdsvmO4hjbKYtd6ra2Uxa71G1tp0xnqbvo+IPfpe4Nf3K703Ridr3T9OQPfnea7szseaepqX3vNH3NM/xe5fmeZ7i9yiMXQFlJEeydhYy4ymMygCICzmQAxQactbOQMQFnMoBiAs7iVaHIgDN3VSgq4AxeFYoOOGNXhbCUPkaJs4o4q/iXzyp2vgPO/VnFl/OAu/F/jq8KnZ0H3FD7DriL9x+DTH0HXJ75Driq9R1ws6XvgEuvvgOu6HwHHG18BxydnAfc03nAAQAAAAAAAADAz/4BoL2Us9XM2zMAAAAASUVORK5CYII=",he="image/x-icon",ve="/~dev-server",be="".concat(ve,"-init"),we="".concat(ve,"-open-in-editor"),ye=function(e,t){b(e,(function(n){ke(e,t,n)}))},ke=function(e,t,n){var r,i;try{if(n.buildId===e["s-build-id"])return;if(e["s-build-id"]=n.buildId,l({window:e}),n.hasError)return r=Array.isArray(t.editors)&&t.editors.length>0?t.editors[0].id:null,(i=o({window:e,buildResults:n,openInEditor:r?function(t){var n={file:t.file,line:t.line,column:t.column,editor:r},o="".concat(we,"?").concat(Object.keys(n).map((function(e){return"".concat(e,"=").concat(n[e])})).join("&"));e.fetch(o)}:null})).diagnostics.forEach(ne),void h(e,i.status);if(e["s-initial-load"])return void Ce(e,t,(function(){$("Initial load"),e.location.reload()}));n.hmr&&Ee(e,n.hmr)}catch(e){console.error(e)}},Ee=function(e,t){var n,r=!1;"pageReload"===t.reloadStrategy&&(r=!0),t.indexHtmlUpdated&&($("Updated index.html"),r=!0),t.serviceWorkerUpdated&&($("Updated Service Worker: sw.js"),r=!0),t.scriptsAdded&&t.scriptsAdded.length>0&&($("Added scripts: ".concat(t.scriptsAdded.join(", "))),r=!0),t.scriptsDeleted&&t.scriptsDeleted.length>0&&($("Deleted scripts: ".concat(t.scriptsDeleted.join(", "))),r=!0),t.excludeHmr&&t.excludeHmr.length>0&&($("Excluded From Hmr: ".concat(t.excludeHmr.join(", "))),r=!0),r?e.location.reload():((n=V({window:e,hmr:t})).updatedComponents.length>0&&_("Updated component".concat(n.updatedComponents.length>1?"s":"",": ").concat(n.updatedComponents.join(", "))),n.updatedInlineStyles.length>0&&_("Updated styles: ".concat(n.updatedInlineStyles.join(", "))),n.updatedExternalStyles.length>0&&_("Updated stylesheets: ".concat(n.updatedExternalStyles.join(", "))),n.updatedImages.length>0&&_("Updated images: ".concat(n.updatedImages.join(", "))))},Ce=function(e,t,n){e.history.replaceState({},"App",t.basePath),e.navigator.serviceWorker&&e.navigator.serviceWorker.getRegistration?e.navigator.serviceWorker.getRegistration().then((function(e){e?e.unregister().then((function(e){e&&_("unregistered service worker"),n()})):n()})).catch((function(e){ee("Service Worker",e),n()})):n()},Le=function(e,t){function n(){var t=this;A>0&&h(e,"pending"),p||(c=setInterval((function(){if(u++,!p&&t.readyState===WebSocket.OPEN&&u<500){t.send(JSON.stringify({requestBuildResults:!0}))}else clearInterval(c)}),Qe)),clearTimeout(d)}function r(){s()}function o(t){h(e,"disabled"),t.code>Ie?ee("Dev Server","web socket closed: ".concat(t.code," ").concat(t.reason)):te("Dev Server","Disconnected, attempting to reconnect..."),s()}function i(t){var n=JSON.parse(t.data);if(A>0){if(n.isActivelyBuilding)return;if(n.buildResults)return $("Reconnected to dev server"),p=!0,u=0,clearInterval(c),e["s-build-id"]!==n.buildResults.buildId&&e.location.reload(),void(e["s-build-id"]=n.buildResults.buildId)}return n.buildLog?(n.buildLog.progress<1&&h(e,"pending"),void f(e,n.buildLog)):n.buildResults?(p=!0,u=0,clearInterval(c),h(e,"default"),void g(e,n.buildResults)):void 0}function a(){clearTimeout(d),(l=new e.WebSocket(t.socketUrl,["xmpp"])).addEventListener("open",n),l.addEventListener("error",r),l.addEventListener("close",o),l.addEventListener("message",i)}function s(){p=!1,l&&(l.readyState!==WebSocket.OPEN&&l.readyState!==WebSocket.CONNECTING||l.close(Ie),l.removeEventListener("open",n),l.removeEventListener("error",r),l.removeEventListener("close",o),l.removeEventListener("message",i),l=null),clearTimeout(d),A>=je?ee("Dev Server","Canceling reconnect attempts"):(A++,d=setTimeout(a,xe),h(e,"disabled"))}var l,d,c,A=0,p=!1,u=0;a()},je=1e3,xe=2500,Ie=1e3,Qe=500,He=function(e,t){try{if(e["s-dev-server"])return;e["s-dev-server"]=!0,de({window:e}),le({window:e}),ye(e,t),Se(e,t)?(e["s-initial-load"]=!0,Ce(e,t,(function(){Le(e,t)}))):Le(e,t)}catch(e){console.error(e)}},Se=function(e,t){var n=e.location.pathname;return(n="/"+n.substring(t.basePath.length))===be},Be={basePath:t.location.pathname,editors:[],reloadStrategy:"hmr",socketUrl:"".concat("https:"===location.protocol?"wss:":"ws:","//").concat(location.hostname).concat(""!==location.port?":"+location.port:"","/")};He(t,Object.assign({},Be,t.devServerConfig,n))}(window,window.parent,window.__DEV_CLIENT_CONFIG__);
|
|
6
6
|
</script></body></html>
|
package/dev-server/index.js
CHANGED
package/dev-server/package.json
CHANGED