.
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
declare const InstantValidationBoundaryContext: import("react").Context<string | null>, PlaceValidationBoundaryBelowThisLevel: typeof import("../../../server/app-render/instant-validation/boundary-impl").PlaceValidationBoundaryBelowThisLevel, RenderValidationBoundaryAtThisLevel: typeof import("../../../server/app-render/instant-validation/boundary-impl").RenderValidationBoundaryAtThisLevel;
|
||||
export { InstantValidationBoundaryContext, PlaceValidationBoundaryBelowThisLevel, RenderValidationBoundaryAtThisLevel, };
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
'use client';
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
InstantValidationBoundaryContext: null,
|
||||
PlaceValidationBoundaryBelowThisLevel: null,
|
||||
RenderValidationBoundaryAtThisLevel: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
InstantValidationBoundaryContext: function() {
|
||||
return InstantValidationBoundaryContext;
|
||||
},
|
||||
PlaceValidationBoundaryBelowThisLevel: function() {
|
||||
return PlaceValidationBoundaryBelowThisLevel;
|
||||
},
|
||||
RenderValidationBoundaryAtThisLevel: function() {
|
||||
return RenderValidationBoundaryAtThisLevel;
|
||||
}
|
||||
});
|
||||
// This facade ensures that the boundary code is DCE'd in browser bundles.
|
||||
//
|
||||
// It also exists to satisfy `browser-chunks.test.ts`, which looks for
|
||||
// references to code in `packages/next/src/server` in browser bundles and errors if it finds any.
|
||||
// A "use client" module seems to always have always have an entry in the browser bundle,
|
||||
// so this module cannot be colocated with the rest of the instant validation code,
|
||||
// because it ends up looking like it's importing server code in the browser
|
||||
// even though all the server code inside is actually DCE'd.
|
||||
const { InstantValidationBoundaryContext, PlaceValidationBoundaryBelowThisLevel, RenderValidationBoundaryAtThisLevel } = typeof window === 'undefined' && process.env.__NEXT_CACHE_COMPONENTS ? require('../../../server/app-render/instant-validation/boundary-impl') : {};
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=boundary.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/instant-validation/boundary.tsx"],"sourcesContent":["'use client'\n\n// This facade ensures that the boundary code is DCE'd in browser bundles.\n//\n// It also exists to satisfy `browser-chunks.test.ts`, which looks for\n// references to code in `packages/next/src/server` in browser bundles and errors if it finds any.\n// A \"use client\" module seems to always have always have an entry in the browser bundle,\n// so this module cannot be colocated with the rest of the instant validation code,\n// because it ends up looking like it's importing server code in the browser\n// even though all the server code inside is actually DCE'd.\n\nconst {\n InstantValidationBoundaryContext,\n PlaceValidationBoundaryBelowThisLevel,\n RenderValidationBoundaryAtThisLevel,\n} =\n typeof window === 'undefined' && process.env.__NEXT_CACHE_COMPONENTS\n ? (require('../../../server/app-render/instant-validation/boundary-impl') as typeof import('../../../server/app-render/instant-validation/boundary-impl'))\n : ({} as typeof import('../../../server/app-render/instant-validation/boundary-impl'))\n\nexport {\n InstantValidationBoundaryContext,\n PlaceValidationBoundaryBelowThisLevel,\n RenderValidationBoundaryAtThisLevel,\n}\n"],"names":["InstantValidationBoundaryContext","PlaceValidationBoundaryBelowThisLevel","RenderValidationBoundaryAtThisLevel","window","process","env","__NEXT_CACHE_COMPONENTS","require"],"mappings":"AAAA;;;;;;;;;;;;;;;;;IAqBEA,gCAAgC;eAAhCA;;IACAC,qCAAqC;eAArCA;;IACAC,mCAAmC;eAAnCA;;;AArBF,0EAA0E;AAC1E,EAAE;AACF,sEAAsE;AACtE,kGAAkG;AAClG,yFAAyF;AACzF,mFAAmF;AACnF,4EAA4E;AAC5E,4DAA4D;AAE5D,MAAM,EACJF,gCAAgC,EAChCC,qCAAqC,EACrCC,mCAAmC,EACpC,GACC,OAAOC,WAAW,eAAeC,QAAQC,GAAG,CAACC,uBAAuB,GAC/DC,QAAQ,iEACR,CAAC","ignoreList":[0]}
|
||||
Reference in New Issue
Block a user