@stencil/core 5.0.0-rc.16 → 5.0.0-rc.18
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/{client-nVB5tHhh.mjs → client-DjKma2ur.mjs} +2 -2
- package/dist/compiler/browser.js +1 -1
- package/dist/compiler/index.mjs +2 -2
- package/dist/{compiler-D6kG51sR.mjs → compiler-Dujyp1SW.mjs} +5 -5
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-IRt_dGbC.mjs → node-BDHa1zgW.mjs} +1 -1
- package/dist/runtime/client/lazy.js +7 -2
- package/dist/runtime/client/runtime.js +7 -2
- package/dist/runtime/index.js +7 -2
- package/dist/runtime/server/index.mjs +7 -2
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.mjs +8 -3
- package/package.json +4 -4
|
@@ -2098,7 +2098,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
2098
2098
|
if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
|
|
2099
2099
|
if (BUILD.hasRenderFn || BUILD.reflect) {
|
|
2100
2100
|
if (BUILD.vdomRender || BUILD.reflect) {
|
|
2101
|
-
if (BUILD.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
|
|
2101
|
+
if (BUILD.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad)).catch((e) => consoleError(e, hostRef.$hostElement$));
|
|
2102
2102
|
else renderVdom(hostRef, instance, isInitialLoad);
|
|
2103
2103
|
} else {
|
|
2104
2104
|
const shadowRoot = elm.shadowRoot;
|
|
@@ -2110,7 +2110,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
2110
2110
|
consoleError(e, hostRef.$hostElement$);
|
|
2111
2111
|
}
|
|
2112
2112
|
renderingRef = null;
|
|
2113
|
-
return null;
|
|
2113
|
+
return BUILD.hydrateServerSide ? Promise.resolve() : null;
|
|
2114
2114
|
};
|
|
2115
2115
|
const getRenderingRef = () => renderingRef;
|
|
2116
2116
|
const postUpdateComponent = (hostRef) => {
|
package/dist/compiler/browser.js
CHANGED
|
@@ -1844,7 +1844,7 @@ const validateComponentTag = (tag) => {
|
|
|
1844
1844
|
};
|
|
1845
1845
|
//#endregion
|
|
1846
1846
|
//#region src/version.ts
|
|
1847
|
-
const version = "5.0.0-rc.
|
|
1847
|
+
const version = "5.0.0-rc.18";
|
|
1848
1848
|
//#endregion
|
|
1849
1849
|
//#region src/compiler/events.ts
|
|
1850
1850
|
const buildEvents = () => {
|
package/dist/compiler/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-
|
|
2
|
-
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-
|
|
1
|
+
import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-Dujyp1SW.mjs";
|
|
2
|
+
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-BDHa1zgW.mjs";
|
|
3
3
|
export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildHydrateCss, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, foldBuildFlags, generateComponentTypesFile, generateManifest, getScopeId, hasStencilCssComponentsImport, hasStencilGlobalsImport, hasStencilHydrateImport, loadConfig, nodeRequire, optimizeCss, optimizeJs, parseCssOnlyComponents, replaceStencilCssComponentsImport, replaceStencilGlobalsImport, replaceStencilHydrateImport, scopeCss, transpile, transpileSync, ts, validateConfig, validateHydrated, vermoji, version, versions };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
|
-
import { A as SSR_PROP_REF_PREFIX, D as HYDRATE_ID, E as HYDRATE_CHILD_ID, O as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, k as SSR_PROPS_REGISTRY_KEY, w as CLIENT_BUILD_FLAGS } from "./client-
|
|
2
|
+
import { A as SSR_PROP_REF_PREFIX, D as HYDRATE_ID, E as HYDRATE_CHILD_ID, O as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, k as SSR_PROPS_REGISTRY_KEY, w as CLIENT_BUILD_FLAGS } from "./client-DjKma2ur.mjs";
|
|
3
3
|
import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, D as COPY, E as COLLECTION_MANIFEST_FILE_NAME, J as STANDALONE, L as EVENT_FLAGS, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as ASSETS, T as COLLECTION_APP_DATA_FILE_NAME, U as LOADER_BUNDLE, X as STYLE_EXT, Y as STATS, a as isBoolean$1, b as unique, c as isFunction, d as isObject, et as WATCH_FLAGS, f as isString$1, g as sortBy, i as fromEntries, l as isIterable, m as noop, p as mergeIntoWith, r as flatOne, t as dashToPascalCase, u as isNumber$1, v as toDashCase, w as COLLECTION, y as toTitleCase, z as GLOBAL_STYLE } from "./helpers-k8xQHE77.mjs";
|
|
4
4
|
import { C as isRootPath, D as byteSize, E as stringifyRuntimeData, O as escapeRegExpSpecialCharacters, S as splitLineBreaks, _ as createOnWarnFn, a as getRolldownSourceMapOptions, c as relativizeSourceMap, d as map, f as ok, g as loadTypeScriptDiagnostics, h as loadTypeScriptDiagnostic, i as getInlineSourceMappingUrlLinker, l as rolldownToStencilSourceMap, m as augmentDiagnosticWithNode, n as validateComponentTag, o as getSourceMappingUrlForEndOfFile, r as isRemoteUrl, t as validateComponentModes, u as err, v as isRolldownError, w as formatComponentRuntimeMeta, x as normalizeDiagnostics, y as loadRolldownDiagnostics } from "./validation-GfBzquhJ.mjs";
|
|
5
5
|
import { $ as buildWarn, A as isOutputTargetDocsVscode, B as isValidConfigOutputTarget, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetSsrWasm, G as normalizeFsPath, H as shouldExcludeComponent, I as isOutputTargetStandalone, J as relative$1, K as normalizeFsPathQuery, L as isOutputTargetStats, M as isOutputTargetLoaderBundle, N as isOutputTargetServerRenderer, O as isOutputTargetDocsJson, P as isOutputTargetSsr, Q as buildJsonFileError, R as isOutputTargetTypes, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, U as join$2, V as relativeImport, Y as resolve$2, Z as buildError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as catchError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, it as isGlob, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, nt as hasWarning, o as isDtsFile, p as readPackageJson, q as normalizePath, r as generatePreamble, t as addDocBlock, tt as hasError, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isOutputTargetWww } from "./util-Cj2D3x_h.mjs";
|
|
6
|
-
import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-
|
|
6
|
+
import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-BDHa1zgW.mjs";
|
|
7
7
|
import ts, { default as ts$1 } from "typescript";
|
|
8
8
|
import { readFileSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
|
@@ -461,9 +461,9 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
|
461
461
|
};
|
|
462
462
|
//#endregion
|
|
463
463
|
//#region src/version.ts
|
|
464
|
-
const version = "5.0.0-rc.
|
|
465
|
-
const buildId = "
|
|
466
|
-
const vermoji = "
|
|
464
|
+
const version = "5.0.0-rc.18";
|
|
465
|
+
const buildId = "1796170199";
|
|
466
|
+
const vermoji = "🏵";
|
|
467
467
|
/**
|
|
468
468
|
* Get the installed version of a tool/dependency.
|
|
469
469
|
* Handles packages with exports maps that point to subdirectories.
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Build, S as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, x as setPlatformHelpers, y as readTask } from "./client-
|
|
1
|
+
import { C as Build, S as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, x as setPlatformHelpers, y as readTask } from "./client-DjKma2ur.mjs";
|
|
2
2
|
import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
|
|
3
3
|
//#region src/client/client-decorators.ts
|
|
4
4
|
/**
|
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
|
-
import "./client-
|
|
2
|
+
import "./client-DjKma2ur.mjs";
|
|
3
3
|
import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-k8xQHE77.mjs";
|
|
4
4
|
import { X as TASK_CANCELED_MSG, Z as buildError, et as catchError, it as isGlob, q as normalizePath, rt as shouldIgnoreError } from "./util-Cj2D3x_h.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -3199,7 +3199,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
3199
3199
|
if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
|
|
3200
3200
|
if (BUILD.hasRenderFn || BUILD.reflect) {
|
|
3201
3201
|
if (BUILD.vdomRender || BUILD.reflect) {
|
|
3202
|
-
if (BUILD.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
|
|
3202
|
+
if (BUILD.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad)).catch((e) => consoleError(e, hostRef.$hostElement$));
|
|
3203
3203
|
else renderVdom(hostRef, instance, isInitialLoad);
|
|
3204
3204
|
} else {
|
|
3205
3205
|
const shadowRoot = elm.shadowRoot;
|
|
@@ -3211,7 +3211,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
3211
3211
|
consoleError(e, hostRef.$hostElement$);
|
|
3212
3212
|
}
|
|
3213
3213
|
renderingRef = null;
|
|
3214
|
-
return null;
|
|
3214
|
+
return BUILD.hydrateServerSide ? Promise.resolve() : null;
|
|
3215
3215
|
};
|
|
3216
3216
|
const getRenderingRef = () => renderingRef;
|
|
3217
3217
|
const postUpdateComponent = (hostRef) => {
|
|
@@ -3980,6 +3980,11 @@ const initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
3980
3980
|
const createSimpleVNode = (vnode) => ({
|
|
3981
3981
|
$flags$: 0,
|
|
3982
3982
|
$index$: "0",
|
|
3983
|
+
$tag$: null,
|
|
3984
|
+
$text$: null,
|
|
3985
|
+
$key$: null,
|
|
3986
|
+
$name$: null,
|
|
3987
|
+
$attrs$: null,
|
|
3983
3988
|
$children$: null,
|
|
3984
3989
|
...vnode
|
|
3985
3990
|
});
|
|
@@ -3193,7 +3193,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
3193
3193
|
if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
|
|
3194
3194
|
if (BUILD$1.hasRenderFn || BUILD$1.reflect) {
|
|
3195
3195
|
if (BUILD$1.vdomRender || BUILD$1.reflect) {
|
|
3196
|
-
if (BUILD$1.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
|
|
3196
|
+
if (BUILD$1.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad)).catch((e) => consoleError(e, hostRef.$hostElement$));
|
|
3197
3197
|
else renderVdom(hostRef, instance, isInitialLoad);
|
|
3198
3198
|
} else {
|
|
3199
3199
|
const shadowRoot = elm.shadowRoot;
|
|
@@ -3205,7 +3205,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
3205
3205
|
consoleError(e, hostRef.$hostElement$);
|
|
3206
3206
|
}
|
|
3207
3207
|
renderingRef = null;
|
|
3208
|
-
return null;
|
|
3208
|
+
return BUILD$1.hydrateServerSide ? Promise.resolve() : null;
|
|
3209
3209
|
};
|
|
3210
3210
|
const getRenderingRef = () => renderingRef;
|
|
3211
3211
|
const postUpdateComponent = (hostRef) => {
|
|
@@ -3974,6 +3974,11 @@ const initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
3974
3974
|
const createSimpleVNode = (vnode) => ({
|
|
3975
3975
|
$flags$: 0,
|
|
3976
3976
|
$index$: "0",
|
|
3977
|
+
$tag$: null,
|
|
3978
|
+
$text$: null,
|
|
3979
|
+
$key$: null,
|
|
3980
|
+
$name$: null,
|
|
3981
|
+
$attrs$: null,
|
|
3977
3982
|
$children$: null,
|
|
3978
3983
|
...vnode
|
|
3979
3984
|
});
|
package/dist/runtime/index.js
CHANGED
|
@@ -3065,7 +3065,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
3065
3065
|
if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
|
|
3066
3066
|
if (BUILD.hasRenderFn || BUILD.reflect) {
|
|
3067
3067
|
if (BUILD.vdomRender || BUILD.reflect) {
|
|
3068
|
-
if (BUILD.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
|
|
3068
|
+
if (BUILD.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad)).catch((e) => consoleError(e, hostRef.$hostElement$));
|
|
3069
3069
|
else renderVdom(hostRef, instance, isInitialLoad);
|
|
3070
3070
|
} else {
|
|
3071
3071
|
const shadowRoot = elm.shadowRoot;
|
|
@@ -3077,7 +3077,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
3077
3077
|
consoleError(e, hostRef.$hostElement$);
|
|
3078
3078
|
}
|
|
3079
3079
|
renderingRef = null;
|
|
3080
|
-
return null;
|
|
3080
|
+
return BUILD.hydrateServerSide ? Promise.resolve() : null;
|
|
3081
3081
|
};
|
|
3082
3082
|
const getRenderingRef = () => renderingRef;
|
|
3083
3083
|
const postUpdateComponent = (hostRef) => {
|
|
@@ -3846,6 +3846,11 @@ const initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
3846
3846
|
const createSimpleVNode = (vnode) => ({
|
|
3847
3847
|
$flags$: 0,
|
|
3848
3848
|
$index$: "0",
|
|
3849
|
+
$tag$: null,
|
|
3850
|
+
$text$: null,
|
|
3851
|
+
$key$: null,
|
|
3852
|
+
$name$: null,
|
|
3853
|
+
$attrs$: null,
|
|
3849
3854
|
$children$: null,
|
|
3850
3855
|
...vnode
|
|
3851
3856
|
});
|
|
@@ -2837,7 +2837,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
2837
2837
|
if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
|
|
2838
2838
|
if (BUILD$1.hasRenderFn || BUILD$1.reflect) {
|
|
2839
2839
|
if (BUILD$1.vdomRender || BUILD$1.reflect) {
|
|
2840
|
-
if (BUILD$1.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
|
|
2840
|
+
if (BUILD$1.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad)).catch((e) => consoleError(e, hostRef.$hostElement$));
|
|
2841
2841
|
else renderVdom(hostRef, instance, isInitialLoad);
|
|
2842
2842
|
} else {
|
|
2843
2843
|
const shadowRoot = elm.shadowRoot;
|
|
@@ -2849,7 +2849,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
2849
2849
|
consoleError(e, hostRef.$hostElement$);
|
|
2850
2850
|
}
|
|
2851
2851
|
renderingRef = null;
|
|
2852
|
-
return null;
|
|
2852
|
+
return BUILD$1.hydrateServerSide ? Promise.resolve() : null;
|
|
2853
2853
|
};
|
|
2854
2854
|
const getRenderingRef = () => renderingRef;
|
|
2855
2855
|
const postUpdateComponent = (hostRef) => {
|
|
@@ -3616,6 +3616,11 @@ const initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
3616
3616
|
const createSimpleVNode = (vnode) => ({
|
|
3617
3617
|
$flags$: 0,
|
|
3618
3618
|
$index$: "0",
|
|
3619
|
+
$tag$: null,
|
|
3620
|
+
$text$: null,
|
|
3621
|
+
$key$: null,
|
|
3622
|
+
$name$: null,
|
|
3623
|
+
$attrs$: null,
|
|
3619
3624
|
$children$: null,
|
|
3620
3625
|
...vnode
|
|
3621
3626
|
});
|
package/dist/sys/node/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-
|
|
1
|
+
import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-BDHa1zgW.mjs";
|
|
2
2
|
export { createNodeLogger, createNodeSys, setupNodeProcess };
|
package/dist/sys/node/worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as createWorkerMessageHandler } from "../../compiler-
|
|
2
|
-
import { t as createNodeSys } from "../../node-
|
|
1
|
+
import { l as createWorkerMessageHandler } from "../../compiler-Dujyp1SW.mjs";
|
|
2
|
+
import { t as createNodeSys } from "../../node-BDHa1zgW.mjs";
|
|
3
3
|
//#region src/sys/node/node-worker-thread.ts
|
|
4
4
|
/**
|
|
5
5
|
* Initialize a worker thread, setting up various machinery for managing
|
package/dist/testing/index.mjs
CHANGED
|
@@ -33,7 +33,7 @@ import "@rollup/pluginutils";
|
|
|
33
33
|
import { createHash } from "crypto";
|
|
34
34
|
import { afterAll, vi } from "vitest";
|
|
35
35
|
//#region src/version.ts
|
|
36
|
-
const version = "5.0.0-rc.
|
|
36
|
+
const version = "5.0.0-rc.18";
|
|
37
37
|
const MEMBER_FLAGS = {
|
|
38
38
|
String: 1,
|
|
39
39
|
Number: 2,
|
|
@@ -3590,7 +3590,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
3590
3590
|
if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
|
|
3591
3591
|
if (BUILD.hasRenderFn || BUILD.reflect) {
|
|
3592
3592
|
if (BUILD.vdomRender || BUILD.reflect) {
|
|
3593
|
-
if (BUILD.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
|
|
3593
|
+
if (BUILD.hydrateServerSide) return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad)).catch((e) => consoleError(e, hostRef.$hostElement$));
|
|
3594
3594
|
else renderVdom(hostRef, instance, isInitialLoad);
|
|
3595
3595
|
} else {
|
|
3596
3596
|
const shadowRoot = elm.shadowRoot;
|
|
@@ -3602,7 +3602,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
3602
3602
|
consoleError(e, hostRef.$hostElement$);
|
|
3603
3603
|
}
|
|
3604
3604
|
renderingRef = null;
|
|
3605
|
-
return null;
|
|
3605
|
+
return BUILD.hydrateServerSide ? Promise.resolve() : null;
|
|
3606
3606
|
};
|
|
3607
3607
|
const getRenderingRef = () => renderingRef;
|
|
3608
3608
|
const postUpdateComponent = (hostRef) => {
|
|
@@ -4371,6 +4371,11 @@ const initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
4371
4371
|
const createSimpleVNode = (vnode) => ({
|
|
4372
4372
|
$flags$: 0,
|
|
4373
4373
|
$index$: "0",
|
|
4374
|
+
$tag$: null,
|
|
4375
|
+
$text$: null,
|
|
4376
|
+
$key$: null,
|
|
4377
|
+
$name$: null,
|
|
4378
|
+
$attrs$: null,
|
|
4374
4379
|
$children$: null,
|
|
4375
4380
|
...vnode
|
|
4376
4381
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.18",
|
|
4
4
|
"description": "A Compiler for Web Components and Progressive Web Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
"terser": "^5.50.0",
|
|
123
123
|
"tinyglobby": "^0.2.17",
|
|
124
124
|
"typescript": ">5.0.0 <7.0.0",
|
|
125
|
-
"@stencil/
|
|
126
|
-
"@stencil/
|
|
127
|
-
"@stencil/
|
|
125
|
+
"@stencil/dev-server": "5.0.0-rc.18",
|
|
126
|
+
"@stencil/mock-doc": "5.0.0-rc.18",
|
|
127
|
+
"@stencil/cli": "5.0.0-rc.18"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
130
|
"@ionic/prettier-config": "^4.0.0",
|