Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/babel-eight.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@tailwindcss-mangle/core": patch
"tailwindcss-patch": patch
"unplugin-tailwindcss-mangle": patch
---

Migrate direct Babel dependencies from 7 to 8 and align Node.js engine requirements.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ['22.13', '24']
node-version: ['22.18', '24.11']
runs-on: ${{ matrix.os }}
# Remote Caching enabled - configure TURBO_TOKEN and TURBO_TEAM in repository settings
env:
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 22.18
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 22.18
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 22.18
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: 24
node-version: 24.11
cache: pnpm

- name: Install Dependencies
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Repository Guidelines

## Environment Setup
Use Node.js 22.13 or newer and install dependencies with `pnpm` (enforced by `preinstall`). Run `pnpm install` from the repo root to link workspace packages and set up local post-install patches via `tw-patch`.
Use Node.js 22.18.x or 24.11 or newer and install dependencies with `pnpm` (enforced by `preinstall`). Run `pnpm install` from the repo root to link workspace packages and set up local post-install patches via `tw-patch`.

## Project Structure & Module Organization
Source lives in `packages/`, with `@tailwindcss-mangle/core` providing the transformation engine, `shared` for cross-package utils, `config` for preset defaults, `tailwindcss-patch` to shim Tailwind versions, and `unplugin-tailwindcss-mangle` for build-tool integrations. Example applications live under `apps/` for framework-specific smoke tests, while `website/` hosts the Astro-powered docs. Reusable scripts live in `scripts/`, and assets used by docs and samples are under `assets/`.
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"packageManager": "pnpm@11.6.0",
"engines": {
"node": ">=22.13.0"
"node": "^22.18.0 || >=24.11.0"
},
"scripts": {
"build": "turbo run build --filter=./packages/*",
Expand Down Expand Up @@ -61,9 +61,6 @@
"@tailwindcss-mangle/shared": "workspace:*",
"@tailwindcss/postcss": "^4.3.1",
"@tsconfig/recommended": "^1.0.13",
"@types/babel__generator": "^7.27.0",
"@types/babel__helper-plugin-utils": "^7.10.3",
"@types/babel__traverse": "^7.28.0",
"@types/fs-extra": "^11.0.4",
"@types/get-value": "^3.0.5",
"@types/html-minifier-terser": "^7.0.2",
Expand Down
9 changes: 6 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"description": "The core of tailwindcss-mangle",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
"engines": {
"node": "^22.18.0 || >=24.11.0"
},
"homepage": "https://mangle.icebreaker.top/",
"repository": {
"type": "git",
Expand Down Expand Up @@ -64,9 +67,9 @@
},
"dependencies": {
"@ast-core/escape": "^1.0.1",
"@babel/parser": "^7.29.7",
"@babel/traverse": "^7.29.7",
"@babel/types": "^7.29.7",
"@babel/parser": "^8.0.0",
"@babel/traverse": "^8.0.0",
"@babel/types": "^8.0.0",
"@tailwindcss-mangle/config": "workspace:^",
"@tailwindcss-mangle/shared": "workspace:^",
"@vue/compiler-sfc": "^3.5.38",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
node-version:
description: Node.js version used when setup-node is enabled.
required: false
default: '22.13'
default: '22.18'
cache-dependency-path:
description: Cache dependency path for actions/setup-node.
required: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
setup-pnpm: 'true'
setup-node: 'true'
install-deps: 'true'
node-version: '22.13'
node-version: '22.18'
cache-dependency-path: pnpm-lock.yaml
install-command: pnpm install --frozen-lockfile
scope: ${{ matrix.shard.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
setup-pnpm: 'true'
setup-node: 'true'
install-deps: 'true'
node-version: '22.13'
node-version: '22.18'
cache-dependency-path: pnpm-lock.yaml
install-command: pnpm install --frozen-lockfile
scope: ${{ matrix.shard.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
setup-pnpm: 'true'
setup-node: 'true'
install-deps: 'true'
node-version: '22.13'
node-version: '22.18'
cache-dependency-path: pnpm-lock.yaml
install-command: pnpm install --frozen-lockfile
scope: all
Expand Down
10 changes: 5 additions & 5 deletions packages/tailwindcss-patch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
"node": "^22.18.0 || >=24.11.0"
},
"homepage": "https://mangle.icebreaker.top/",
"repository": {
Expand Down Expand Up @@ -89,10 +89,10 @@
}
},
"dependencies": {
"@babel/generator": "^7.29.7",
"@babel/parser": "^7.29.7",
"@babel/traverse": "^7.29.7",
"@babel/types": "^7.29.7",
"@babel/generator": "^8.0.0",
"@babel/parser": "^8.0.0",
"@babel/traverse": "^8.0.0",
"@babel/types": "^8.0.0",
"@tailwindcss-mangle/config": "workspace:*",
"@tailwindcss/node": "^4.3.1",
"@tailwindcss/oxide": "^4.3.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function transformPostcssPluginV2(content: string, options: ExposeContext
t.variableDeclarator(
refIdentifier,
t.objectExpression([
t.objectProperty(t.identifier('value'), t.arrayExpression()),
t.objectProperty(t.identifier('value'), t.arrayExpression([])),
]),
),
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function transformPostcssPlugin(content: string, { refProperty }: ExposeC
t.variableDeclarator(
refIdentifier,
t.objectExpression([
t.objectProperty(t.identifier('value'), t.arrayExpression()),
t.objectProperty(t.identifier('value'), t.arrayExpression([])),
]),
),
]),
Expand Down
3 changes: 3 additions & 0 deletions packages/unplugin-tailwindcss-mangle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"description": "mangle tailwindcss utilities class plugin. support vite and webpack!",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
"engines": {
"node": "^22.18.0 || >=24.11.0"
},
"homepage": "https://mangle.icebreaker.top/",
"repository": {
"type": "git",
Expand Down
Loading
Loading