@sanity/pkg-utils 5.0.4 → 5.0.5
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.
|
@@ -19828,8 +19828,8 @@ function resolveRollupConfig(ctx, buildTask) {
|
|
|
19828
19828
|
},
|
|
19829
19829
|
outputOptions: {
|
|
19830
19830
|
chunkFileNames: () => {
|
|
19831
|
-
const parts = outputExt.split("."), prefix = config?.rollup?.hashChunkFileNames ? "[name]-[hash]" : "[name]";
|
|
19832
|
-
return parts.length === 3 ?
|
|
19831
|
+
const parts = outputExt.split("."), prefix = config?.rollup?.hashChunkFileNames ? "[name]-[hash]" : "[name]", folder = config?.rollup?.hashChunkFileNames ? "_chunks" : "_chunks-[format]";
|
|
19832
|
+
return parts.length === 3 ? `${folder}/${prefix}.${parts[2]}` : `${folder}/${prefix}${outputExt}`;
|
|
19833
19833
|
},
|
|
19834
19834
|
compact: minify,
|
|
19835
19835
|
dir: outDir,
|