@absolutejs/absolute 0.19.0-beta.933 → 0.19.0-beta.934

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/vue/index.js CHANGED
@@ -4118,13 +4118,7 @@ var resolveCurrentGeneratedVueModulePath = async (pagePath) => {
4118
4118
  return pagePath;
4119
4119
  }
4120
4120
  };
4121
- var buildDirtyResponse = (headTag, indexPath, maybeProps, clientMode) => {
4122
- if (clientMode === "none") {
4123
- const html2 = `<!DOCTYPE html><html>${headTag}<body><div id="root"></div>` + `</body></html>`;
4124
- return new Response(html2, {
4125
- headers: { "Content-Type": "text/html" }
4126
- });
4127
- }
4121
+ var buildDirtyResponse = (headTag, indexPath, maybeProps) => {
4128
4122
  const propsScript = `window.__INITIAL_PROPS__=${JSON.stringify(maybeProps ?? {})};`;
4129
4123
  const dirtyFlag = "window.__SSR_DIRTY__=true;";
4130
4124
  const html = `<!DOCTYPE html><html>${headTag}<body><div id="root"></div>` + `<script>${propsScript}${dirtyFlag}</script>` + `<script type="module" src="${indexPath}"></script>` + `</body></html>`;
@@ -4155,8 +4149,8 @@ var handleVuePageRequest = async (input) => {
4155
4149
  const resolvedPagePath = input.pagePath;
4156
4150
  const maybeProps = input.props;
4157
4151
  const clientMode = input.client ?? "auto";
4158
- if (isSsrCacheDirty("vue")) {
4159
- return buildDirtyResponse(resolvedHeadTag, resolvedIndexPath, maybeProps, clientMode);
4152
+ if (clientMode === "auto" && isSsrCacheDirty("vue")) {
4153
+ return buildDirtyResponse(resolvedHeadTag, resolvedIndexPath, maybeProps);
4160
4154
  }
4161
4155
  try {
4162
4156
  const handlerCallsite = resolvedOptions?.collectStreamingSlots === true ? undefined : getCurrentRouteRegistrationCallsite() ?? captureStreamingSlotWarningCallsite();
@@ -4644,5 +4638,5 @@ export {
4644
4638
  Image
4645
4639
  };
4646
4640
 
4647
- //# debugId=C533BB46082E586D64756E2164756E21
4641
+ //# debugId=E33480BC60008E6864756E2164756E21
4648
4642
  //# sourceMappingURL=index.js.map