weapp-tailwindcss 5.0.0-next.2 → 5.0.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -7
- package/bin/weapp-tailwindcss.js +1 -21
- package/dist/bundle-state-BlXvU4jl.js +530 -0
- package/dist/bundle-state-PO6MysTJ.mjs +414 -0
- package/dist/bundlers/shared/cache.d.ts +6 -6
- package/dist/bundlers/shared/css-cleanup/at-rules.d.ts +2 -0
- package/dist/bundlers/shared/css-cleanup/color-gamut.d.ts +3 -0
- package/dist/bundlers/shared/css-cleanup/root-cleanups.d.ts +5 -0
- package/dist/bundlers/shared/css-cleanup/selectors.d.ts +8 -0
- package/dist/bundlers/shared/css-cleanup.d.ts +7 -3
- package/dist/bundlers/shared/css-imports.d.ts +3 -3
- package/dist/bundlers/shared/generated-css-marker.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/config-directive.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/directives.d.ts +20 -0
- package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +7 -0
- package/dist/bundlers/shared/generator-css/legacy-selectors.d.ts +5 -0
- package/dist/bundlers/shared/generator-css/legacy-units.d.ts +1 -0
- package/dist/bundlers/shared/generator-css/markers.d.ts +28 -0
- package/dist/bundlers/shared/generator-css/source-files.d.ts +14 -0
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +24 -0
- package/dist/bundlers/shared/generator-css.d.ts +16 -22
- package/dist/bundlers/shared/hmr-timing.d.ts +22 -0
- package/dist/bundlers/shared/style-requests.d.ts +2 -0
- package/dist/bundlers/vite/bundle-state.d.ts +1 -0
- package/dist/bundlers/vite/css-finalizer.d.ts +7 -1
- package/dist/bundlers/vite/generate-bundle/candidates.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +24 -0
- package/dist/bundlers/vite/generate-bundle/css-share-scope.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/dirty-state.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/js-entries.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/js-handler-options.d.ts +8 -0
- package/dist/bundlers/vite/generate-bundle/js-linking.d.ts +13 -0
- package/dist/bundlers/vite/generate-bundle/metrics.d.ts +17 -0
- package/dist/bundlers/vite/generate-bundle/process-plan.d.ts +9 -0
- package/dist/bundlers/vite/generate-bundle/rollup-assets.d.ts +7 -0
- package/dist/bundlers/vite/generate-bundle/signatures.d.ts +8 -0
- package/dist/bundlers/vite/generate-bundle.d.ts +14 -2
- package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +5 -1
- package/dist/bundlers/vite/index.d.ts +1 -1
- package/dist/bundlers/vite/official-tailwind-plugins.d.ts +5 -0
- package/dist/bundlers/vite/postcss-config.d.ts +6 -0
- package/dist/bundlers/vite/processed-css-assets.d.ts +32 -0
- package/dist/bundlers/vite/rewrite-css-imports.d.ts +8 -3
- package/dist/bundlers/vite/runtime-class-set.d.ts +25 -0
- package/dist/bundlers/vite/source-candidates.d.ts +16 -1
- package/dist/bundlers/vite/source-scan.d.ts +26 -0
- package/dist/bundlers/vite/static-config-content.d.ts +5 -0
- package/dist/bundlers/vite/tailwind-basedir.d.ts +1 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/shared.d.ts +6 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +6 -2
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +9 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +1 -0
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +31 -0
- package/dist/bundlers/webpack/loaders/weapp-tw-css-import-rewrite-loader.d.ts +2 -6
- package/dist/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.d.ts +3 -7
- package/dist/cache/index.d.ts +6 -6
- package/dist/cli/context.d.ts +1 -14
- package/dist/cli/doctor/types.d.ts +11 -11
- package/dist/cli/helpers.d.ts +1 -2
- package/dist/cli/mount-options.d.ts +2 -0
- package/dist/cli/types.d.ts +0 -2
- package/dist/cli/vscode-entry.d.ts +3 -3
- package/dist/cli.js +605 -611
- package/dist/cli.mjs +614 -620
- package/dist/constants.d.ts +1 -2
- package/dist/core.js +13 -20
- package/dist/core.mjs +8 -14
- package/dist/css-macro/postcss.js +3 -2
- package/dist/css-macro/postcss.mjs +3 -2
- package/dist/css-macro.d.ts +1 -0
- package/dist/css-macro.js +2 -2
- package/dist/css-macro.mjs +2 -2
- package/dist/defaults-B1igPF_e.mjs +150 -0
- package/dist/defaults-IHhYxNeU.js +193 -0
- package/dist/defaults.d.ts +15 -1
- package/dist/defaults.js +6 -131
- package/dist/defaults.mjs +2 -129
- package/dist/escape.js +10 -2
- package/dist/escape.mjs +10 -2
- package/dist/generator/index.d.ts +1 -1
- package/dist/generator/options.d.ts +9 -8
- package/dist/generator/types.d.ts +3 -3
- package/dist/generator-DIuglJub.mjs +32 -0
- package/dist/generator-N4jy1HCk.js +55 -0
- package/dist/generator.js +12 -11
- package/dist/generator.mjs +2 -1
- package/dist/gulp.js +185 -47
- package/dist/gulp.mjs +179 -41
- package/dist/incremental-runtime-class-set-CJ0Pnsw2.js +2348 -0
- package/dist/incremental-runtime-class-set-hF-uiw6W.mjs +2285 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/dist/js/babel/cache-options.d.ts +3 -0
- package/dist/js/babel/parse.d.ts +7 -4
- package/dist/js/index.d.ts +1 -0
- package/dist/js/literal-transform.d.ts +2 -0
- package/dist/js/precheck.d.ts +2 -2
- package/dist/lightningcss/style-handler/selector-transform.d.ts +1 -1
- package/dist/lightningcss/style-handler.d.ts +3 -3
- package/dist/logger-CZUxvJJD.mjs +2 -0
- package/dist/logger-EVNB9z7i.js +1 -0
- package/dist/postcss/config-directive.d.ts +1 -0
- package/dist/postcss/context.d.ts +9 -0
- package/dist/postcss/source-files.d.ts +8 -0
- package/dist/postcss/tailwind-version.d.ts +3 -0
- package/dist/postcss-D4UdbBQ6.mjs +228 -0
- package/dist/postcss-DlY-YRvA.js +237 -0
- package/dist/postcss.d.ts +2 -2
- package/dist/postcss.js +3 -276
- package/dist/postcss.mjs +1 -269
- package/dist/{recorder-gYSNLfOP.js → precheck-BjEbVEpX.js} +218 -314
- package/dist/{recorder-zsgatmkB.mjs → precheck-tbk626YL.mjs} +186 -281
- package/dist/presets.js +13 -11
- package/dist/presets.mjs +11 -9
- package/dist/reset.d.ts +1 -0
- package/dist/runtime-registry-D5qnaSpo.js +5516 -0
- package/dist/shared/mpx.d.ts +1 -0
- package/dist/source-candidates-BrvneDDd.mjs +209 -0
- package/dist/source-candidates-gxijpPI3.js +222 -0
- package/dist/tailwindcss/miniprogram.d.ts +5 -1
- package/dist/tailwindcss/patcher-options.d.ts +3 -51
- package/dist/tailwindcss/patcher.d.ts +1 -2
- package/dist/tailwindcss/runtime/cache.d.ts +4 -3
- package/dist/tailwindcss/runtime-patch.d.ts +5 -0
- package/dist/tailwindcss/runtime.d.ts +11 -12
- package/dist/tailwindcss/source-scan.d.ts +35 -0
- package/dist/tailwindcss/targets.d.ts +1 -5
- package/dist/tailwindcss/v3-engine/types.d.ts +17 -14
- package/dist/tailwindcss/v4/css-entries.d.ts +2 -2
- package/dist/tailwindcss/v4/css-sources.d.ts +5 -0
- package/dist/tailwindcss/v4/patcher-options.d.ts +1 -23
- package/dist/tailwindcss/v4/patcher.d.ts +1 -0
- package/dist/tailwindcss/v4-engine/source.d.ts +2 -2
- package/dist/tailwindcss/v4-engine/types.d.ts +17 -5
- package/dist/tailwindcss/version.d.ts +4 -0
- package/dist/tailwindcss-BhG7BtB-.js +651 -0
- package/dist/tailwindcss-c6ROlNNW.mjs +600 -0
- package/dist/typedoc.export.d.ts +0 -2
- package/dist/types/index.d.ts +51 -48
- package/dist/types/shared.d.ts +3 -0
- package/dist/types/user-defined-options/general.d.ts +23 -23
- package/dist/types/user-defined-options/important.d.ts +31 -28
- package/dist/types/user-defined-options/lifecycle.d.ts +4 -4
- package/dist/types/user-defined-options/matcher.d.ts +6 -6
- package/dist/uni-app-x/vite.d.ts +1 -1
- package/dist/utils/disabled.d.ts +2 -3
- package/dist/utils/object.d.ts +9 -0
- package/dist/{utils-DmC9_In3.js → utils-4ODFyoqD.js} +1 -1
- package/dist/{utils-7DUGTFED.mjs → utils-CGBVVNm6.mjs} +1 -1
- package/dist/v3-engine-5LoZUH-4.js +3695 -0
- package/dist/v3-engine-DIXDEDmL.mjs +3406 -0
- package/dist/{vite-CrlzCNqz.mjs → vite-B5faZcbE.mjs} +1256 -1088
- package/dist/vite-MyXBNux0.js +2368 -0
- package/dist/vite.d.ts +1 -2
- package/dist/vite.js +3 -4
- package/dist/vite.mjs +2 -2
- package/dist/weapp-tw-css-import-rewrite-loader.js +5157 -16
- package/dist/weapp-tw-runtime-classset-loader.js +32 -7
- package/dist/webpack-BnVyDmsD.mjs +836 -0
- package/dist/webpack-Mz1V0A9p.js +846 -0
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +27 -37
- package/dist/bundlers/shared/generator-candidates.d.ts +0 -5
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4-assets.d.ts +0 -14
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4-loaders.d.ts +0 -15
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4.d.ts +0 -9
- package/dist/bundlers/webpack/shared/css-imports.d.ts +0 -6
- package/dist/cli/config.d.ts +0 -5
- package/dist/cli/helpers/patch-cwd.d.ts +0 -1
- package/dist/cli/mount-options/patch-status.d.ts +0 -2
- package/dist/cli/patch-options.d.ts +0 -6
- package/dist/cli/tokens.d.ts +0 -4
- package/dist/cli/workspace/package-dirs.d.ts +0 -3
- package/dist/cli/workspace/patch-package.d.ts +0 -3
- package/dist/cli/workspace/patch-utils.d.ts +0 -3
- package/dist/cli/workspace/types.d.ts +0 -11
- package/dist/cli/workspace/workspace-globs.d.ts +0 -2
- package/dist/cli/workspace/workspace-io.d.ts +0 -1
- package/dist/cli/workspace/workspace-lock.d.ts +0 -1
- package/dist/cli/workspace.d.ts +0 -2
- package/dist/css-imports-BbrbluP9.js +0 -177
- package/dist/css-imports-CSdPq_Sc.mjs +0 -128
- package/dist/experimental/index.d.ts +0 -2
- package/dist/experimental/oxc/ast-utils.d.ts +0 -30
- package/dist/experimental/oxc/index.d.ts +0 -2
- package/dist/experimental/oxc/module-specifiers.d.ts +0 -2
- package/dist/experimental/shared/cache.d.ts +0 -3
- package/dist/experimental/shared/transform.d.ts +0 -3
- package/dist/experimental/shared.d.ts +0 -8
- package/dist/experimental/swc/ast-utils.d.ts +0 -30
- package/dist/experimental/swc/index.d.ts +0 -2
- package/dist/experimental/swc/module-specifiers.d.ts +0 -2
- package/dist/generator-Y-Ikv4Fu.mjs +0 -1177
- package/dist/generator-css-B5ejWUMv.mjs +0 -1098
- package/dist/generator-css-D3OdPRiS.js +0 -1125
- package/dist/generator-mmhXzZnv.js +0 -1276
- package/dist/js/syntax.d.ts +0 -10
- package/dist/loader-anchors-CNkWT8hx.js +0 -273
- package/dist/loader-anchors-TrU7EUr7.mjs +0 -205
- package/dist/logger-BZ45DZJT.js +0 -1003
- package/dist/logger-BoVx1Dbt.mjs +0 -935
- package/dist/patcher-options-6gJN2EXy.js +0 -115
- package/dist/patcher-options-DQfR5xxT.mjs +0 -92
- package/dist/tailwindcss/recorder.d.ts +0 -13
- package/dist/tailwindcss/targets/paths.d.ts +0 -13
- package/dist/tailwindcss/targets/record-io.d.ts +0 -5
- package/dist/tailwindcss/targets/recorder.d.ts +0 -3
- package/dist/tailwindcss/targets/types.d.ts +0 -35
- package/dist/types/disabled-options.d.ts +0 -4
- package/dist/vite-BC9U7ahn.js +0 -2199
- package/dist/webpack-Bu6M-Hbw.mjs +0 -441
- package/dist/webpack-DD7A6V0u.js +0 -456
- package/dist/webpack4.d.ts +0 -4
- package/dist/webpack4.js +0 -387
- package/dist/webpack4.mjs +0 -379
- package/scripts/postinstall.mjs +0 -59
- /package/dist/{constants-B-_T5UnW.mjs → constants-BG12WAKw.mjs} +0 -0
- /package/dist/{constants-p1dyh1x1.js → constants-BeeyfJ9k.js} +0 -0
package/dist/webpack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_webpack = require("./webpack-
|
|
2
|
+
const require_webpack = require("./webpack-Mz1V0A9p.js");
|
|
3
3
|
exports.UnifiedWebpackPluginV5 = require_webpack.UnifiedWebpackPluginV5;
|
|
4
4
|
exports.WeappTailwindcss = require_webpack.UnifiedWebpackPluginV5;
|
|
5
5
|
exports.weappTailwindcss = require_webpack.UnifiedWebpackPluginV5;
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as weappTailwindcssPackageDir, t as UnifiedWebpackPluginV5 } from "./webpack-
|
|
1
|
+
import { n as weappTailwindcssPackageDir, t as UnifiedWebpackPluginV5 } from "./webpack-BnVyDmsD.mjs";
|
|
2
2
|
export { UnifiedWebpackPluginV5, UnifiedWebpackPluginV5 as WeappTailwindcss, UnifiedWebpackPluginV5 as weappTailwindcss, weappTailwindcssPackageDir };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.20",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,11 +61,6 @@
|
|
|
61
61
|
"import": "./dist/webpack.mjs",
|
|
62
62
|
"require": "./dist/webpack.js"
|
|
63
63
|
},
|
|
64
|
-
"./webpack4": {
|
|
65
|
-
"types": "./dist/webpack4.d.ts",
|
|
66
|
-
"import": "./dist/webpack4.mjs",
|
|
67
|
-
"require": "./dist/webpack4.js"
|
|
68
|
-
},
|
|
69
64
|
"./core": {
|
|
70
65
|
"types": "./dist/core.d.ts",
|
|
71
66
|
"import": "./dist/core.mjs",
|
|
@@ -150,7 +145,6 @@
|
|
|
150
145
|
}
|
|
151
146
|
},
|
|
152
147
|
"bin": {
|
|
153
|
-
"weapp-tailwindcss-webpack-plugin": "bin/weapp-tailwindcss.js",
|
|
154
148
|
"weapp-tailwindcss": "bin/weapp-tailwindcss.js",
|
|
155
149
|
"weapp-tw": "bin/weapp-tailwindcss.js"
|
|
156
150
|
},
|
|
@@ -161,7 +155,6 @@
|
|
|
161
155
|
"generator-placeholder.css",
|
|
162
156
|
"index.css",
|
|
163
157
|
"preflight.css",
|
|
164
|
-
"scripts/postinstall.mjs",
|
|
165
158
|
"theme.css",
|
|
166
159
|
"uni-app-x.css",
|
|
167
160
|
"utilities.css",
|
|
@@ -179,58 +172,55 @@
|
|
|
179
172
|
"@babel/parser": "~7.29.3",
|
|
180
173
|
"@babel/traverse": "~7.29.0",
|
|
181
174
|
"@babel/types": "~7.29.0",
|
|
182
|
-
"@
|
|
183
|
-
"@vue/compiler-
|
|
184
|
-
"@vue/compiler-sfc": "^3.5.33",
|
|
175
|
+
"@vue/compiler-dom": "^3.5.34",
|
|
176
|
+
"@vue/compiler-sfc": "^3.5.34",
|
|
185
177
|
"@weapp-core/escape": "~7.0.0",
|
|
186
178
|
"@weapp-core/regex": "~1.0.1",
|
|
187
|
-
"cac": "6.7.14",
|
|
188
179
|
"comment-json": "^4.6.2",
|
|
189
180
|
"debug": "~4.4.3",
|
|
190
181
|
"fast-glob": "^3.3.3",
|
|
191
182
|
"htmlparser2": "10.1.0",
|
|
192
183
|
"loader-utils": "2.0.4",
|
|
193
|
-
"local-pkg": "^1.1
|
|
184
|
+
"local-pkg": "^1.2.1",
|
|
194
185
|
"lru-cache": "10.4.3",
|
|
195
186
|
"magic-string": "0.30.21",
|
|
187
|
+
"micromatch": "^4.0.8",
|
|
196
188
|
"postcss-load-config": "^6.0.1",
|
|
197
|
-
"semver": "~7.
|
|
198
|
-
"tailwindcss-patch": "9.
|
|
199
|
-
"
|
|
200
|
-
"yaml": "^2.8.4",
|
|
189
|
+
"semver": "~7.8.1",
|
|
190
|
+
"tailwindcss-patch": "9.3.7",
|
|
191
|
+
"yaml": "^2.9.0",
|
|
201
192
|
"@weapp-tailwindcss/logger": "1.1.0",
|
|
202
|
-
"@weapp-tailwindcss/postcss": "2.2.
|
|
193
|
+
"@weapp-tailwindcss/postcss": "2.2.1-next.5",
|
|
194
|
+
"@weapp-tailwindcss/reset": "0.1.1-next.0",
|
|
203
195
|
"@weapp-tailwindcss/shared": "1.1.3",
|
|
204
|
-
"
|
|
205
|
-
"tailwindcss-config": "1.1.6-next.0"
|
|
196
|
+
"tailwindcss-config": "1.1.6-next.1"
|
|
206
197
|
},
|
|
207
198
|
"scripts": {
|
|
208
199
|
"dev": "tsdown --watch --sourcemap",
|
|
209
|
-
"build": "tsdown && pnpm run build:types &&
|
|
210
|
-
"build:types": "tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --declarationDir dist --noEmit false &&
|
|
200
|
+
"build": "tsdown && pnpm run build:types && pnpm --filter @weapp-tailwindcss/scripts ensure-escape-dts",
|
|
201
|
+
"build:types": "tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --declarationDir dist --noEmit false && pnpm --filter @weapp-tailwindcss/scripts build:types",
|
|
211
202
|
"build:tsc": "cross-env NODE_ENV=development tsc --build tsconfig.json",
|
|
212
203
|
"build:cli": "cd plugins/cli && pnpm run build",
|
|
213
|
-
"build:css": "
|
|
214
|
-
"build:weapp-theme": "
|
|
215
|
-
"test": "
|
|
204
|
+
"build:css": "pnpm --filter @weapp-tailwindcss/scripts build:css",
|
|
205
|
+
"build:weapp-theme": "pnpm --filter @weapp-tailwindcss/scripts build:weapp-theme",
|
|
206
|
+
"test": "vitest run",
|
|
216
207
|
"test:dev": "vitest",
|
|
217
208
|
"test:ui": "vitest --ui",
|
|
218
209
|
"bench": "vitest bench --config ./vitest.config.ts",
|
|
219
|
-
"bench:vite-perf": "
|
|
220
|
-
"bench:vite-perf:summary": "
|
|
221
|
-
"bench:js-handlers": "
|
|
222
|
-
"bench:js-diff": "
|
|
210
|
+
"bench:vite-perf": "pnpm --filter @weapp-tailwindcss/scripts bench:vite-perf",
|
|
211
|
+
"bench:vite-perf:summary": "pnpm --filter @weapp-tailwindcss/scripts bench:vite-perf:summary",
|
|
212
|
+
"bench:js-handlers": "pnpm --filter @weapp-tailwindcss/scripts bench:js-handlers",
|
|
213
|
+
"bench:js-diff": "pnpm --filter @weapp-tailwindcss/scripts bench:js-diff",
|
|
223
214
|
"tsd": "tsd",
|
|
224
|
-
"clean": "
|
|
225
|
-
"get-decl": "
|
|
215
|
+
"clean": "pnpm --filter @weapp-tailwindcss/scripts clean:core",
|
|
216
|
+
"get-decl": "pnpm --filter @weapp-tailwindcss/scripts get-decl",
|
|
226
217
|
"ls:pack": "npm pack --dry-run",
|
|
227
|
-
"
|
|
228
|
-
"
|
|
229
|
-
"release": "tsx scripts/release.ts",
|
|
218
|
+
"colors": "pnpm --filter @weapp-tailwindcss/scripts colors",
|
|
219
|
+
"release": "pnpm --filter @weapp-tailwindcss/scripts release",
|
|
230
220
|
"lint": "eslint .",
|
|
231
221
|
"lint:fix": "eslint ./src --fix",
|
|
232
|
-
"
|
|
233
|
-
"
|
|
234
|
-
"test:watch-hmr": "
|
|
222
|
+
"bench:vite-dev-hmr": "pnpm --filter @weapp-tailwindcss/scripts bench:vite-dev-hmr",
|
|
223
|
+
"watch-hmr:speed-report": "pnpm --filter @weapp-tailwindcss/scripts watch-hmr:speed-report",
|
|
224
|
+
"test:watch-hmr": "pnpm --filter @weapp-tailwindcss/scripts test:watch-hmr"
|
|
235
225
|
}
|
|
236
226
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Compiler } from 'webpack4';
|
|
2
|
-
import type { AppType, InternalUserDefinedOptions } from '../../../types';
|
|
3
|
-
interface SetupWebpackV4EmitHookOptions {
|
|
4
|
-
compiler: Compiler;
|
|
5
|
-
options: InternalUserDefinedOptions;
|
|
6
|
-
appType?: AppType;
|
|
7
|
-
runtimeState: {
|
|
8
|
-
twPatcher: InternalUserDefinedOptions['twPatcher'];
|
|
9
|
-
patchPromise: Promise<void>;
|
|
10
|
-
};
|
|
11
|
-
debug: (format: string, ...args: unknown[]) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare function setupWebpackV4EmitHook(options: SetupWebpackV4EmitHookOptions): void;
|
|
14
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Compiler } from 'webpack4';
|
|
2
|
-
import type { AppType, InternalUserDefinedOptions } from '../../../types';
|
|
3
|
-
interface SetupWebpackV4LoadersOptions {
|
|
4
|
-
compiler: Compiler;
|
|
5
|
-
options: InternalUserDefinedOptions;
|
|
6
|
-
appType?: AppType;
|
|
7
|
-
weappTailwindcssPackageDir: string;
|
|
8
|
-
shouldRewriteCssImports: boolean;
|
|
9
|
-
runtimeLoaderPath?: string;
|
|
10
|
-
runtimeCssImportRewriteLoaderPath?: string;
|
|
11
|
-
getClassSetInLoader: () => Promise<void>;
|
|
12
|
-
debug: (format: string, ...args: unknown[]) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function setupWebpackV4Loaders(options: SetupWebpackV4LoadersOptions): void;
|
|
15
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Compiler } from 'webpack4';
|
|
2
|
-
import type { AppType, IBaseWebpackPlugin, InternalUserDefinedOptions, UserDefinedOptions } from '../../../types';
|
|
3
|
-
export declare const weappTailwindcssPackageDir: string;
|
|
4
|
-
export declare class UnifiedWebpackPluginV4 implements IBaseWebpackPlugin {
|
|
5
|
-
options: InternalUserDefinedOptions;
|
|
6
|
-
appType?: AppType;
|
|
7
|
-
constructor(options?: UserDefinedOptions);
|
|
8
|
-
apply(compiler: Compiler): void;
|
|
9
|
-
}
|
package/dist/cli/config.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function resolvePatchDefaultCwd(currentCwd?: string): string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { TailwindCssPatchOptions } from 'tailwindcss-patch';
|
|
2
|
-
type ExtendLengthUnitsFeature = Exclude<NonNullable<NonNullable<TailwindCssPatchOptions['apply']>['extendLengthUnits']>, false>;
|
|
3
|
-
export declare const DEFAULT_EXTEND_LENGTH_UNITS_FEATURE: ExtendLengthUnitsFeature;
|
|
4
|
-
export declare function withDefaultExtendLengthUnits(options: TailwindCssPatchOptions | undefined): TailwindCssPatchOptions;
|
|
5
|
-
export declare function buildExtendLengthUnitsOverride(options: TailwindCssPatchOptions | undefined): TailwindCssPatchOptions | undefined;
|
|
6
|
-
export {};
|
package/dist/cli/tokens.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { TailwindTokenReport } from 'tailwindcss-patch';
|
|
2
|
-
export declare function collectTailwindTokens(patcher: unknown): Promise<TailwindTokenReport>;
|
|
3
|
-
export declare function formatTokenLine(entry: TailwindTokenReport['entries'][number]): string;
|
|
4
|
-
export declare function logTokenPreview(report: TailwindTokenReport, format: string, groupKey: 'relative' | 'absolute'): void;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { WorkspacePatchOptions, WorkspacePatchResult } from './types';
|
|
2
|
-
export declare function patchWorkspacePackage(workspaceRoot: string, dir: string, pkgName: string | undefined, options: WorkspacePatchOptions): Promise<WorkspacePatchResult>;
|
|
3
|
-
export { summarizeWorkspaceResults } from './patch-utils';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface WorkspacePatchOptions {
|
|
2
|
-
cwd: string | undefined;
|
|
3
|
-
clearCache?: boolean;
|
|
4
|
-
recordTarget?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface WorkspacePatchResult {
|
|
7
|
-
dir: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
status: 'patched' | 'skipped' | 'failed';
|
|
10
|
-
message?: string;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function tryReadJson<T extends Record<string, any>>(file: string): T | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function parseImportersFromLock(workspaceRoot: string): string[];
|
package/dist/cli/workspace.d.ts
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-8l464Juk.js");
|
|
2
|
-
let node_module = require("node:module");
|
|
3
|
-
let node_path = require("node:path");
|
|
4
|
-
node_path = require_chunk.__toESM(node_path);
|
|
5
|
-
//#region src/bundlers/shared/module-graph.ts
|
|
6
|
-
const QUERY_HASH_RE = /[?#].*$/u;
|
|
7
|
-
const PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
|
|
8
|
-
const WINDOWS_ABSOLUTE_RE = /^[a-z]:[\\/]/iu;
|
|
9
|
-
const VIRTUAL_PREFIX = "\0";
|
|
10
|
-
const JS_EXTENSIONS = [
|
|
11
|
-
".js",
|
|
12
|
-
".mjs",
|
|
13
|
-
".cjs"
|
|
14
|
-
];
|
|
15
|
-
function normalizeOutputPathKey(value) {
|
|
16
|
-
return node_path.default.normalize(value).replace(/\\/g, "/");
|
|
17
|
-
}
|
|
18
|
-
function stripQueryAndHash(specifier) {
|
|
19
|
-
return specifier.replace(QUERY_HASH_RE, "");
|
|
20
|
-
}
|
|
21
|
-
function isResolvableSpecifier(specifier) {
|
|
22
|
-
if (!specifier) return false;
|
|
23
|
-
const normalized = stripQueryAndHash(specifier);
|
|
24
|
-
if (normalized.startsWith(VIRTUAL_PREFIX)) return false;
|
|
25
|
-
if (node_path.default.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) return true;
|
|
26
|
-
return !PROTOCOL_RE.test(normalized);
|
|
27
|
-
}
|
|
28
|
-
function toAbsoluteOutputPath(fileName, outDir) {
|
|
29
|
-
if (node_path.default.isAbsolute(fileName) || WINDOWS_ABSOLUTE_RE.test(fileName)) return node_path.default.normalize(fileName);
|
|
30
|
-
return node_path.default.resolve(outDir, fileName);
|
|
31
|
-
}
|
|
32
|
-
function matchWithExtensions(candidate, hasOutput) {
|
|
33
|
-
if (hasOutput(candidate)) return candidate;
|
|
34
|
-
if (!node_path.default.extname(candidate)) for (const ext of JS_EXTENSIONS) {
|
|
35
|
-
const extended = `${candidate}${ext}`;
|
|
36
|
-
if (hasOutput(extended)) return extended;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function resolveOutputSpecifier(specifier, importer, outDir, hasOutput) {
|
|
40
|
-
if (!isResolvableSpecifier(specifier)) return;
|
|
41
|
-
const normalized = stripQueryAndHash(specifier);
|
|
42
|
-
let candidate;
|
|
43
|
-
if (node_path.default.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) candidate = node_path.default.normalize(normalized);
|
|
44
|
-
else if (normalized.startsWith("/")) candidate = node_path.default.resolve(outDir, normalized.slice(1));
|
|
45
|
-
else candidate = node_path.default.resolve(node_path.default.dirname(importer), normalized);
|
|
46
|
-
return matchWithExtensions(candidate, hasOutput);
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/utils/disabled.ts
|
|
50
|
-
function resolveDisabledOptions(disabled) {
|
|
51
|
-
if (disabled === true) return {
|
|
52
|
-
plugin: true,
|
|
53
|
-
rewriteCssImports: false
|
|
54
|
-
};
|
|
55
|
-
if (disabled === false || disabled == null) return {
|
|
56
|
-
plugin: false,
|
|
57
|
-
rewriteCssImports: false
|
|
58
|
-
};
|
|
59
|
-
return {
|
|
60
|
-
plugin: disabled.plugin ?? false,
|
|
61
|
-
rewriteCssImports: disabled.rewriteCssImports ?? false
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region src/utils/resolve-package.ts
|
|
66
|
-
const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
67
|
-
function resolvePackageDir(name) {
|
|
68
|
-
const pkgPath = require$1.resolve(`${name}/package.json`);
|
|
69
|
-
return node_path.default.dirname(pkgPath);
|
|
70
|
-
}
|
|
71
|
-
//#endregion
|
|
72
|
-
//#region src/bundlers/shared/run-tasks.ts
|
|
73
|
-
async function runWithConcurrency(factories, limit = Math.min(4, Math.max(1, factories.length))) {
|
|
74
|
-
if (factories.length === 0) return [];
|
|
75
|
-
const results = Array.from({ length: factories.length });
|
|
76
|
-
const executing = /* @__PURE__ */ new Set();
|
|
77
|
-
let cursor = 0;
|
|
78
|
-
const effectiveLimit = Math.max(1, limit);
|
|
79
|
-
const scheduleNext = () => {
|
|
80
|
-
if (cursor >= factories.length) return;
|
|
81
|
-
const currentIndex = cursor++;
|
|
82
|
-
const wrapped = Promise.resolve(factories[currentIndex]()).then((value) => {
|
|
83
|
-
results[currentIndex] = value;
|
|
84
|
-
}).finally(() => {
|
|
85
|
-
executing.delete(wrapped);
|
|
86
|
-
});
|
|
87
|
-
executing.add(wrapped);
|
|
88
|
-
};
|
|
89
|
-
while (cursor < factories.length && executing.size < effectiveLimit) scheduleNext();
|
|
90
|
-
while (cursor < factories.length) {
|
|
91
|
-
await Promise.race(executing);
|
|
92
|
-
scheduleNext();
|
|
93
|
-
}
|
|
94
|
-
await Promise.all(executing);
|
|
95
|
-
return results;
|
|
96
|
-
}
|
|
97
|
-
function pushConcurrentTaskFactories(queue, factories, limit) {
|
|
98
|
-
if (factories.length === 0) return;
|
|
99
|
-
queue.push(runWithConcurrency(factories, limit).then(() => void 0));
|
|
100
|
-
}
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region src/bundlers/shared/css-imports.ts
|
|
103
|
-
const tailwindcssImportRE = /^tailwindcss(?:\/.*)?$/;
|
|
104
|
-
const tailwindcssCssImportStatementRE = /(@import\s+(?:url\(\s*)?)(["'])(tailwindcss(?:\/[^"']*)?\$?)(\2\s*\)?)/gi;
|
|
105
|
-
function normalizeTailwindcssSpecifier(specifier) {
|
|
106
|
-
if (specifier === "tailwindcss$") return "tailwindcss";
|
|
107
|
-
return specifier;
|
|
108
|
-
}
|
|
109
|
-
function getTailwindcssSubpath(specifier) {
|
|
110
|
-
if (specifier === "tailwindcss") return "index.css";
|
|
111
|
-
return specifier.slice(12);
|
|
112
|
-
}
|
|
113
|
-
function resolveTailwindcssImport(specifier, pkgDir, options) {
|
|
114
|
-
const normalized = normalizeTailwindcssSpecifier(specifier);
|
|
115
|
-
if (!tailwindcssImportRE.test(normalized)) return null;
|
|
116
|
-
if (normalized === "tailwindcss") return options?.rootImport ?? "weapp-tailwindcss/index.css";
|
|
117
|
-
return (options?.join ?? node_path.default.join)(pkgDir, getTailwindcssSubpath(normalized));
|
|
118
|
-
}
|
|
119
|
-
function rewriteTailwindcssImportsInCode(code, pkgDir, options) {
|
|
120
|
-
let hasReplacements = false;
|
|
121
|
-
const rewritten = code.replace(tailwindcssCssImportStatementRE, (full, prefix, quote, specifier, suffix) => {
|
|
122
|
-
const replacement = resolveTailwindcssImport(specifier, pkgDir, options);
|
|
123
|
-
if (!replacement) return full;
|
|
124
|
-
hasReplacements = true;
|
|
125
|
-
return `${prefix}${quote}${replacement}${suffix}`;
|
|
126
|
-
});
|
|
127
|
-
return hasReplacements ? rewritten : void 0;
|
|
128
|
-
}
|
|
129
|
-
//#endregion
|
|
130
|
-
Object.defineProperty(exports, "normalizeOutputPathKey", {
|
|
131
|
-
enumerable: true,
|
|
132
|
-
get: function() {
|
|
133
|
-
return normalizeOutputPathKey;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(exports, "pushConcurrentTaskFactories", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function() {
|
|
139
|
-
return pushConcurrentTaskFactories;
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
Object.defineProperty(exports, "resolveDisabledOptions", {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
get: function() {
|
|
145
|
-
return resolveDisabledOptions;
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(exports, "resolveOutputSpecifier", {
|
|
149
|
-
enumerable: true,
|
|
150
|
-
get: function() {
|
|
151
|
-
return resolveOutputSpecifier;
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
Object.defineProperty(exports, "resolvePackageDir", {
|
|
155
|
-
enumerable: true,
|
|
156
|
-
get: function() {
|
|
157
|
-
return resolvePackageDir;
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
Object.defineProperty(exports, "resolveTailwindcssImport", {
|
|
161
|
-
enumerable: true,
|
|
162
|
-
get: function() {
|
|
163
|
-
return resolveTailwindcssImport;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
Object.defineProperty(exports, "rewriteTailwindcssImportsInCode", {
|
|
167
|
-
enumerable: true,
|
|
168
|
-
get: function() {
|
|
169
|
-
return rewriteTailwindcssImportsInCode;
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
Object.defineProperty(exports, "toAbsoluteOutputPath", {
|
|
173
|
-
enumerable: true,
|
|
174
|
-
get: function() {
|
|
175
|
-
return toAbsoluteOutputPath;
|
|
176
|
-
}
|
|
177
|
-
});
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
//#region src/bundlers/shared/module-graph.ts
|
|
4
|
-
const QUERY_HASH_RE = /[?#].*$/u;
|
|
5
|
-
const PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
|
|
6
|
-
const WINDOWS_ABSOLUTE_RE = /^[a-z]:[\\/]/iu;
|
|
7
|
-
const VIRTUAL_PREFIX = "\0";
|
|
8
|
-
const JS_EXTENSIONS = [
|
|
9
|
-
".js",
|
|
10
|
-
".mjs",
|
|
11
|
-
".cjs"
|
|
12
|
-
];
|
|
13
|
-
function normalizeOutputPathKey(value) {
|
|
14
|
-
return path.normalize(value).replace(/\\/g, "/");
|
|
15
|
-
}
|
|
16
|
-
function stripQueryAndHash(specifier) {
|
|
17
|
-
return specifier.replace(QUERY_HASH_RE, "");
|
|
18
|
-
}
|
|
19
|
-
function isResolvableSpecifier(specifier) {
|
|
20
|
-
if (!specifier) return false;
|
|
21
|
-
const normalized = stripQueryAndHash(specifier);
|
|
22
|
-
if (normalized.startsWith(VIRTUAL_PREFIX)) return false;
|
|
23
|
-
if (path.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) return true;
|
|
24
|
-
return !PROTOCOL_RE.test(normalized);
|
|
25
|
-
}
|
|
26
|
-
function toAbsoluteOutputPath(fileName, outDir) {
|
|
27
|
-
if (path.isAbsolute(fileName) || WINDOWS_ABSOLUTE_RE.test(fileName)) return path.normalize(fileName);
|
|
28
|
-
return path.resolve(outDir, fileName);
|
|
29
|
-
}
|
|
30
|
-
function matchWithExtensions(candidate, hasOutput) {
|
|
31
|
-
if (hasOutput(candidate)) return candidate;
|
|
32
|
-
if (!path.extname(candidate)) for (const ext of JS_EXTENSIONS) {
|
|
33
|
-
const extended = `${candidate}${ext}`;
|
|
34
|
-
if (hasOutput(extended)) return extended;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function resolveOutputSpecifier(specifier, importer, outDir, hasOutput) {
|
|
38
|
-
if (!isResolvableSpecifier(specifier)) return;
|
|
39
|
-
const normalized = stripQueryAndHash(specifier);
|
|
40
|
-
let candidate;
|
|
41
|
-
if (path.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) candidate = path.normalize(normalized);
|
|
42
|
-
else if (normalized.startsWith("/")) candidate = path.resolve(outDir, normalized.slice(1));
|
|
43
|
-
else candidate = path.resolve(path.dirname(importer), normalized);
|
|
44
|
-
return matchWithExtensions(candidate, hasOutput);
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/utils/disabled.ts
|
|
48
|
-
function resolveDisabledOptions(disabled) {
|
|
49
|
-
if (disabled === true) return {
|
|
50
|
-
plugin: true,
|
|
51
|
-
rewriteCssImports: false
|
|
52
|
-
};
|
|
53
|
-
if (disabled === false || disabled == null) return {
|
|
54
|
-
plugin: false,
|
|
55
|
-
rewriteCssImports: false
|
|
56
|
-
};
|
|
57
|
-
return {
|
|
58
|
-
plugin: disabled.plugin ?? false,
|
|
59
|
-
rewriteCssImports: disabled.rewriteCssImports ?? false
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/utils/resolve-package.ts
|
|
64
|
-
const require = createRequire(import.meta.url);
|
|
65
|
-
function resolvePackageDir(name) {
|
|
66
|
-
const pkgPath = require.resolve(`${name}/package.json`);
|
|
67
|
-
return path.dirname(pkgPath);
|
|
68
|
-
}
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/bundlers/shared/run-tasks.ts
|
|
71
|
-
async function runWithConcurrency(factories, limit = Math.min(4, Math.max(1, factories.length))) {
|
|
72
|
-
if (factories.length === 0) return [];
|
|
73
|
-
const results = Array.from({ length: factories.length });
|
|
74
|
-
const executing = /* @__PURE__ */ new Set();
|
|
75
|
-
let cursor = 0;
|
|
76
|
-
const effectiveLimit = Math.max(1, limit);
|
|
77
|
-
const scheduleNext = () => {
|
|
78
|
-
if (cursor >= factories.length) return;
|
|
79
|
-
const currentIndex = cursor++;
|
|
80
|
-
const wrapped = Promise.resolve(factories[currentIndex]()).then((value) => {
|
|
81
|
-
results[currentIndex] = value;
|
|
82
|
-
}).finally(() => {
|
|
83
|
-
executing.delete(wrapped);
|
|
84
|
-
});
|
|
85
|
-
executing.add(wrapped);
|
|
86
|
-
};
|
|
87
|
-
while (cursor < factories.length && executing.size < effectiveLimit) scheduleNext();
|
|
88
|
-
while (cursor < factories.length) {
|
|
89
|
-
await Promise.race(executing);
|
|
90
|
-
scheduleNext();
|
|
91
|
-
}
|
|
92
|
-
await Promise.all(executing);
|
|
93
|
-
return results;
|
|
94
|
-
}
|
|
95
|
-
function pushConcurrentTaskFactories(queue, factories, limit) {
|
|
96
|
-
if (factories.length === 0) return;
|
|
97
|
-
queue.push(runWithConcurrency(factories, limit).then(() => void 0));
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region src/bundlers/shared/css-imports.ts
|
|
101
|
-
const tailwindcssImportRE = /^tailwindcss(?:\/.*)?$/;
|
|
102
|
-
const tailwindcssCssImportStatementRE = /(@import\s+(?:url\(\s*)?)(["'])(tailwindcss(?:\/[^"']*)?\$?)(\2\s*\)?)/gi;
|
|
103
|
-
function normalizeTailwindcssSpecifier(specifier) {
|
|
104
|
-
if (specifier === "tailwindcss$") return "tailwindcss";
|
|
105
|
-
return specifier;
|
|
106
|
-
}
|
|
107
|
-
function getTailwindcssSubpath(specifier) {
|
|
108
|
-
if (specifier === "tailwindcss") return "index.css";
|
|
109
|
-
return specifier.slice(12);
|
|
110
|
-
}
|
|
111
|
-
function resolveTailwindcssImport(specifier, pkgDir, options) {
|
|
112
|
-
const normalized = normalizeTailwindcssSpecifier(specifier);
|
|
113
|
-
if (!tailwindcssImportRE.test(normalized)) return null;
|
|
114
|
-
if (normalized === "tailwindcss") return options?.rootImport ?? "weapp-tailwindcss/index.css";
|
|
115
|
-
return (options?.join ?? path.join)(pkgDir, getTailwindcssSubpath(normalized));
|
|
116
|
-
}
|
|
117
|
-
function rewriteTailwindcssImportsInCode(code, pkgDir, options) {
|
|
118
|
-
let hasReplacements = false;
|
|
119
|
-
const rewritten = code.replace(tailwindcssCssImportStatementRE, (full, prefix, quote, specifier, suffix) => {
|
|
120
|
-
const replacement = resolveTailwindcssImport(specifier, pkgDir, options);
|
|
121
|
-
if (!replacement) return full;
|
|
122
|
-
hasReplacements = true;
|
|
123
|
-
return `${prefix}${quote}${replacement}${suffix}`;
|
|
124
|
-
});
|
|
125
|
-
return hasReplacements ? rewritten : void 0;
|
|
126
|
-
}
|
|
127
|
-
//#endregion
|
|
128
|
-
export { resolveDisabledOptions as a, toAbsoluteOutputPath as c, resolvePackageDir as i, rewriteTailwindcssImportsInCode as n, normalizeOutputPathKey as o, pushConcurrentTaskFactories as r, resolveOutputSpecifier as s, resolveTailwindcssImport as t };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface Oxcast {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
export declare function parseWithOxc(code: string): Oxcast;
|
|
5
|
-
export declare function getIdentifierName(node: any): string | undefined;
|
|
6
|
-
export declare function isStringLiteral(node: any): node is {
|
|
7
|
-
type: string;
|
|
8
|
-
value: string;
|
|
9
|
-
};
|
|
10
|
-
export declare function isTemplateLiteral(node: any): boolean;
|
|
11
|
-
export declare function getTemplateQuasis(node: any): any[];
|
|
12
|
-
export declare function getTplElementRaw(elem: any): string | undefined;
|
|
13
|
-
export declare function isTaggedTemplate(node: any): boolean;
|
|
14
|
-
export declare function getTaggedTemplateTag(node: any): any;
|
|
15
|
-
export declare function isCallExpression(node: any): boolean;
|
|
16
|
-
export declare function getCallCallee(node: any): any;
|
|
17
|
-
export declare function getCallArguments(node: any): any[];
|
|
18
|
-
export declare function isImportDeclaration(node: any): boolean;
|
|
19
|
-
export declare function isExportAllDeclaration(node: any): boolean;
|
|
20
|
-
export declare function getImportSourceLiteral(node: any): any | undefined;
|
|
21
|
-
export declare function sliceStringLiteralText(code: string, node: any): {
|
|
22
|
-
start: number;
|
|
23
|
-
end: number;
|
|
24
|
-
text: string;
|
|
25
|
-
} | undefined;
|
|
26
|
-
export declare function sliceTplElementText(code: string, elem: any): {
|
|
27
|
-
start: number;
|
|
28
|
-
end: number;
|
|
29
|
-
text: string;
|
|
30
|
-
} | undefined;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { IJsHandlerOptions } from '../../types';
|
|
2
|
-
export declare function shouldTransformClassName(candidate: string, options: Pick<IJsHandlerOptions, 'alwaysEscape' | 'classNameSet' | 'jsPreserveClass'>): boolean;
|
|
3
|
-
export declare function transformLiteralText(literal: string, options: IJsHandlerOptions): string | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { getPattern, getReplacement } from './shared/cache';
|
|
2
|
-
export { shouldTransformClassName, transformLiteralText } from './shared/transform';
|
|
3
|
-
export declare function createToken(start: number, end: number, value: string): {
|
|
4
|
-
start: number;
|
|
5
|
-
end: number;
|
|
6
|
-
value: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function createNameMatcher(patterns: (string | RegExp)[] | undefined, exact?: boolean): (name: string) => boolean;
|