weapp-tailwindcss 4.12.0 → 5.0.0-next.1
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/dist/babel/index.d.ts +3 -0
- package/dist/bundlers/gulp/index.d.ts +7 -0
- package/dist/bundlers/shared/cache.d.ts +16 -0
- package/dist/bundlers/shared/css-cleanup.d.ts +4 -0
- package/dist/bundlers/shared/css-imports.d.ts +8 -0
- package/dist/bundlers/shared/generator-candidates.d.ts +5 -0
- package/dist/bundlers/shared/generator-css.d.ts +41 -0
- package/dist/bundlers/shared/module-graph.d.ts +5 -0
- package/dist/bundlers/shared/run-tasks.d.ts +2 -0
- package/dist/bundlers/vite/bundle-entries.d.ts +14 -0
- package/dist/bundlers/vite/bundle-state.d.ts +43 -0
- package/dist/bundlers/vite/css-finalizer.d.ts +19 -0
- package/dist/bundlers/vite/generate-bundle.d.ts +20 -0
- package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +21 -0
- package/dist/bundlers/vite/index.d.ts +3 -0
- package/dist/bundlers/vite/js-precheck.d.ts +1 -0
- package/dist/bundlers/vite/query.d.ts +15 -0
- package/dist/bundlers/vite/resolve-app-type.d.ts +2 -0
- package/dist/bundlers/vite/rewrite-css-imports.d.ts +11 -0
- package/dist/bundlers/vite/runtime-affecting-signature.d.ts +2 -0
- package/dist/bundlers/vite/utils.d.ts +9 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/shared.d.ts +20 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4-assets.d.ts +14 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4-loaders.d.ts +15 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4.d.ts +9 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +17 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +19 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +9 -0
- package/dist/bundlers/webpack/index.d.ts +1 -0
- package/dist/bundlers/webpack/loaders/weapp-tw-css-import-rewrite-loader.d.ts +12 -0
- package/dist/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.d.ts +11 -0
- package/dist/bundlers/webpack/shared/css-imports.d.ts +6 -0
- package/dist/bundlers/webpack/shared/loader-anchors.d.ts +8 -0
- package/dist/cache/index.d.ts +38 -0
- package/dist/cache/md5.d.ts +1 -0
- package/dist/chunk-8l464Juk.js +28 -0
- package/dist/cli/config.d.ts +5 -0
- package/dist/cli/context.d.ts +16 -0
- package/dist/cli/doctor/constants.d.ts +7 -0
- package/dist/cli/doctor/types.d.ts +31 -0
- package/dist/cli/doctor.d.ts +4 -0
- package/dist/cli/helpers/options/format.d.ts +2 -0
- package/dist/cli/helpers/options/parse.d.ts +3 -0
- package/dist/cli/helpers/options/resolve.d.ts +1 -0
- package/dist/cli/helpers/options.d.ts +3 -0
- package/dist/cli/helpers/patch-cwd.d.ts +1 -0
- package/dist/cli/helpers.d.ts +5 -0
- package/dist/cli/mount-options/patch-status.d.ts +2 -0
- package/dist/cli/mount-options.d.ts +2 -0
- package/dist/cli/patch-options.d.ts +6 -0
- package/dist/cli/tokens.d.ts +4 -0
- package/dist/cli/types.d.ts +17 -0
- package/dist/cli/vscode-entry.d.ts +14 -0
- package/dist/cli/workspace/package-dirs.d.ts +3 -0
- package/dist/cli/workspace/patch-package.d.ts +3 -0
- package/dist/cli/workspace/patch-utils.d.ts +3 -0
- package/dist/cli/workspace/types.d.ts +11 -0
- package/dist/cli/workspace/workspace-globs.d.ts +2 -0
- package/dist/cli/workspace/workspace-io.d.ts +1 -0
- package/dist/cli/workspace/workspace-lock.d.ts +1 -0
- package/dist/cli/workspace.d.ts +2 -0
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +2425 -3524
- package/dist/cli.mjs +2402 -3505
- package/dist/constants-B-_T5UnW.mjs +44 -0
- package/dist/constants-p1dyh1x1.js +73 -0
- package/dist/constants.d.ts +13 -0
- package/dist/context/compiler-context-cache.d.ts +3 -0
- package/dist/context/custom-attributes.d.ts +2 -0
- package/dist/context/handlers.d.ts +6 -0
- package/dist/context/index.d.ts +7 -0
- package/dist/context/logger.d.ts +4 -0
- package/dist/context/tailwindcss/basedir.d.ts +1 -0
- package/dist/context/tailwindcss/rax.d.ts +2 -0
- package/dist/context/tailwindcss.d.ts +4 -0
- package/dist/context/workspace.d.ts +3 -0
- package/dist/core.d.ts +5 -21
- package/dist/core.js +138 -180
- package/dist/core.mjs +135 -180
- package/dist/css-imports-BbrbluP9.js +177 -0
- package/dist/css-imports-CSdPq_Sc.mjs +128 -0
- package/dist/css-macro/constants.d.ts +14 -0
- package/dist/css-macro/index.d.ts +15 -0
- package/dist/css-macro/postcss.d.ts +3 -7
- package/dist/css-macro/postcss.js +44 -58
- package/dist/css-macro/postcss.mjs +44 -56
- package/dist/css-macro.d.ts +1 -20
- package/dist/css-macro.js +37 -50
- package/dist/css-macro.mjs +33 -47
- package/dist/debug/index.d.ts +5 -0
- package/dist/defaults.d.ts +2 -11
- package/dist/defaults.js +132 -8
- package/dist/defaults.mjs +128 -7
- package/dist/escape.js +31 -54
- package/dist/escape.mjs +18 -25
- package/dist/experimental/index.d.ts +2 -0
- package/dist/experimental/oxc/ast-utils.d.ts +30 -0
- package/dist/experimental/oxc/index.d.ts +2 -0
- package/dist/experimental/oxc/module-specifiers.d.ts +2 -0
- package/dist/experimental/shared/cache.d.ts +3 -0
- package/dist/experimental/shared/transform.d.ts +3 -0
- package/dist/experimental/shared.d.ts +8 -0
- package/dist/experimental/swc/ast-utils.d.ts +30 -0
- package/dist/experimental/swc/index.d.ts +2 -0
- package/dist/experimental/swc/module-specifiers.d.ts +2 -0
- package/dist/generator/index.d.ts +11 -0
- package/dist/generator/options.d.ts +15 -0
- package/dist/generator/types.d.ts +19 -0
- package/dist/generator-CZ-JXw6T.js +492 -0
- package/dist/generator-Dwxgra97.mjs +399 -0
- package/dist/generator-css-CnYjiMrD.js +1084 -0
- package/dist/generator-css-DhPFjSzK.mjs +1057 -0
- package/dist/generator.d.ts +1 -0
- package/dist/generator.js +19 -0
- package/dist/generator.mjs +2 -0
- package/dist/gulp.d.ts +4 -24
- package/dist/gulp.js +271 -13
- package/dist/gulp.mjs +263 -13
- package/dist/index.d.ts +8 -15
- package/dist/index.js +12 -24
- package/dist/index.mjs +6 -24
- package/dist/js/JsTokenUpdater.d.ts +14 -0
- package/dist/js/ModuleGraph.d.ts +18 -0
- package/dist/js/NodePathWalker.d.ts +33 -0
- package/dist/js/babel/parse.d.ts +9 -0
- package/dist/js/babel/process.d.ts +4 -0
- package/dist/js/babel.d.ts +13 -0
- package/dist/js/class-context.d.ts +3 -0
- package/dist/js/evalTransforms.d.ts +7 -0
- package/dist/js/handlers.d.ts +5 -0
- package/dist/js/index.d.ts +4 -0
- package/dist/js/module-graph/ignored-exports.d.ts +18 -0
- package/dist/js/module-graph/types.d.ts +17 -0
- package/dist/js/node-path-walker/export-handlers.d.ts +12 -0
- package/dist/js/node-path-walker/import-tokens.d.ts +24 -0
- package/dist/js/precheck.d.ts +2 -0
- package/dist/js/sourceAnalysis.d.ts +17 -0
- package/dist/js/syntax.d.ts +10 -0
- package/dist/js/taggedTemplateIgnore.d.ts +13 -0
- package/dist/js/types.d.ts +11 -0
- package/dist/lightningcss/index.d.ts +8 -0
- package/dist/lightningcss/style-handler/options.d.ts +3 -0
- package/dist/lightningcss/style-handler/selector-transform.d.ts +10 -0
- package/dist/lightningcss/style-handler/selector-utils.d.ts +10 -0
- package/dist/lightningcss/style-handler.d.ts +17 -0
- package/dist/loader-anchors-DvwgIYdA.mjs +205 -0
- package/dist/loader-anchors-cprm4Klq.js +273 -0
- package/dist/logger/index.d.ts +2 -0
- package/dist/logger-BZ45DZJT.js +1003 -0
- package/dist/logger-BoVx1Dbt.mjs +935 -0
- package/dist/patcher-options-6gJN2EXy.js +115 -0
- package/dist/patcher-options-DQfR5xxT.mjs +92 -0
- package/dist/postcss-html-transform.d.ts +3 -3
- package/dist/postcss-html-transform.js +7 -10
- package/dist/postcss-html-transform.mjs +3 -6
- package/dist/postcss.d.ts +15 -0
- package/dist/postcss.js +278 -0
- package/dist/postcss.mjs +268 -0
- package/dist/presets/hbuilderx.d.ts +4 -0
- package/dist/presets/index.d.ts +3 -0
- package/dist/presets/shared.d.ts +10 -0
- package/dist/presets/taro.d.ts +4 -0
- package/dist/presets/uni-app-x.d.ts +16 -0
- package/dist/presets/uni-app.d.ts +4 -0
- package/dist/presets.d.ts +1 -76
- package/dist/presets.js +115 -163
- package/dist/presets.mjs +107 -163
- package/dist/recorder-B_XyZ576.mjs +2763 -0
- package/dist/recorder-rn_2v_nd.js +2878 -0
- package/dist/reset/index.d.ts +2 -0
- package/dist/reset.d.ts +1 -4
- package/dist/reset.js +19 -8
- package/dist/reset.mjs +2 -8
- package/dist/shared/classname-transform.d.ts +14 -0
- package/dist/shared/mpx.d.ts +7 -0
- package/dist/shared/tailwindcss-css-redirect.d.ts +1 -0
- package/dist/tailwindcss/index.d.ts +11 -0
- package/dist/tailwindcss/miniprogram.d.ts +1 -0
- package/dist/tailwindcss/patcher-options.d.ts +56 -0
- package/dist/tailwindcss/patcher-resolve.d.ts +4 -0
- package/dist/tailwindcss/patcher.d.ts +13 -0
- package/dist/tailwindcss/recorder.d.ts +13 -0
- package/dist/tailwindcss/remove-unsupported-css.d.ts +2 -0
- package/dist/tailwindcss/runtime/cache.d.ts +11 -0
- package/dist/tailwindcss/runtime-logs.d.ts +3 -0
- package/dist/tailwindcss/runtime.d.ts +29 -0
- package/dist/tailwindcss/targets/paths.d.ts +13 -0
- package/dist/tailwindcss/targets/record-io.d.ts +5 -0
- package/dist/tailwindcss/targets/recorder.d.ts +3 -0
- package/dist/tailwindcss/targets/types.d.ts +35 -0
- package/dist/tailwindcss/targets.d.ts +6 -0
- package/dist/tailwindcss/v3-engine/generator.d.ts +2 -0
- package/dist/tailwindcss/v3-engine/index.d.ts +4 -0
- package/dist/tailwindcss/v3-engine/miniprogram.d.ts +4 -0
- package/dist/tailwindcss/v3-engine/source.d.ts +5 -0
- package/dist/tailwindcss/v3-engine/types.d.ts +55 -0
- package/dist/tailwindcss/v4/config.d.ts +5 -0
- package/dist/tailwindcss/v4/css-entries.d.ts +7 -0
- package/dist/tailwindcss/v4/index.d.ts +2 -0
- package/dist/tailwindcss/v4/multi-patcher.d.ts +2 -0
- package/dist/tailwindcss/v4/patcher-options.d.ts +24 -0
- package/dist/tailwindcss/v4/patcher.d.ts +14 -0
- package/dist/tailwindcss/v4-engine/design-system.d.ts +1 -0
- package/dist/tailwindcss/v4-engine/generator.d.ts +2 -0
- package/dist/tailwindcss/v4-engine/index.d.ts +5 -0
- package/dist/tailwindcss/v4-engine/miniprogram.d.ts +4 -0
- package/dist/tailwindcss/v4-engine/source.d.ts +7 -0
- package/dist/tailwindcss/v4-engine/types.d.ts +17 -0
- package/dist/typedoc.export.d.ts +5 -0
- package/dist/types/base.d.ts +1 -0
- package/dist/types/disabled-options.d.ts +4 -0
- package/dist/types/index.d.ts +104 -0
- package/dist/types/shared.d.ts +7 -0
- package/dist/types/user-defined-options/general.d.ts +31 -0
- package/dist/types/user-defined-options/important.d.ts +37 -0
- package/dist/types/user-defined-options/index.d.ts +11 -0
- package/dist/types/user-defined-options/lifecycle.d.ts +6 -0
- package/dist/types/user-defined-options/matcher.d.ts +9 -0
- package/dist/types.d.ts +1 -150
- package/dist/types.js +0 -1
- package/dist/types.mjs +1 -1
- package/dist/uni-app-x/component-local-style.d.ts +19 -0
- package/dist/uni-app-x/index.d.ts +2 -0
- package/dist/uni-app-x/options.d.ts +12 -0
- package/dist/uni-app-x/style-isolation.d.ts +2 -0
- package/dist/uni-app-x/transform.d.ts +9 -0
- package/dist/uni-app-x/vite.d.ts +36 -0
- package/dist/utils/decode.d.ts +2 -0
- package/dist/utils/disabled.d.ts +6 -0
- package/dist/utils/hbuilderx.d.ts +5 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/nameMatcher.d.ts +4 -0
- package/dist/utils/resolve-package.d.ts +1 -0
- package/dist/utils/uni-platform.d.ts +11 -0
- package/dist/utils-7DUGTFED.mjs +48 -0
- package/dist/utils-DmC9_In3.js +61 -0
- package/dist/vite-BHpAqldo.js +1952 -0
- package/dist/vite-C8JlHiyR.mjs +1940 -0
- package/dist/vite.d.ts +4 -17
- package/dist/vite.js +5 -14
- package/dist/vite.mjs +2 -14
- package/dist/weapp-tw-css-import-rewrite-loader.js +59 -92
- package/dist/weapp-tw-runtime-classset-loader.js +31 -50
- package/dist/webpack-CABjKGGQ.mjs +441 -0
- package/dist/webpack-DNIJ0ysE.js +456 -0
- package/dist/webpack.d.ts +4 -25
- package/dist/webpack.js +6 -17
- package/dist/webpack.mjs +2 -17
- package/dist/webpack4.d.ts +4 -26
- package/dist/webpack4.js +375 -481
- package/dist/webpack4.mjs +366 -482
- package/dist/wxml/Tokenizer.d.ts +15 -0
- package/dist/wxml/custom-attributes.d.ts +4 -0
- package/dist/wxml/index.d.ts +2 -0
- package/dist/wxml/shared.d.ts +2 -0
- package/dist/wxml/tokenizer/types.d.ts +18 -0
- package/dist/wxml/utils/codegen/legacy-rewriter.d.ts +2 -0
- package/dist/wxml/utils/codegen/legacy-visitor.d.ts +8 -0
- package/dist/wxml/utils/codegen.d.ts +2 -0
- package/dist/wxml/utils/custom-template.d.ts +3 -0
- package/dist/wxml/utils/fragment-helpers.d.ts +6 -0
- package/dist/wxml/utils/fragment-updater.d.ts +4 -0
- package/dist/wxml/utils/template-fragments.d.ts +3 -0
- package/dist/wxml/utils.d.ts +8 -0
- package/dist/wxml/whitespace.d.ts +2 -0
- package/generator-placeholder.css +1 -0
- package/package.json +19 -5
- package/dist/chunk-24AGZQVR.js +0 -183
- package/dist/chunk-3VQKDHGP.mjs +0 -179
- package/dist/chunk-4AFQP74Z.js +0 -24
- package/dist/chunk-57SOQCAU.mjs +0 -582
- package/dist/chunk-5ZYHNDEK.mjs +0 -2439
- package/dist/chunk-76S2EME4.mjs +0 -34
- package/dist/chunk-A5PB4KZT.js +0 -138
- package/dist/chunk-DUHYLR2R.js +0 -276
- package/dist/chunk-DYLQ6UOI.js +0 -71
- package/dist/chunk-E7I5TW5K.js +0 -52
- package/dist/chunk-FS2NOOEB.js +0 -292
- package/dist/chunk-HVNGIKLS.js +0 -3930
- package/dist/chunk-JZQBZHN5.js +0 -579
- package/dist/chunk-KGTVD4EP.mjs +0 -3930
- package/dist/chunk-NNOQDMUP.mjs +0 -10
- package/dist/chunk-OF6MFURR.js +0 -34
- package/dist/chunk-OFB2KBRP.js +0 -2442
- package/dist/chunk-OOHJLO5M.mjs +0 -71
- package/dist/chunk-PCDYXXSK.mjs +0 -1515
- package/dist/chunk-RKISS72P.js +0 -7
- package/dist/chunk-RRQZL7FQ.mjs +0 -292
- package/dist/chunk-XAKAD2CR.mjs +0 -138
- package/dist/chunk-XZP3MREK.mjs +0 -276
- package/dist/chunk-ZAA5ZG3D.js +0 -1518
- package/dist/chunk-ZCH4YINE.mjs +0 -52
- package/dist/cli.d.mts +0 -2
- package/dist/core.d.mts +0 -26
- package/dist/css-macro/postcss.d.mts +0 -7
- package/dist/css-macro.d.mts +0 -18
- package/dist/defaults.d.mts +0 -11
- package/dist/gulp.d.mts +0 -24
- package/dist/index-BXrmQelt.d.mts +0 -672
- package/dist/index-BXrmQelt.d.ts +0 -672
- package/dist/index.d.mts +0 -15
- package/dist/postcss-html-transform.d.mts +0 -2
- package/dist/presets.d.mts +0 -76
- package/dist/reset.d.mts +0 -1
- package/dist/types.d.mts +0 -150
- package/dist/vite.d.mts +0 -17
- package/dist/webpack.d.mts +0 -25
- package/dist/webpack4.d.mts +0 -26
package/dist/presets.d.mts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { PackageResolvingOptions } from 'local-pkg';
|
|
2
|
-
import { e as UserDefinedOptions, U as UniAppXComponentLocalStylesOptions } from './index-BXrmQelt.mjs';
|
|
3
|
-
import '@babel/parser';
|
|
4
|
-
import '@weapp-tailwindcss/postcss/types';
|
|
5
|
-
import 'tailwindcss-patch';
|
|
6
|
-
import 'node:buffer';
|
|
7
|
-
import 'webpack';
|
|
8
|
-
import 'lru-cache';
|
|
9
|
-
|
|
10
|
-
interface BasePresetOptions extends Omit<Partial<UserDefinedOptions>, 'cssEntries'> {
|
|
11
|
-
base?: string;
|
|
12
|
-
cssEntries?: string | string[];
|
|
13
|
-
resolve?: PackageResolvingOptions;
|
|
14
|
-
rawOptions?: UserDefinedOptions;
|
|
15
|
-
}
|
|
16
|
-
declare function normalizeCssEntries(entries?: string | string[]): string[] | undefined;
|
|
17
|
-
declare function createBasePreset(options?: BasePresetOptions): Partial<UserDefinedOptions>;
|
|
18
|
-
|
|
19
|
-
interface UniAppPresetOptions extends BasePresetOptions {
|
|
20
|
-
}
|
|
21
|
-
declare function uniApp(options?: UniAppPresetOptions): Partial<UserDefinedOptions>;
|
|
22
|
-
|
|
23
|
-
interface UniAppXOptions {
|
|
24
|
-
/**
|
|
25
|
-
* uni-app x 工程根目录。
|
|
26
|
-
*/
|
|
27
|
-
base: string;
|
|
28
|
-
/**
|
|
29
|
-
* 指定 Tailwind CSS v4 的入口 CSS。
|
|
30
|
-
*/
|
|
31
|
-
cssEntries?: string[];
|
|
32
|
-
/**
|
|
33
|
-
* rem 转 rpx 配置。
|
|
34
|
-
*/
|
|
35
|
-
rem2rpx?: UserDefinedOptions['rem2rpx'];
|
|
36
|
-
/**
|
|
37
|
-
* 长度单位转 px 配置。
|
|
38
|
-
*/
|
|
39
|
-
unitsToPx?: UserDefinedOptions['unitsToPx'];
|
|
40
|
-
/**
|
|
41
|
-
* 透传原始插件配置。
|
|
42
|
-
*/
|
|
43
|
-
rawOptions?: UserDefinedOptions;
|
|
44
|
-
/**
|
|
45
|
-
* 自定义包解析路径。
|
|
46
|
-
*/
|
|
47
|
-
resolve?: PackageResolvingOptions;
|
|
48
|
-
/**
|
|
49
|
-
* 自定义模板属性转换规则。
|
|
50
|
-
*/
|
|
51
|
-
customAttributes?: UserDefinedOptions['customAttributes'];
|
|
52
|
-
/**
|
|
53
|
-
* 直接控制 `uniAppX.componentLocalStyles` 的快捷入口。
|
|
54
|
-
*
|
|
55
|
-
* @remarks
|
|
56
|
-
* 默认开启;默认仅在 `manifest.json` 的 `styleIsolationVersion=2` 时启用。
|
|
57
|
-
*/
|
|
58
|
-
uniAppX?: UserDefinedOptions['uniAppX'];
|
|
59
|
-
/**
|
|
60
|
-
* issue #822 组件局部样式能力的快捷开关。
|
|
61
|
-
*
|
|
62
|
-
* @remarks
|
|
63
|
-
* 等价于设置 `uniAppX.componentLocalStyles`。
|
|
64
|
-
*/
|
|
65
|
-
componentLocalStyles?: boolean | UniAppXComponentLocalStylesOptions;
|
|
66
|
-
/**
|
|
67
|
-
* uvue 不兼容 utility 的处理策略。
|
|
68
|
-
*
|
|
69
|
-
* @remarks
|
|
70
|
-
* 等价于设置 `uniAppX.uvueUnsupported`。
|
|
71
|
-
*/
|
|
72
|
-
uvueUnsupported?: 'error' | 'warn' | 'silent';
|
|
73
|
-
}
|
|
74
|
-
declare function uniAppX(options: UniAppXOptions): Partial<UserDefinedOptions>;
|
|
75
|
-
|
|
76
|
-
export { type BasePresetOptions, type UniAppPresetOptions, type UniAppXOptions, createBasePreset, normalizeCssEntries, uniApp, uniAppX };
|
package/dist/reset.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ResetConfig, ResetOptions, ResetPreset, default, reset } from '@weapp-tailwindcss/reset';
|
package/dist/types.d.mts
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { ParserOptions, ParseError } from '@babel/parser';
|
|
2
|
-
import { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
3
|
-
export { CssPreflightOptions, IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
4
|
-
import { SourceMap } from 'magic-string';
|
|
5
|
-
import { Result, Root, Document } from 'postcss';
|
|
6
|
-
import { ILengthUnitsPatchOptions, TailwindcssPatcher } from 'tailwindcss-patch';
|
|
7
|
-
import { I as IArbitraryValues, e as UserDefinedOptions, b as ICustomAttributesEntities, f as ICreateCacheReturnType, A as AppType } from './index-BXrmQelt.mjs';
|
|
8
|
-
export { D as DisabledOptions, a as ICustomAttributes, c as ItemOrItemArray, U as UniAppXComponentLocalStylesOptions, d as UniAppXUserDefinedOptions } from './index-BXrmQelt.mjs';
|
|
9
|
-
import 'node:buffer';
|
|
10
|
-
import 'webpack';
|
|
11
|
-
import 'lru-cache';
|
|
12
|
-
|
|
13
|
-
type AsyncableMethod<T> = T extends (...args: infer A) => infer R ? (...args: A) => Promise<Awaited<R>> | Awaited<R> : never;
|
|
14
|
-
|
|
15
|
-
interface LinkedJsModuleResult {
|
|
16
|
-
code: string;
|
|
17
|
-
}
|
|
18
|
-
interface JsHandlerResult {
|
|
19
|
-
code: string;
|
|
20
|
-
map?: SourceMap;
|
|
21
|
-
error?: ParseError;
|
|
22
|
-
/**
|
|
23
|
-
* 因跨文件分析而被转换的额外模块,使用绝对文件路径作为键。
|
|
24
|
-
*/
|
|
25
|
-
linked?: Record<string, LinkedJsModuleResult>;
|
|
26
|
-
}
|
|
27
|
-
interface TailwindcssPatcherLike {
|
|
28
|
-
packageInfo: TailwindcssPatcher['packageInfo'];
|
|
29
|
-
majorVersion?: TailwindcssPatcher['majorVersion'];
|
|
30
|
-
patch: TailwindcssPatcher['patch'];
|
|
31
|
-
getClassSet: AsyncableMethod<TailwindcssPatcher['getClassSet']>;
|
|
32
|
-
getClassSetSync?: TailwindcssPatcher['getClassSetSync'];
|
|
33
|
-
extract: TailwindcssPatcher['extract'];
|
|
34
|
-
collectContentTokens?: TailwindcssPatcher['collectContentTokens'];
|
|
35
|
-
options?: TailwindcssPatcher['options'];
|
|
36
|
-
}
|
|
37
|
-
interface RefreshTailwindcssPatcherOptions {
|
|
38
|
-
clearCache?: boolean;
|
|
39
|
-
}
|
|
40
|
-
interface IJsHandlerOptions {
|
|
41
|
-
escapeMap?: Record<string, string>;
|
|
42
|
-
classNameSet?: Set<string>;
|
|
43
|
-
/**
|
|
44
|
-
* 兼容字段:不再参与 JS 候选判定。
|
|
45
|
-
*
|
|
46
|
-
* JS 转译统一遵循 `classNameSet` 精确命中策略,仅转换 tailwindcss-patch 提供的类名集合。
|
|
47
|
-
*/
|
|
48
|
-
staleClassNameFallback?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* 控制在 classNameSet 异常时的任意值兜底策略。
|
|
51
|
-
*
|
|
52
|
-
* - `false`:关闭兜底。
|
|
53
|
-
* - `true`:在 class 语义上下文中允许任意值兜底。
|
|
54
|
-
* - `'auto'`:仅在 TailwindCSS v4 且 classNameSet 为空时启用。
|
|
55
|
-
*/
|
|
56
|
-
jsArbitraryValueFallback?: boolean | 'auto';
|
|
57
|
-
/**
|
|
58
|
-
* 当前 TailwindCSS 主版本号,用于自动兜底判定。
|
|
59
|
-
*/
|
|
60
|
-
tailwindcssMajorVersion?: number;
|
|
61
|
-
arbitraryValues?: IArbitraryValues;
|
|
62
|
-
jsPreserveClass?: (keyword: string) => boolean | undefined;
|
|
63
|
-
needEscaped?: boolean;
|
|
64
|
-
generateMap?: boolean;
|
|
65
|
-
alwaysEscape?: boolean;
|
|
66
|
-
unescapeUnicode?: boolean;
|
|
67
|
-
babelParserOptions?: ParserOptions;
|
|
68
|
-
ignoreTaggedTemplateExpressionIdentifiers?: (string | RegExp)[];
|
|
69
|
-
ignoreCallExpressionIdentifiers?: (string | RegExp)[];
|
|
70
|
-
uniAppX?: boolean;
|
|
71
|
-
moduleSpecifierReplacements?: Record<string, string>;
|
|
72
|
-
/**
|
|
73
|
-
* 为 `true` 时将输入视作独立表达式,而非完整的程序。
|
|
74
|
-
* 适用于 `:class="{ 'foo bar': cond }"` 等模板绑定场景。
|
|
75
|
-
*/
|
|
76
|
-
wrapExpression?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* 当前正在转换的模块绝对路径。
|
|
79
|
-
* 启用跨文件分析时必须提供。
|
|
80
|
-
*/
|
|
81
|
-
filename?: string;
|
|
82
|
-
/**
|
|
83
|
-
* 配置跨文件模块图分析行为。
|
|
84
|
-
*/
|
|
85
|
-
moduleGraph?: JsModuleGraphOptions;
|
|
86
|
-
}
|
|
87
|
-
interface JsHandler {
|
|
88
|
-
(rawSource: string, set?: Set<string>, options?: CreateJsHandlerOptions): JsHandlerResult;
|
|
89
|
-
}
|
|
90
|
-
interface ICommonReplaceOptions {
|
|
91
|
-
keepEOL?: boolean;
|
|
92
|
-
escapeMap?: Record<string, string>;
|
|
93
|
-
}
|
|
94
|
-
interface ITemplateHandlerOptions extends ICommonReplaceOptions {
|
|
95
|
-
customAttributesEntities?: ICustomAttributesEntities;
|
|
96
|
-
escapeMap?: Record<string, string>;
|
|
97
|
-
inlineWxs?: boolean;
|
|
98
|
-
jsHandler?: JsHandler;
|
|
99
|
-
runtimeSet?: Set<string>;
|
|
100
|
-
disabledDefaultTemplateHandler?: boolean;
|
|
101
|
-
quote?: string | null;
|
|
102
|
-
ignoreHead?: boolean;
|
|
103
|
-
wrapExpression?: boolean;
|
|
104
|
-
}
|
|
105
|
-
type InternalUserDefinedOptions = Required<Omit<UserDefinedOptions, 'supportCustomLengthUnitsPatch' | 'customReplaceDictionary' | 'cache'> & {
|
|
106
|
-
supportCustomLengthUnitsPatch: ILengthUnitsPatchOptions | boolean;
|
|
107
|
-
templateHandler: (rawSource: string, options?: ITemplateHandlerOptions) => Promise<string>;
|
|
108
|
-
styleHandler: (rawSource: string, options?: IStyleHandlerOptions) => Promise<Result<Root | Document>>;
|
|
109
|
-
jsHandler: JsHandler;
|
|
110
|
-
escapeMap: Record<string, string>;
|
|
111
|
-
customReplaceDictionary: Record<string, string>;
|
|
112
|
-
cache: ICreateCacheReturnType;
|
|
113
|
-
twPatcher: TailwindcssPatcherLike;
|
|
114
|
-
refreshTailwindcssPatcher: (options?: RefreshTailwindcssPatcherOptions) => Promise<TailwindcssPatcherLike>;
|
|
115
|
-
}>;
|
|
116
|
-
type InternalPostcssOptions = Pick<UserDefinedOptions, 'cssMatcher' | 'mainCssChunkMatcher' | 'cssPreflight' | 'cssPreflightRange' | 'disabled'>;
|
|
117
|
-
interface IBaseWebpackPlugin {
|
|
118
|
-
options: InternalUserDefinedOptions;
|
|
119
|
-
appType?: AppType;
|
|
120
|
-
apply: (compiler: any) => void;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* @description InternalPatchResult
|
|
124
|
-
*/
|
|
125
|
-
interface InternalPatchResult {
|
|
126
|
-
dataTypes?: string;
|
|
127
|
-
processTailwindFeatures?: string;
|
|
128
|
-
plugin?: string;
|
|
129
|
-
}
|
|
130
|
-
type CreateJsHandlerOptions = Omit<IJsHandlerOptions, 'classNameSet'>;
|
|
131
|
-
interface JsModuleGraphOptions {
|
|
132
|
-
/**
|
|
133
|
-
* 将导入的标识符解析为绝对文件路径。
|
|
134
|
-
*/
|
|
135
|
-
resolve: (specifier: string, importer: string) => string | undefined;
|
|
136
|
-
/**
|
|
137
|
-
* 同步加载模块源码。
|
|
138
|
-
*/
|
|
139
|
-
load: (id: string) => string | undefined;
|
|
140
|
-
/**
|
|
141
|
-
* 可选过滤器,用于跳过特定模块。
|
|
142
|
-
*/
|
|
143
|
-
filter?: (id: string, specifier: string, importer: string) => boolean;
|
|
144
|
-
/**
|
|
145
|
-
* 最大遍历深度,默认无限制(`Infinity`)。
|
|
146
|
-
*/
|
|
147
|
-
maxDepth?: number;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export { AppType, type CreateJsHandlerOptions, IArbitraryValues, type IBaseWebpackPlugin, type ICommonReplaceOptions, ICustomAttributesEntities, type IJsHandlerOptions, type ITemplateHandlerOptions, type InternalPatchResult, type InternalPostcssOptions, type InternalUserDefinedOptions, type JsHandler, type JsHandlerResult, type JsModuleGraphOptions, type LinkedJsModuleResult, type RefreshTailwindcssPatcherOptions, type TailwindcssPatcherLike, UserDefinedOptions };
|
package/dist/vite.d.mts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'vite';
|
|
2
|
-
import { e as UserDefinedOptions } from './index-BXrmQelt.mjs';
|
|
3
|
-
import '@babel/parser';
|
|
4
|
-
import '@weapp-tailwindcss/postcss/types';
|
|
5
|
-
import 'tailwindcss-patch';
|
|
6
|
-
import 'node:buffer';
|
|
7
|
-
import 'webpack';
|
|
8
|
-
import 'lru-cache';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @name UnifiedViteWeappTailwindcssPlugin
|
|
12
|
-
* @description uni-app vite / uni-app-x 版本插件
|
|
13
|
-
* @link https://tw.icebreaker.top/docs/quick-start/frameworks/uni-app-vite
|
|
14
|
-
*/
|
|
15
|
-
declare function UnifiedViteWeappTailwindcssPlugin(options?: UserDefinedOptions): Plugin[] | undefined;
|
|
16
|
-
|
|
17
|
-
export { UnifiedViteWeappTailwindcssPlugin, UserDefinedOptions, UnifiedViteWeappTailwindcssPlugin as weappTailwindcss };
|
package/dist/webpack.d.mts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Compiler } from 'webpack';
|
|
2
|
-
import { IBaseWebpackPlugin, InternalUserDefinedOptions } from './types.mjs';
|
|
3
|
-
import { A as AppType, e as UserDefinedOptions } from './index-BXrmQelt.mjs';
|
|
4
|
-
import '@babel/parser';
|
|
5
|
-
import '@weapp-tailwindcss/postcss/types';
|
|
6
|
-
import 'magic-string';
|
|
7
|
-
import 'postcss';
|
|
8
|
-
import 'tailwindcss-patch';
|
|
9
|
-
import 'node:buffer';
|
|
10
|
-
import 'lru-cache';
|
|
11
|
-
|
|
12
|
-
declare const weappTailwindcssPackageDir: string;
|
|
13
|
-
/**
|
|
14
|
-
* @name UnifiedWebpackPluginV5
|
|
15
|
-
* @description webpack5 核心转义插件
|
|
16
|
-
* @link https://tw.icebreaker.top/docs/intro
|
|
17
|
-
*/
|
|
18
|
-
declare class UnifiedWebpackPluginV5 implements IBaseWebpackPlugin {
|
|
19
|
-
options: InternalUserDefinedOptions;
|
|
20
|
-
appType?: AppType;
|
|
21
|
-
constructor(options?: UserDefinedOptions);
|
|
22
|
-
apply(compiler: Compiler): void;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { UnifiedWebpackPluginV5, UserDefinedOptions, UnifiedWebpackPluginV5 as weappTailwindcss, weappTailwindcssPackageDir };
|
package/dist/webpack4.d.mts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Compiler } from 'webpack4';
|
|
2
|
-
import { IBaseWebpackPlugin, InternalUserDefinedOptions } from './types.mjs';
|
|
3
|
-
import { A as AppType, e as UserDefinedOptions } from './index-BXrmQelt.mjs';
|
|
4
|
-
import '@babel/parser';
|
|
5
|
-
import '@weapp-tailwindcss/postcss/types';
|
|
6
|
-
import 'magic-string';
|
|
7
|
-
import 'postcss';
|
|
8
|
-
import 'tailwindcss-patch';
|
|
9
|
-
import 'node:buffer';
|
|
10
|
-
import 'webpack';
|
|
11
|
-
import 'lru-cache';
|
|
12
|
-
|
|
13
|
-
declare const weappTailwindcssPackageDir: string;
|
|
14
|
-
/**
|
|
15
|
-
* @name UnifiedWebpackPluginV4
|
|
16
|
-
* @description webpack4 核心转义插件
|
|
17
|
-
* @link https://tw.icebreaker.top/docs/intro
|
|
18
|
-
*/
|
|
19
|
-
declare class UnifiedWebpackPluginV4 implements IBaseWebpackPlugin {
|
|
20
|
-
options: InternalUserDefinedOptions;
|
|
21
|
-
appType?: AppType;
|
|
22
|
-
constructor(options?: UserDefinedOptions);
|
|
23
|
-
apply(compiler: Compiler): void;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { UnifiedWebpackPluginV4, UserDefinedOptions, UnifiedWebpackPluginV4 as weappTailwindcss, weappTailwindcssPackageDir };
|