Skip to content

Commit 81071c5

Browse files
committed
fix(scan): add postcss-nesting for older Chromium support
1 parent c1f47c5 commit 81071c5

File tree

3 files changed

+59
-7
lines changed

3 files changed

+59
-7
lines changed

packages/scan/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@
277277
"es-module-lexer": "^1.5.4",
278278
"next": "*",
279279
"postcss-cli": "^11.0.0",
280+
"postcss-nesting": "^13.0.2",
280281
"prettier": "^3.3.3",
281282
"publint": "^0.2.12",
282283
"react": "*",

packages/scan/postcss.config.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import autoprefixer from 'autoprefixer';
2+
import postcssNesting from 'postcss-nesting';
23
import tailwindcss from 'tailwindcss';
34
import remToPx from './postcss.rem2px.mjs';
45

56
export default {
6-
plugins: [remToPx({ baseValue: 16 }), tailwindcss, autoprefixer],
7+
plugins: [
8+
remToPx({ baseValue: 16 }),
9+
postcssNesting,
10+
tailwindcss,
11+
autoprefixer,
12+
],
713
};

pnpm-lock.yaml

Lines changed: 51 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)