Skip to content

Commit 977d664

Browse files
committed
tweak
1 parent 9803cd5 commit 977d664

3 files changed

Lines changed: 20 additions & 10 deletions

File tree

e2e/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
import assert from 'node:assert';
22
import plugin from 'postcss-preset-env';
3-
plugin({ preserve: true });
3+
plugin({
4+
preserve: true,
5+
features: {
6+
'all-property': [true, { preserve: true }],
7+
'any-link-pseudo-class': [false, { preserve: true }],
8+
'cascade-layers': ['auto', { onImportLayerRule: 'warn' }],
9+
'color-function': { preserve: true, enableProgressiveCustomProperties: false },
10+
'color-mix': false,
11+
'light-dark-function': true,
12+
},
13+
});
414
assert.ok(plugin.postcss, 'should have "postcss flag"');
515
assert.equal(typeof plugin, 'function', 'should return a function');

e2e/webpack/bundle-through/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const postcss = require('postcss');
2-
const postcssPresetEnv = require('postcss-preset-env');
2+
const postcssPresetEnv = require('postcss-preset-env').default;
33

44
try {
55
postcss([postcssPresetEnv({

0 commit comments

Comments
 (0)