securityos/node_modules/next/dist/shared/lib/lazy-dynamic/dynamic-no-ssr.js

39 lines
847 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
"use client";
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
suspense: null,
NoSSR: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
suspense: function() {
return suspense;
},
NoSSR: function() {
return NoSSR;
}
});
const _nossrerror = require("./no-ssr-error");
function suspense() {
const error = new Error(_nossrerror.NEXT_DYNAMIC_NO_SSR_CODE);
error.digest = _nossrerror.NEXT_DYNAMIC_NO_SSR_CODE;
throw error;
}
function NoSSR(param) {
let { children } = param;
if (typeof window === "undefined") {
suspense();
}
return children;
}
//# sourceMappingURL=dynamic-no-ssr.js.map