123456789101112131415161718192021 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.isClientComponentModule = isClientComponentModule;
- var _constants = require("../../../shared/lib/constants");
- const imageExtensions = [
- "jpg",
- "jpeg",
- "png",
- "webp",
- "avif"
- ];
- const imageRegex = new RegExp(`\\.(${imageExtensions.join("|")})$`);
- function isClientComponentModule(mod) {
- var ref;
- const hasClientDirective = ((ref = mod.buildInfo.rsc) == null ? void 0 : ref.type) === _constants.RSC_MODULE_TYPES.client;
- return hasClientDirective || imageRegex.test(mod.resource);
- }
- //# sourceMappingURL=utils.js.map
|