weapp-tailwindcss 5.0.3 → 5.0.5
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.en.md +9 -0
- package/README.md +5 -133
- package/dist/{auto-dPpsm6FB.js → auto-Cvy0zWpS.js} +1 -1
- package/dist/{bundle-state-CW1X7QIy.js → bundle-state-Cso_ceUo.js} +8 -2
- package/dist/{bundle-state-s5HwfrmR.mjs → bundle-state-DEyxCR4f.mjs} +2 -2
- package/dist/bundlers/shared/generator-css/directives.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle.d.ts +3 -1
- package/dist/bundlers/vite/rewrite-css-imports.d.ts +8 -0
- package/dist/bundlers/vite/serve-css-generation.d.ts +5 -0
- package/dist/bundlers/vite/uni-app-x-css-options.d.ts +2 -0
- package/dist/{chunk-C5U5_Hdc.js → chunk-emK7D4bc.js} +0 -7
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/css-macro.js +3 -3
- package/dist/{defaults-zKUH2mDe.js → defaults-BPUuNYcD.js} +1 -1
- package/dist/defaults.js +1 -1
- package/dist/{generator-Bd1LntD3.js → generator-AD-eX8Tr.js} +2 -2
- package/dist/{generator-DRHWC1t-.mjs → generator-DVWLNO0n.mjs} +1 -1
- package/dist/generator.js +2 -2
- package/dist/generator.mjs +2 -2
- package/dist/gulp.js +6 -6
- package/dist/gulp.mjs +5 -5
- package/dist/{incremental-runtime-class-set-BdCWIuPW.js → incremental-runtime-class-set-vOetpdWs.js} +195 -43
- package/dist/{incremental-runtime-class-set-BcAFhVvu.mjs → incremental-runtime-class-set-xf49kky6.mjs} +194 -42
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{postcss-DfnqZ4Bm.js → postcss-Cbi6RFpf.js} +57 -10
- package/dist/{postcss-CJrmfXvi.mjs → postcss-hSUxK7oR.mjs} +55 -8
- package/dist/postcss-html-transform.js +1 -1
- package/dist/postcss.js +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/{precheck-h6TNzFbF.mjs → precheck-Bsn_LMmo.mjs} +19 -33
- package/dist/{precheck-8Ik4q0yI.js → precheck-b8Y8qZg0.js} +17 -31
- package/dist/presets.js +9 -5
- package/dist/presets.mjs +7 -3
- package/dist/reset.js +1 -1
- package/dist/{source-candidates-D7b-Jzsx.mjs → source-candidates-BsWYoIPN.mjs} +1 -1
- package/dist/{source-candidates-DQxvGPSw.js → source-candidates-o2ZrKWzu.js} +2 -2
- package/dist/{tailwindcss-D5RogwtV.mjs → tailwindcss-AWaPVF2B.mjs} +1 -1
- package/dist/{tailwindcss-jvoYizzX.js → tailwindcss-CpQ6X4l6.js} +3 -3
- package/dist/{vite-DT-VUrl0.js → transform-BkGtbxb1.js} +245 -10127
- package/dist/{vite-yCeZWm7n.mjs → transform-DumSZmTh.mjs} +263 -10128
- package/dist/uni-app-x/vite.d.ts +3 -0
- package/dist/{utils-D7Ygohep.js → utils-Dolmt8EO.js} +1 -1
- package/dist/{v3-engine-CmIF_gsq.js → v3-engine-CM0TRa8V.js} +29 -5
- package/dist/{v3-engine-BCUGX3gX.mjs → v3-engine-Cczrkzqt.mjs} +22 -4
- package/dist/vite-CTuHPC91.js +3283 -0
- package/dist/vite-DLXDMHON.mjs +3270 -0
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +201 -42
- package/dist/{webpack-BFMJqCH9.js → webpack-BBHJYKqB.js} +8 -9
- package/dist/{webpack-E0gT72EX.mjs → webpack-DJFw08SK.mjs} +6 -7
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +3 -4
package/README.en.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# weapp-tailwindcss
|
|
2
|
+
|
|
3
|
+
> English | [简体中文](./README.md)
|
|
4
|
+
|
|
5
|
+
This is the core package that brings Tailwind CSS to mini program ecosystems, handling class transformation, CSS compatibility, framework build adapters, and Tailwind v3/v4 support.
|
|
6
|
+
|
|
7
|
+
## Website
|
|
8
|
+
|
|
9
|
+
For setup guides, configuration references, and framework examples, see the [official weapp-tailwindcss documentation](https://tw.icebreaker.top).
|
package/README.md
CHANGED
|
@@ -1,137 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
# weapp-tailwindcss
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> 简体中文 | [English](./README.en.md)
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
</a>
|
|
5
|
+
这个包是把 Tailwind CSS 带到小程序生态的核心入口,负责类名转译、CSS 兼容、框架构建适配和 Tailwind v3/v4 支持。
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
## 官网
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</p>
|
|
13
|
-
|
|
14
|
-
> 简体中文(zh-cn) | [English](./README_en.md)
|
|
15
|
-
|
|
16
|
-

|
|
17
|
-

|
|
18
|
-

|
|
19
|
-
[](https://github.com/sonofmagic/weapp-tailwindcss/actions/workflows/test.yml)
|
|
20
|
-
[](https://codecov.io/gh/sonofmagic/weapp-tailwindcss)
|
|
21
|
-
|
|
22
|
-
> [!NOTE]
|
|
23
|
-
> 降低开发维护成本,提升开发效率的 `小程序` `tailwindcss` 全方面解决方案
|
|
24
|
-
>
|
|
25
|
-
> `weapp-tailwindcss@4.2.x` 现已支持 `uni-app x` 同时构建 `Web`,`小程序`,`安卓`,`IOS`,`鸿蒙`,详见 [**uni-app x 专题**](https://tw.icebreaker.top/docs/uni-app-x)
|
|
26
|
-
|
|
27
|
-
\[[文档地址](https://tw.icebreaker.top)\] \| \[[备用文档地址](https://ice-tw.netlify.app/)\] \| \[[加入技术交流群](https://tw.icebreaker.top/docs/community/group)\]
|
|
28
|
-
|
|
29
|
-
- [特性](#特性)
|
|
30
|
-
- [版本对应](#版本对应)
|
|
31
|
-
- [安装与使用方式](#安装与使用方式)
|
|
32
|
-
- [生态和解决方案](#生态和解决方案)
|
|
33
|
-
- [常见问题](#常见问题)
|
|
34
|
-
- [各个框架的模板](#各个框架的模板)
|
|
35
|
-
- [旧版本迁移指南](#旧版本迁移指南)
|
|
36
|
-
- [配置项参考](#配置项参考)
|
|
37
|
-
- [Contribute](#contribute)
|
|
38
|
-
- [License](#license)
|
|
39
|
-
- [Star History](#star-history)
|
|
40
|
-
- [Related projects](#related-projects)
|
|
41
|
-
- [weapp-vite](#weapp-vite)
|
|
42
|
-
|
|
43
|
-
## 特性
|
|
44
|
-
|
|
45
|
-
| 不仅仅是`webpack` | 主流框架与原生开发支持 |
|
|
46
|
-
| --------------------------------------------------- | ----------------------------------------------- |
|
|
47
|
-
|  |  |
|
|
48
|
-
|
|
49
|
-
核心插件支持 `webpack`/`vite`/`rspack`/`rollup`/`rolldown`/`gulp` 为基底的框架类小程序开发,涵盖了市面上几乎所有的主流的开发框架。
|
|
50
|
-
|
|
51
|
-
也支持直接从各个开发者工具中,直接创建的原生小程序应用。
|
|
52
|
-
|
|
53
|
-
这些插件能够自动识别并精确处理所有 `tailwindcss` 的工具类来适配小程序环境。
|
|
54
|
-
|
|
55
|
-
## 版本对应
|
|
56
|
-
|
|
57
|
-
目前,`weapp-tailwindcss` 的 `5.x` 版本
|
|
58
|
-
|
|
59
|
-
- 支持最新版本的 `tailwindcss v4` 和 `v3`。
|
|
60
|
-
- 支持 `webpack5`、`vite`、`rspack`、`rollup`、`rolldown` 和 `gulp` 这些打包工具,也支持纯 `Nodejs` API 的方式,集成到你自己的构建工具中。
|
|
61
|
-
|
|
62
|
-
> `weapp-tailwindcss@5` 面向 Tailwind CSS v3/v4 和现代构建链路,不再内置 Webpack4、PostCSS7、Tailwind CSS v2 兼容入口。`weapp-tailwindcss@5` 需要 `nodejs` 版本 `^20.19.0 || >=22.12.0`,建议安装 `nodejs` 的 `LTS` 版本,详见 [nodejs/release](https://github.com/nodejs/release)
|
|
63
|
-
|
|
64
|
-
## [安装与使用方式](https://tw.icebreaker.top/docs/quick-start/install)
|
|
65
|
-
|
|
66
|
-
## [生态和解决方案](https://tw.icebreaker.top/docs/community/templates)
|
|
67
|
-
|
|
68
|
-
## [常见问题](https://tw.icebreaker.top/docs/issues/)
|
|
69
|
-
|
|
70
|
-
## [各个框架的模板](https://tw.icebreaker.top/docs/community/templates)
|
|
71
|
-
|
|
72
|
-
## [旧版本迁移指南](https://tw.icebreaker.top/docs/migrations/v2)
|
|
73
|
-
|
|
74
|
-
## [配置项参考](https://tw.icebreaker.top/docs/api/interfaces/UserDefinedOptions)
|
|
75
|
-
|
|
76
|
-
### Tailwind CSS 自动前缀
|
|
77
|
-
|
|
78
|
-
在 Tailwind CSS v3 / v4 场景下,`weapp-tailwindcss` 会默认对生成后的小程序 CSS 执行内置 `autoprefixer` 后处理,用于补齐小程序 WebView 需要的兼容前缀。例如 `bg-clip-text` 会输出 `-webkit-background-clip: text`,从而支持渐变文字。
|
|
79
|
-
|
|
80
|
-
通常不再需要在业务项目的 `postcss.config.js` 中手动配置 `autoprefixer`。如果项目已经显式配置了 `autoprefixer`,内置后处理会避免重复追加。需要关闭时可配置:
|
|
81
|
-
|
|
82
|
-
```ts
|
|
83
|
-
weappTailwindcss({
|
|
84
|
-
autoprefixer: false,
|
|
85
|
-
})
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### uni-app x uvue 兼容提示
|
|
89
|
-
|
|
90
|
-
从当前版本开始,`uni-app x` 的 `uvue/nvue` 样式目标会额外过滤宿主不支持的 CSS selector 与 utility 声明,避免把非法 CSS 直接注入到 `App.uvue` 或页面样式中。
|
|
91
|
-
|
|
92
|
-
可通过 `uniAppX.uvueUnsupported` 控制行为:
|
|
93
|
-
|
|
94
|
-
- `warn`:默认值。跳过不兼容 utility,并输出 `uni-app x uvue unsupported utility` 警告。
|
|
95
|
-
- `error`:遇到不兼容 utility 直接报错,适合 CI 或严格校验场景。
|
|
96
|
-
- `silent`:跳过不兼容 utility,但不输出提示。
|
|
97
|
-
|
|
98
|
-
其中 `space-x-*` / `space-y-*` 不再继续输出非法兄弟组合器选择器,而是在 `uvue` 模板转换阶段对静态直接子节点展开为额外 class,并通过 `@apply ml-* / mt-*` 注入兼容样式。若同一静态容器 class 中同时出现 `space-x-reverse` / `space-y-reverse`,则会展开为 `mr-*` / `mb-*`。
|
|
99
|
-
|
|
100
|
-
示例:
|
|
101
|
-
|
|
102
|
-
```ts
|
|
103
|
-
import { uniAppX } from 'weapp-tailwindcss/presets'
|
|
104
|
-
|
|
105
|
-
export default uniAppX({
|
|
106
|
-
base: __dirname,
|
|
107
|
-
rem2rpx: true,
|
|
108
|
-
uniAppX: {
|
|
109
|
-
uvueUnsupported: 'warn',
|
|
110
|
-
},
|
|
111
|
-
})
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
## Contribute
|
|
115
|
-
|
|
116
|
-
我们邀请你来贡献和帮助改进 `weapp-tailwindcss` 💚💚💚
|
|
117
|
-
|
|
118
|
-
以下有几个方式可以参与:
|
|
119
|
-
|
|
120
|
-
- 报告错误:如果您遇到任何错误或问题,请提`issue`并提供完善的错误信息和复现方式。
|
|
121
|
-
- 建议:有增强 `weapp-tailwindcss` 的想法吗?请提 `issue` 来分享您的建议。
|
|
122
|
-
- 文档:如果您对文档有更好的见解或者更棒的修辞方式,欢迎 `pr`。
|
|
123
|
-
- 代码:任何人的代码都不是完美的,我们欢迎你通过 `pr` 给代码提供更好的质量与活力。
|
|
124
|
-
|
|
125
|
-
## License
|
|
126
|
-
|
|
127
|
-
[MIT](./LICENSE)
|
|
128
|
-
|
|
129
|
-
## Star History
|
|
130
|
-
|
|
131
|
-
[](https://star-history.com/#sonofmagic/weapp-tailwindcss&Date)
|
|
132
|
-
|
|
133
|
-
## Related projects
|
|
134
|
-
|
|
135
|
-
### weapp-vite
|
|
136
|
-
|
|
137
|
-
[weapp-vite](https://vite.icebreaker.top/): 把现代化的开发模式带入小程序开发!
|
|
9
|
+
更多接入方式、配置说明和框架示例见 [weapp-tailwindcss 官方文档](https://tw.icebreaker.top)。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-
|
|
2
|
-
const require_precheck = require("./precheck-
|
|
1
|
+
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
+
const require_precheck = require("./precheck-b8Y8qZg0.js");
|
|
3
3
|
let node_module = require("node:module");
|
|
4
4
|
let node_process = require("node:process");
|
|
5
5
|
node_process = require_chunk.__toESM(node_process);
|
|
@@ -499,6 +499,12 @@ Object.defineProperty(exports, "normalizeOutputPathKey", {
|
|
|
499
499
|
return normalizeOutputPathKey;
|
|
500
500
|
}
|
|
501
501
|
});
|
|
502
|
+
Object.defineProperty(exports, "normalizePath", {
|
|
503
|
+
enumerable: true,
|
|
504
|
+
get: function() {
|
|
505
|
+
return normalizePath;
|
|
506
|
+
}
|
|
507
|
+
});
|
|
502
508
|
Object.defineProperty(exports, "parseBundlerGeneratedCssMarkerBlocks", {
|
|
503
509
|
enumerable: true,
|
|
504
510
|
get: function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as traverse, m as babelParse, o as Parser } from "./precheck-Bsn_LMmo.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import path from "node:path";
|
|
@@ -430,4 +430,4 @@ function updateBundleBuildState(state, snapshot, linkedByEntry, options = {}) {
|
|
|
430
430
|
state.dependentsByLinkedFile = invertLinkedByEntry(state.linkedByEntry);
|
|
431
431
|
}
|
|
432
432
|
//#endregion
|
|
433
|
-
export { toAbsoluteOutputPath as S,
|
|
433
|
+
export { toAbsoluteOutputPath as C, resolveOutputSpecifier as S, normalizePath as _, applyLinkedResults as a, stripRequestQuery as b, createBundlerGeneratedCssMarker as c, stripBundlerGeneratedCssMarkers as d, resolvePackageDir as f, isCSSRequest as g, formatPostcssSourceMap as h, createRuntimeAffectingSourceSignature as i, hasBundlerGeneratedCssMarker as l, cleanUrl as m, createBundleBuildState as n, createBundleModuleGraphOptions as o, resolvePluginDisabledState as p, updateBundleBuildState as r, pushConcurrentTaskFactories as s, buildBundleSnapshot as t, parseBundlerGeneratedCssMarkerBlocks as u, slash as v, normalizeOutputPathKey as x, isSourceStyleRequest as y };
|
|
@@ -2,6 +2,7 @@ interface TailwindDirectiveOptions {
|
|
|
2
2
|
importFallback?: boolean | undefined;
|
|
3
3
|
}
|
|
4
4
|
export declare function parseImportRequest(params: string): string | undefined;
|
|
5
|
+
export declare function hasLocalCssImport(rawSource: string): boolean;
|
|
5
6
|
export declare function normalizeTailwindConfigDirectives(rawSource: string, base: string): string;
|
|
6
7
|
export declare function normalizeTailwindSourceForGenerator(rawSource: string, options?: TailwindDirectiveOptions): string;
|
|
7
8
|
export declare function normalizeTailwindV3CssEntrySource(rawSource: string): string;
|
|
@@ -15,6 +15,7 @@ interface CssHandlerOptionsCacheOptions {
|
|
|
15
15
|
mainCssChunkMatcher: InternalUserDefinedOptions['mainCssChunkMatcher'];
|
|
16
16
|
getMajorVersion: () => number | undefined;
|
|
17
17
|
getOutputRoot?: (() => string | undefined) | undefined;
|
|
18
|
+
getExtraOptions?: ((file: string) => Partial<IStyleHandlerOptions>) | undefined;
|
|
18
19
|
}
|
|
19
20
|
export interface CssHandlerOptionsCache {
|
|
20
21
|
getCssHandlerOptions: (file: string) => CssHandlerOptions;
|
|
@@ -37,6 +37,7 @@ interface GenerateBundleContext {
|
|
|
37
37
|
getSourceCandidatesForEntries?: ((entries: TailwindSourceEntry[] | undefined) => Set<string>) | undefined;
|
|
38
38
|
waitForSourceCandidateSyncs?: () => Promise<void>;
|
|
39
39
|
rememberCssSource?: (entry: RememberedCssSource, cssRuntimeSignature?: string) => void;
|
|
40
|
+
refreshRememberedCssSource?: (entry: RememberedCssSource) => Promise<RememberedCssSource | undefined> | RememberedCssSource | undefined;
|
|
40
41
|
getRememberedCssSources?: () => Iterable<[string, RememberedCssSource]>;
|
|
41
42
|
getRememberedCssSignature?: (file: string) => string | undefined;
|
|
42
43
|
setRememberedCssSignature?: (file: string, cssRuntimeSignature: string) => void;
|
|
@@ -57,6 +58,7 @@ interface GenerateBundleThis {
|
|
|
57
58
|
}) => string;
|
|
58
59
|
}
|
|
59
60
|
export declare function resolveReplayCssOutputFile(rootDir: string, file: string): string;
|
|
60
|
-
export declare function resolveViteCssPipelineOutputFile(file: string, _opts: Pick<InternalUserDefinedOptions, 'cssMatcher'>, rootDir: string, isWebGeneratorTarget?: boolean): string;
|
|
61
|
+
export declare function resolveViteCssPipelineOutputFile(file: string, _opts: Pick<InternalUserDefinedOptions, 'cssMatcher'>, rootDir: string, isWebGeneratorTarget?: boolean, preserveCssExtension?: boolean): string;
|
|
62
|
+
export declare function resolveRememberedCssSourceForTest(sources: Iterable<[string, RememberedCssSource]> | undefined, outputFile: string, file: string, originalSource: OutputAsset, outputRoot: string, sourceRoot: string | undefined): RememberedCssSource | undefined;
|
|
61
63
|
export declare function createGenerateBundleHook(context: GenerateBundleContext): (this: GenerateBundleThis, _opt: unknown, bundle: Record<string, OutputAsset | OutputChunk>) => Promise<void>;
|
|
62
64
|
export {};
|
|
@@ -5,12 +5,20 @@ interface RewriteCssImportsOptions {
|
|
|
5
5
|
getAppType?: (() => AppType | undefined) | undefined;
|
|
6
6
|
generateTailwindCss?: ((id: string, code: string, hookContext?: {
|
|
7
7
|
addWatchFile?: (id: string) => void;
|
|
8
|
+
emitFile?: (emittedFile: {
|
|
9
|
+
type: 'asset';
|
|
10
|
+
fileName: string;
|
|
11
|
+
source: string;
|
|
12
|
+
}) => string;
|
|
8
13
|
}) => Promise<string | undefined> | string | undefined) | undefined;
|
|
9
14
|
shouldOwnTailwindGeneration?: boolean | undefined;
|
|
10
15
|
shouldRewrite: boolean;
|
|
11
16
|
rootImport?: string | undefined;
|
|
12
17
|
weappTailwindcssDirPosix: string;
|
|
13
18
|
onTailwindRootCss?: ((id: string, code: string) => Promise<void> | void) | undefined;
|
|
19
|
+
onCssSourceTransform?: ((id: string, code: string) => Promise<void> | void) | undefined;
|
|
20
|
+
shouldGenerateCss?: ((id: string, code: string) => boolean) | undefined;
|
|
14
21
|
}
|
|
15
22
|
export declare function createRewriteCssImportsPlugins(options: RewriteCssImportsOptions): Plugin[];
|
|
23
|
+
export declare function hasVitePipelineTailwindGenerationDirective(code: string): boolean;
|
|
16
24
|
export {};
|
|
@@ -2,6 +2,11 @@ import type { Plugin } from 'vite';
|
|
|
2
2
|
interface ViteServeCssGenerationOptions {
|
|
3
3
|
generateCss: (id: string, code: string, hookContext?: {
|
|
4
4
|
addWatchFile?: (id: string) => void;
|
|
5
|
+
emitFile?: (emittedFile: {
|
|
6
|
+
type: 'asset';
|
|
7
|
+
fileName: string;
|
|
8
|
+
source: string;
|
|
9
|
+
}) => string;
|
|
5
10
|
}) => Promise<string | undefined> | string | undefined;
|
|
6
11
|
getCommand: () => string | undefined;
|
|
7
12
|
onTailwindRootCss?: ((id: string, code: string) => Promise<void> | void) | undefined;
|
|
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
9
8
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
9
|
var __copyProps = (to, from, except, desc) => {
|
|
11
10
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -28,12 +27,6 @@ Object.defineProperty(exports, "__commonJSMin", {
|
|
|
28
27
|
return __commonJSMin;
|
|
29
28
|
}
|
|
30
29
|
});
|
|
31
|
-
Object.defineProperty(exports, "__esmMin", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function() {
|
|
34
|
-
return __esmMin;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
30
|
Object.defineProperty(exports, "__toESM", {
|
|
38
31
|
enumerable: true,
|
|
39
32
|
get: function() {
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_precheck = require("./precheck-
|
|
2
|
+
const require_precheck = require("./precheck-b8Y8qZg0.js");
|
|
3
3
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
4
4
|
//#region src/core.ts
|
|
5
5
|
const DEFAULT_MAIN_CHUNK_STYLE_OPTIONS = Object.freeze({ isMainChunk: true });
|
package/dist/core.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as getCompilerContext, t as shouldSkipJsTransform, v as createTailwindRuntimeReadyPromise, y as ensureRuntimeClassSet } from "./precheck-Bsn_LMmo.mjs";
|
|
2
2
|
import { defuOverrideArray } from "@weapp-tailwindcss/shared";
|
|
3
3
|
//#region src/core.ts
|
|
4
4
|
const DEFAULT_MAIN_CHUNK_STYLE_OPTIONS = Object.freeze({ isMainChunk: true });
|
package/dist/css-macro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-
|
|
1
|
+
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
2
|
const require_postcss = require("./postcss-CiYLsqZn.js");
|
|
3
|
-
const require_auto = require("./auto-
|
|
4
|
-
require("./utils-
|
|
3
|
+
const require_auto = require("./auto-Cvy0zWpS.js");
|
|
4
|
+
require("./utils-Dolmt8EO.js");
|
|
5
5
|
let tailwindcss_plugin = require("tailwindcss/plugin");
|
|
6
6
|
tailwindcss_plugin = require_chunk.__toESM(tailwindcss_plugin);
|
|
7
7
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
package/dist/defaults.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_defaults = require("./defaults-
|
|
2
|
+
const require_defaults = require("./defaults-BPUuNYcD.js");
|
|
3
3
|
exports.TAILWIND_V3_CSS_PREFLIGHT = require_defaults.TAILWIND_V3_CSS_PREFLIGHT;
|
|
4
4
|
exports.TAILWIND_V4_CSS_PREFLIGHT = require_defaults.TAILWIND_V4_CSS_PREFLIGHT;
|
|
5
5
|
exports.getDefaultCssPreflight = require_defaults.getDefaultCssPreflight;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-
|
|
2
|
-
const require_v3_engine = require("./v3-engine-
|
|
1
|
+
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
+
const require_v3_engine = require("./v3-engine-CM0TRa8V.js");
|
|
3
3
|
let node_process = require("node:process");
|
|
4
4
|
node_process = require_chunk.__toESM(node_process);
|
|
5
5
|
//#region src/generator/options.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as createTailwindV4Engine, i as createTailwindV3Engine, n as resolveTailwindV3SourceFromPatcher, x as resolveTailwindV4SourceFromPatcher } from "./v3-engine-Cczrkzqt.mjs";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
//#region src/generator/options.ts
|
|
4
4
|
const explicitGeneratorTargetEnvKeys = ["WEAPP_TW_TARGET", "WEAPP_TAILWINDCSS_TARGET"];
|
package/dist/generator.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_v3_engine = require("./v3-engine-
|
|
3
|
-
const require_generator = require("./generator-
|
|
2
|
+
const require_v3_engine = require("./v3-engine-CM0TRa8V.js");
|
|
3
|
+
const require_generator = require("./generator-AD-eX8Tr.js");
|
|
4
4
|
let tailwindcss_patch = require("tailwindcss-patch");
|
|
5
5
|
exports.createWeappTailwindcssGenerator = require_generator.createWeappTailwindcssGenerator;
|
|
6
6
|
exports.createWeappTailwindcssGeneratorFromPatcher = require_generator.createWeappTailwindcssGeneratorFromPatcher;
|
package/dist/generator.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as normalizeWeappTailwindcssGeneratorOptions, n as createWeappTailwindcssGeneratorFromPatcher, r as resolveTailwindSourceFromPatcher, t as createWeappTailwindcssGenerator } from "./generator-
|
|
1
|
+
import { J as transformTailwindV4CssToWeapp, S as resolveTailwindV4SourceOptionsFromPatcher, a as transformTailwindV3CssByTarget, b as resolveTailwindV4SourceFromPatchOptions, n as resolveTailwindV3SourceFromPatcher, o as transformTailwindV3CssToWeapp, q as transformTailwindV4CssByTarget, r as resolveTailwindV3SourceOptionsFromPatcher, t as resolveTailwindV3Source, x as resolveTailwindV4SourceFromPatcher, y as resolveTailwindV4Source } from "./v3-engine-Cczrkzqt.mjs";
|
|
2
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, n as createWeappTailwindcssGeneratorFromPatcher, r as resolveTailwindSourceFromPatcher, t as createWeappTailwindcssGenerator } from "./generator-DVWLNO0n.mjs";
|
|
3
3
|
export { createWeappTailwindcssGenerator, createWeappTailwindcssGeneratorFromPatcher, normalizeWeappTailwindcssGeneratorOptions, resolveTailwindSourceFromPatcher, resolveTailwindV3Source, resolveTailwindV3SourceFromPatcher, resolveTailwindV3SourceOptionsFromPatcher, resolveTailwindV4Source, resolveTailwindV4SourceFromPatchOptions, resolveTailwindV4SourceFromPatcher, resolveTailwindV4SourceOptionsFromPatcher, transformTailwindV3CssByTarget, transformTailwindV3CssToWeapp, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp };
|
package/dist/gulp.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_chunk = require("./chunk-
|
|
3
|
-
const require_v3_engine = require("./v3-engine-
|
|
4
|
-
const require_precheck = require("./precheck-
|
|
5
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
6
|
-
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-
|
|
7
|
-
const require_source_candidates = require("./source-candidates-
|
|
2
|
+
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
3
|
+
const require_v3_engine = require("./v3-engine-CM0TRa8V.js");
|
|
4
|
+
const require_precheck = require("./precheck-b8Y8qZg0.js");
|
|
5
|
+
const require_tailwindcss = require("./tailwindcss-CpQ6X4l6.js");
|
|
6
|
+
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-vOetpdWs.js");
|
|
7
|
+
const require_source_candidates = require("./source-candidates-o2ZrKWzu.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
10
10
|
let node_process = require("node:process");
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { c as hasConfiguredTailwindV4CssRoots, l as upsertTailwindV4CssSource } from "./tailwindcss-
|
|
4
|
-
import { i as generateCssByGenerator, r as emitHmrTiming, s as processCachedTask, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-
|
|
5
|
-
import { n as createTailwindV3DefaultExtractor, t as createSourceCandidateCollector } from "./source-candidates-
|
|
1
|
+
import { D as normalizeTailwindConfigDirectives, T as hasTailwindRootDirectives, _ as resolveViteSourceScanEntries, k as normalizeTailwindSourceForGenerator, l as getRuntimeClassSetSignature, lt as createDebug } from "./v3-engine-Cczrkzqt.mjs";
|
|
2
|
+
import { n as getCompilerContext, t as shouldSkipJsTransform, v as createTailwindRuntimeReadyPromise, y as ensureRuntimeClassSet } from "./precheck-Bsn_LMmo.mjs";
|
|
3
|
+
import { c as hasConfiguredTailwindV4CssRoots, l as upsertTailwindV4CssSource } from "./tailwindcss-AWaPVF2B.mjs";
|
|
4
|
+
import { i as generateCssByGenerator, r as emitHmrTiming, s as processCachedTask, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-xf49kky6.mjs";
|
|
5
|
+
import { n as createTailwindV3DefaultExtractor, t as createSourceCandidateCollector } from "./source-candidates-BsWYoIPN.mjs";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
import path from "node:path";
|