Skip to content

Commit

Permalink
chore(deps): upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
sonofmagic committed Feb 1, 2025
1 parent 1e09732 commit ed585a5
Show file tree
Hide file tree
Showing 13 changed files with 3,404 additions and 1,412 deletions.
3 changes: 2 additions & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview",
"gen": "tsx ./scripts/index.ts"
"gen:postcss": "tsx ./scripts/postcss.ts",
"gen:vite": "tsx ./scripts/vite.ts"
},
"dependencies": {
"vue": "^3.5.13",
Expand Down
1 change: 1 addition & 0 deletions benchmark/scripts/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'tailwindcss';
19 changes: 13 additions & 6 deletions benchmark/scripts/index.ts → benchmark/scripts/postcss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@ import path from 'pathe'
import postcss from 'postcss'

async function main() {
const { css } = await postcss([
tailwindcss({
const { css } = await postcss(
[
tailwindcss({

}),
]).process('@import "tailwindcss";', {
from: './index.ts',
})
}),
],
)
.process(
// @ts-ignore
'@import "tailwindcss";',
{
from: './index.ts',
},
)

await fs.outputFile(path.resolve(import.meta.dirname, '../../packages/weapp-tailwindcss/test/fixtures/css/v4-default.css'), css, 'utf8')
}
Expand Down
17 changes: 17 additions & 0 deletions benchmark/scripts/vite.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import path from 'pathe'
import { build } from 'vite'

async function main() {
await build({
build: {
rollupOptions: {
input: [
path.resolve(import.meta.dirname, './index.css'),
],
},
outDir: './scripts/dist',
},
})
}

main()
1 change: 1 addition & 0 deletions packages/postcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"postcss-selector-parser": "~7.0.0"
},
"devDependencies": {
"@csstools/postcss-cascade-layers": "^5.0.1",
"@weapp-tailwindcss/mangle": "workspace:*"
}
}
1,289 changes: 1,289 additions & 0 deletions packages/postcss/test/__snapshots__/v4.test.ts.snap

Large diffs are not rendered by default.

629 changes: 629 additions & 0 deletions packages/postcss/test/fixtures/css/v4-postcss.css

Large diffs are not rendered by default.

Loading

0 comments on commit ed585a5

Please sign in to comment.