From 04165eae6e8ae1d5c94aeaa68306a8c22a7749da Mon Sep 17 00:00:00 2001
From: ice breaker <1324318532@qq.com>
Date: Sat, 10 Jun 2023 23:54:07 +0800
Subject: [PATCH 01/15] feat: add cssChildCombinatorReplaceValue option
---
.../src/components/CommonCom.vue | 18 +
.../src/components/VirtualHostCom.vue | 23 +
.../src/pages/index/index.vue | 16 +-
src/defaults.ts | 3 +-
src/options.ts | 6 +-
src/postcss/mp.ts | 42 +-
src/postcss/plugin.ts | 5 +-
src/types.ts | 33 +
test/__snapshots__/options.test.ts.snap | 1 +
test/extractors.test.ts | 5 +-
test/js.test.ts | 4 +-
test/mangle.test.ts | 10 +-
test/options.test.ts | 2 +-
test/patcher.test.ts | 8 +-
test/postcss.test.ts | 4 +-
test/regexp.test.ts | 12 +-
test/tailwindcss/versions-patch.test.ts | 4 +-
test/util.test.ts | 51 +-
.../responsive-design.test.ts.snap | 32 +
test/vitest/responsive-design.test.ts | 24 +
test/webpack.v5.test.ts | 5 +-
test/wxml/customTempleteHandler.test.ts | 4 +-
test/wxml/handlingWhitespace.test.ts | 1 +
website/docusaurus.config.js | 8 +-
website/package.json | 7 +-
website/pnpm-lock.yaml | 580 +-----------------
26 files changed, 264 insertions(+), 644 deletions(-)
create mode 100644 demo/uni-app-vue3-vite/src/components/CommonCom.vue
create mode 100644 demo/uni-app-vue3-vite/src/components/VirtualHostCom.vue
diff --git a/demo/uni-app-vue3-vite/src/components/CommonCom.vue b/demo/uni-app-vue3-vite/src/components/CommonCom.vue
new file mode 100644
index 000000000..7ae1de54e
--- /dev/null
+++ b/demo/uni-app-vue3-vite/src/components/CommonCom.vue
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/demo/uni-app-vue3-vite/src/components/VirtualHostCom.vue b/demo/uni-app-vue3-vite/src/components/VirtualHostCom.vue
new file mode 100644
index 000000000..6856fb242
--- /dev/null
+++ b/demo/uni-app-vue3-vite/src/components/VirtualHostCom.vue
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/demo/uni-app-vue3-vite/src/pages/index/index.vue b/demo/uni-app-vue3-vite/src/pages/index/index.vue
index 8b7a50a39..9bf0e6e07 100644
--- a/demo/uni-app-vue3-vite/src/pages/index/index.vue
+++ b/demo/uni-app-vue3-vite/src/pages/index/index.vue
@@ -2,6 +2,19 @@
2xl:text-base
2xl:text-[red]
+
+ view space-y-4
+ view space-y-4
+
+ text space-y-4
+
+ CommonCom space-y-4
+ view space-y-4
+ text space-y-4
+ VirtualHostCom space-y-4
+ view space-y-4
+ text space-y-4
+
bgbgbgbg
bgbgbgbg
classArray
@@ -74,7 +87,8 @@