@sanity/pkg-utils 7.11.0 → 7.11.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.
|
@@ -1340,11 +1340,20 @@ function resolveRollupConfig(ctx, buildTask) {
|
|
|
1340
1340
|
commonjs__default.default(),
|
|
1341
1341
|
json__default.default(),
|
|
1342
1342
|
config2?.rollup?.vanillaExtract && rollupPlugin.vanillaExtractPlugin(
|
|
1343
|
-
config2?.rollup?.vanillaExtract === !0 ? {
|
|
1343
|
+
config2?.rollup?.vanillaExtract === !0 ? {
|
|
1344
|
+
extract: {
|
|
1345
|
+
name: runtime === "node" ? "bundle.node.css" : runtime === "browser" ? "bundle.browser.css" : "bundle.css",
|
|
1346
|
+
sourcemap: !0
|
|
1347
|
+
},
|
|
1348
|
+
identifiers: "short"
|
|
1349
|
+
} : config2?.rollup?.vanillaExtract
|
|
1344
1350
|
),
|
|
1345
1351
|
config2?.rollup?.vanillaExtract && optimizeCss(
|
|
1346
|
-
config2?.rollup?.vanillaExtract === !0 ? {
|
|
1347
|
-
extractFileName:
|
|
1352
|
+
config2?.rollup?.vanillaExtract === !0 ? {
|
|
1353
|
+
extractFileName: runtime === "node" ? "bundle.node.css" : runtime === "browser" ? "bundle.browser.css" : "bundle.css",
|
|
1354
|
+
browserslist: DEFAULT_BROWSERSLIST_QUERY
|
|
1355
|
+
} : {
|
|
1356
|
+
extractFileName: typeof config2.rollup.vanillaExtract.extract == "object" && config2.rollup.vanillaExtract.extract.name ? config2.rollup.vanillaExtract.extract.name : runtime === "node" ? "bundle.node.css" : runtime === "browser" ? "bundle.browser.css" : "bundle.css",
|
|
1348
1357
|
browserslist: config2.rollup.vanillaExtract.browserslist || DEFAULT_BROWSERSLIST_QUERY
|
|
1349
1358
|
}
|
|
1350
1359
|
),
|