Skip to content

Commit 7867876

Browse files
feat: remove CSS logical properties PostCSS polyfills
1 parent 629a94c commit 7867876

File tree

9 files changed

+1330
-1524
lines changed

9 files changed

+1330
-1524
lines changed

docs/guide/postcss.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# PostCSS
22

3+
To use PostCSS transformations in your project, you will need to create your own PostCSS configuration file and install the necessary plugins.
4+
35
If the project contains a valid PostCSS config (any format supported by [postcss-load-config](https://github.com/postcss/postcss-load-config), e.g. `postcss.config.cjs`), it will be automatically applied to all imported CSS.
46

5-
If no configuration file is found, kirbyup will apply two PostCSS plugins which the Kirby Panel uses as well to let you embrace the same functionality within your Panel plugins. The following PostCSS transforms are applied by kirbyup:
7+
::: info
8+
As of v3.3, kirbyup it no longer applies any default PostCSS plugins. This aligns with Kirby 4 and newer, which uses plain Vite without additional PostCSS configurations.
69

7-
- [postcss-logical](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical) lets you use logical, rather than physical, direction and dimension mappings in CSS, following the [CSS Logical Properties and Values](https://drafts.csswg.org/css-logical/) specification.
8-
- [postcss-dir-pseudo-class](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-dir-pseudo-class) lets you style by directionality using the `:dir()` pseudo-class in CSS, following the [Selectors](https://www.w3.org/TR/selectors-4/#the-dir-pseudo) specification. It gives you the same syntax Kirby uses for full compatibility with RTL localizations of the Panel.
10+
Without a custom configuration, no PostCSS transformations will be applied beyond what Vite provides by default.
11+
:::

examples/eslint/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"lint:fix": "eslint . --fix"
99
},
1010
"devDependencies": {
11-
"@antfu/eslint-config": "^4.3.0",
12-
"eslint": "^9.21.0",
13-
"kirbyup": "^3.2.0"
11+
"@antfu/eslint-config": "^4.11.0",
12+
"eslint": "^9.24.0",
13+
"kirbyup": "^3.2.1"
1414
}
1515
}

examples/tailwindcss/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"lint:fix": "eslint . --fix"
99
},
1010
"devDependencies": {
11-
"@antfu/eslint-config": "^4.3.0",
12-
"autoprefixer": "^10.4.20",
13-
"eslint": "^9.21.0",
11+
"@antfu/eslint-config": "^4.11.0",
12+
"autoprefixer": "^10.4.21",
13+
"eslint": "^9.24.0",
1414
"eslint-plugin-tailwindcss": "^3.18.0",
15-
"kirbyup": "^3.2.0",
15+
"kirbyup": "^3.2.1",
1616
"tailwindcss": "^3.4.17"
1717
}
1818
}

package.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "kirbyup",
33
"type": "module",
44
"version": "3.2.1",
5-
"packageManager": "pnpm@10.5.2",
5+
"packageManager": "pnpm@10.7.1",
66
"description": "Zero-config bundler for Kirby Panel plugins",
77
"author": {
88
"name": "Johann Schopplich",
@@ -74,34 +74,32 @@
7474
"@vitejs/plugin-vue2": "2.2.0",
7575
"@vitejs/plugin-vue2-jsx": "1.1.0",
7676
"@vue/compiler-sfc": "^2.7.16",
77-
"c12": "^3.0.2",
77+
"c12": "^3.0.3",
7878
"cac": "^6.7.14",
7979
"chokidar": "~3.6.0",
80-
"consola": "^3.4.0",
80+
"consola": "^3.4.2",
8181
"magic-string": "^0.30.17",
8282
"pathe": "^2.0.3",
8383
"perfect-debounce": "^1.0.0",
8484
"postcss": "^8.5.3",
85-
"postcss-dir-pseudo-class": "^9.0.1",
8685
"postcss-load-config": "^6.0.1",
87-
"postcss-logical": "^8.1.0",
8886
"rollup-plugin-external-globals": "^0.13.0",
89-
"sass": "^1.85.1",
90-
"vite": "~5.4.14",
87+
"sass": "^1.86.3",
88+
"vite": "~5.4.17",
9189
"vite-plugin-full-reload": "^1.2.0",
9290
"vue": "^2.7.16"
9391
},
9492
"devDependencies": {
95-
"@antfu/eslint-config": "^4.3.0",
96-
"@types/node": "^22.13.5",
93+
"@antfu/eslint-config": "^4.11.0",
94+
"@types/node": "^22.14.0",
9795
"@types/prompts": "^2.4.9",
98-
"bumpp": "^10.0.3",
99-
"eslint": "^9.21.0",
96+
"bumpp": "^10.1.0",
97+
"eslint": "^9.24.0",
10098
"fast-glob": "^3.3.3",
10199
"nypm": "^0.6.0",
102-
"typescript": "^5.7.3",
100+
"typescript": "^5.8.3",
103101
"unbuild": "^3.5.0",
104-
"vitest": "^3.0.7"
102+
"vitest": "^3.1.1"
105103
},
106104
"pnpm": {
107105
"onlyBuiltDependencies": [

0 commit comments

Comments
 (0)