Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sanity-io/pkg-utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7af6ff493fe931ae6f55c85055a71e63a8610fb4
Choose a base ref
...
head repository: sanity-io/pkg-utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d5cd4218f8aac97d027208d9969061038bdc5586
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Mar 19, 2024

  1. fix: backport from v5

    stipsan committed Mar 19, 2024
    Copy the full SHA
    86b59c8 View commit details
  2. 4.4.3

    stipsan committed Mar 19, 2024
    Copy the full SHA
    d5cd421 View commit details
Showing with 4 additions and 4 deletions.
  1. +1 −1 package.json
  2. +3 −3 src/node/tasks/rollup/resolveRollupConfig.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sanity/pkg-utils",
"version": "4.4.2",
"version": "4.4.3",
"description": "Simple utilities for modern npm packages.",
"keywords": [
"sanity-io",
6 changes: 3 additions & 3 deletions src/node/tasks/rollup/resolveRollupConfig.ts
Original file line number Diff line number Diff line change
@@ -194,13 +194,13 @@ export function resolveRollupConfig(
outputOptions: {
chunkFileNames: () => {
const parts = outputExt.split('.')
const prefix = config?.rollup?.hashChunkFileNames ? '[name]-[hash]' : '[name]-[format]'
const prefix = config?.rollup?.hashChunkFileNames ? '[name]-[hash]' : '[name]'

if (parts.length === 3) {
return `_chunks/${prefix}.${parts[2]}`
return `_chunks-[format]/${prefix}.${parts[2]}`
}

return `_chunks/${prefix}${outputExt}`
return `_chunks-[format]/${prefix}${outputExt}`
},
compact: minify,
dir: outDir,