@weapp-tailwindcss/postcss 1.2.1-alpha.0 → 1.2.2
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ function getDefaultOptions(options) {
|
|
|
17
17
|
"oklab-function": true,
|
|
18
18
|
"color-mix": true,
|
|
19
19
|
// 在 calc 下,这个需要开启
|
|
20
|
-
"custom-properties": _optionalChain([options, 'optionalAccess', _ => _.
|
|
20
|
+
"custom-properties": _nullishCoalesce(_optionalChain([options, 'optionalAccess', _ => _.cssPresetEnv, 'optionalAccess', _2 => _2.features, 'optionalAccess', _3 => _3["custom-properties"]]), () => ( _optionalChain([options, 'optionalAccess', _4 => _4.cssCalc]))) ? { preserve: true } : false
|
|
21
21
|
},
|
|
22
22
|
autoprefixer: {
|
|
23
23
|
add: false
|
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ function getDefaultOptions(options) {
|
|
|
17
17
|
"oklab-function": true,
|
|
18
18
|
"color-mix": true,
|
|
19
19
|
// 在 calc 下,这个需要开启
|
|
20
|
-
"custom-properties": options?.cssCalc ? { preserve:
|
|
20
|
+
"custom-properties": options?.cssPresetEnv?.features?.["custom-properties"] ?? options?.cssCalc ? { preserve: true } : false
|
|
21
21
|
},
|
|
22
22
|
autoprefixer: {
|
|
23
23
|
add: false
|