@sanity/pkg-utils 6.0.0 → 6.0.1
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/pkg-utils",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Simple utilities for modern npm packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity-io",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"typescript": "5.4.2",
|
|
134
134
|
"vitest": "^1.4.0",
|
|
135
135
|
"vitest-github-actions-reporter": "^0.11.1",
|
|
136
|
-
"@sanity/pkg-utils": "6.0.
|
|
136
|
+
"@sanity/pkg-utils": "6.0.1"
|
|
137
137
|
},
|
|
138
138
|
"peerDependencies": {
|
|
139
139
|
"typescript": "5.4.2"
|
|
@@ -94,13 +94,6 @@ export function resolveRollupConfig(
|
|
|
94
94
|
preferBuiltins: true,
|
|
95
95
|
}),
|
|
96
96
|
commonjs(),
|
|
97
|
-
enableOptimizeLodash &&
|
|
98
|
-
optimizeLodashImports({
|
|
99
|
-
useLodashEs: format === 'esm' && hasDependency(pkg, 'lodash-es') ? true : undefined,
|
|
100
|
-
...(typeof config?.rollup?.optimizeLodash === 'boolean'
|
|
101
|
-
? {}
|
|
102
|
-
: config?.rollup?.optimizeLodash),
|
|
103
|
-
}),
|
|
104
97
|
json(),
|
|
105
98
|
esbuild({
|
|
106
99
|
jsx: config?.jsx ?? 'automatic',
|
|
@@ -120,6 +113,13 @@ export function resolveRollupConfig(
|
|
|
120
113
|
babelrc: false,
|
|
121
114
|
plugins: config.babel.plugins,
|
|
122
115
|
}),
|
|
116
|
+
enableOptimizeLodash &&
|
|
117
|
+
optimizeLodashImports({
|
|
118
|
+
useLodashEs: format === 'esm' && hasDependency(pkg, 'lodash-es') ? true : undefined,
|
|
119
|
+
...(typeof config?.rollup?.optimizeLodash === 'boolean'
|
|
120
|
+
? {}
|
|
121
|
+
: config?.rollup?.optimizeLodash),
|
|
122
|
+
}),
|
|
123
123
|
minify &&
|
|
124
124
|
terser({
|
|
125
125
|
compress: {directives: false},
|