weapp-tailwindcss 5.0.0-next.25 → 5.0.0-next.26
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/{auto-B11j1XiD.js → auto-CqyEtds4.js} +4 -6
- package/dist/{auto-AduSz49t.mjs → auto-CsWz6lsU.mjs} +4 -6
- package/dist/{bundle-state-CBouNDzi.mjs → bundle-state-CWcrb3mH.mjs} +1 -2
- package/dist/{bundle-state-BY7PWHAc.js → bundle-state-uCtqRm0p.js} +2 -3
- package/dist/bundlers/vite/serve-css-generation.d.ts +11 -0
- package/dist/cli.js +4 -5
- package/dist/cli.mjs +4 -5
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/css-macro/postcss.js +1 -1
- package/dist/css-macro/postcss.mjs +1 -1
- package/dist/css-macro.js +2 -2
- package/dist/css-macro.mjs +2 -2
- package/dist/{generator-DTPePQZ9.js → generator-BH6a0xuB.js} +1 -1
- package/dist/{generator-CtqzN9L-.mjs → generator-iI_265gt.mjs} +1 -1
- package/dist/generator.js +2 -2
- package/dist/generator.mjs +2 -2
- package/dist/gulp.js +5 -5
- package/dist/gulp.mjs +5 -5
- package/dist/{incremental-runtime-class-set-BlJ86j-A.mjs → incremental-runtime-class-set-ECHyKwUL.mjs} +3 -3
- package/dist/{incremental-runtime-class-set-CERcE0fP.js → incremental-runtime-class-set-mY0v1k-Y.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{postcss-DXkxsPNg.js → postcss-BwW8zO24.js} +4 -4
- package/dist/{postcss-DYktK8_T.mjs → postcss-BzaRjBL0.mjs} +4 -4
- package/dist/{postcss-BAO9tGi5.js → postcss-DEEAZ8J5.js} +2 -2
- package/dist/{postcss-CYPHxj7a.mjs → postcss-DJoU--Z-.mjs} +2 -2
- package/dist/postcss.js +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/{precheck-B4CpMt_w.mjs → precheck-BI8oBeUg.mjs} +1991 -4
- package/dist/{precheck-ezN3ovAq.js → precheck-DLJg0_pu.js} +1997 -4
- package/dist/presets/index.d.ts +1 -0
- package/dist/presets.js +16 -3
- package/dist/presets.mjs +15 -4
- package/dist/{source-candidates-DoyOltpZ.mjs → source-candidates-DkScNh9A.mjs} +1 -1
- package/dist/{source-candidates-0jPRIPmC.js → source-candidates-mfvC9gMc.js} +1 -1
- package/dist/{tailwindcss-nQetCaPp.js → tailwindcss-Cm93idme.js} +1 -1
- package/dist/{tailwindcss-ujlr9Iad.mjs → tailwindcss-DFa5Yes8.mjs} +1 -1
- package/dist/{v3-engine-Bbsrez2w.js → v3-engine-CGsbY81C.js} +1 -1
- package/dist/{v3-engine-COw08vWd.mjs → v3-engine-CPJ9uGyr.mjs} +1 -1
- package/dist/{vite-DE8Vfzal.js → vite-BM_ksf1q.js} +138 -19
- package/dist/{vite-hZsQAY1a.mjs → vite-CqEF-Wx5.mjs} +138 -19
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +7 -10
- package/dist/{webpack-CTJcw_sX.js → webpack-CfcuDhQ8.js} +9 -6
- package/dist/{webpack-c2WJnCJI.mjs → webpack-D--XZMBB.mjs} +10 -7
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +8 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-8l464Juk.js");
|
|
2
|
-
const require_postcss = require("./postcss-
|
|
2
|
+
const require_postcss = require("./postcss-BwW8zO24.js");
|
|
3
3
|
let postcss = require("postcss");
|
|
4
4
|
postcss = require_chunk.__toESM(postcss);
|
|
5
5
|
//#region src/css-macro/auto.ts
|
|
@@ -53,11 +53,9 @@ function withCssMacroPostcssPlugins(plugins) {
|
|
|
53
53
|
if (!plugins) return [macroPlugin];
|
|
54
54
|
if (Array.isArray(plugins)) return plugins.some(isCssMacroPostcssPlugin) ? plugins : [...plugins, macroPlugin];
|
|
55
55
|
if (typeof plugins === "object") {
|
|
56
|
-
|
|
57
|
-
return
|
|
58
|
-
|
|
59
|
-
[require_postcss.CSS_MACRO_POSTCSS_PLUGIN_NAME]: macroPlugin
|
|
60
|
-
};
|
|
56
|
+
const values = Object.values(plugins).filter(Boolean);
|
|
57
|
+
if (values.some(isCssMacroPostcssPlugin)) return values;
|
|
58
|
+
return [...values, macroPlugin];
|
|
61
59
|
}
|
|
62
60
|
return [macroPlugin];
|
|
63
61
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as creator
|
|
1
|
+
import { n as creator } from "./postcss-BzaRjBL0.mjs";
|
|
2
2
|
import postcss from "postcss";
|
|
3
3
|
//#region src/css-macro/auto.ts
|
|
4
4
|
const CSS_MACRO_PLUGIN_MARKER = "__weappTailwindcssCssMacro";
|
|
@@ -51,11 +51,9 @@ function withCssMacroPostcssPlugins(plugins) {
|
|
|
51
51
|
if (!plugins) return [macroPlugin];
|
|
52
52
|
if (Array.isArray(plugins)) return plugins.some(isCssMacroPostcssPlugin) ? plugins : [...plugins, macroPlugin];
|
|
53
53
|
if (typeof plugins === "object") {
|
|
54
|
-
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
[CSS_MACRO_POSTCSS_PLUGIN_NAME]: macroPlugin
|
|
58
|
-
};
|
|
54
|
+
const values = Object.values(plugins).filter(Boolean);
|
|
55
|
+
if (values.some(isCssMacroPostcssPlugin)) return values;
|
|
56
|
+
return [...values, macroPlugin];
|
|
59
57
|
}
|
|
60
58
|
return [macroPlugin];
|
|
61
59
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as traverse, m as babelParse, o as Parser } from "./precheck-BI8oBeUg.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { cleanUrl, ensurePosix } from "@weapp-tailwindcss/shared";
|
|
6
6
|
import { Buffer } from "node:buffer";
|
|
7
|
-
import { Parser } from "htmlparser2";
|
|
8
7
|
//#region src/bundlers/shared/module-graph.ts
|
|
9
8
|
const QUERY_HASH_RE = /[?#].*$/u;
|
|
10
9
|
const PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-8l464Juk.js");
|
|
2
|
-
const require_precheck = require("./precheck-
|
|
2
|
+
const require_precheck = require("./precheck-DLJg0_pu.js");
|
|
3
3
|
let node_module = require("node:module");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -7,7 +7,6 @@ let node_process = require("node:process");
|
|
|
7
7
|
node_process = require_chunk.__toESM(node_process);
|
|
8
8
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
9
9
|
let node_buffer = require("node:buffer");
|
|
10
|
-
let htmlparser2 = require("htmlparser2");
|
|
11
10
|
//#region src/bundlers/shared/module-graph.ts
|
|
12
11
|
const QUERY_HASH_RE = /[?#].*$/u;
|
|
13
12
|
const PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
|
|
@@ -220,7 +219,7 @@ const CSS_WHITESPACE_RE = /\s+/g;
|
|
|
220
219
|
function createHtmlRuntimeAffectingSignature(source) {
|
|
221
220
|
try {
|
|
222
221
|
const parts = [];
|
|
223
|
-
const parser = new
|
|
222
|
+
const parser = new require_precheck.Parser({
|
|
224
223
|
onattribute(name, value) {
|
|
225
224
|
parts.push(`a:${name}=${value}`);
|
|
226
225
|
},
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
interface ViteServeCssGenerationOptions {
|
|
3
|
+
generateCss: (id: string, code: string, hookContext?: {
|
|
4
|
+
addWatchFile?: (id: string) => void;
|
|
5
|
+
}) => Promise<string | undefined> | string | undefined;
|
|
6
|
+
getCommand: () => string | undefined;
|
|
7
|
+
onTailwindRootCss?: ((id: string, code: string) => Promise<void> | void) | undefined;
|
|
8
|
+
shouldGenerate: () => boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function createViteServeCssGenerationPlugins(options: ViteServeCssGenerationOptions): Plugin[];
|
|
11
|
+
export {};
|
package/dist/cli.js
CHANGED
|
@@ -51,7 +51,6 @@ magic_string = __toESM(magic_string);
|
|
|
51
51
|
let _ast_core_escape = require("@ast-core/escape");
|
|
52
52
|
let _weapp_tailwindcss_shared_extractors = require("@weapp-tailwindcss/shared/extractors");
|
|
53
53
|
require("@babel/types");
|
|
54
|
-
require("htmlparser2");
|
|
55
54
|
//#region src/js/babel/cache-options.ts
|
|
56
55
|
const DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH = 5e4;
|
|
57
56
|
const HARD_PARSE_CACHE_MAX_ENTRIES = 1024;
|
|
@@ -147,10 +146,10 @@ const creator = () => {
|
|
|
147
146
|
];
|
|
148
147
|
atRule.replaceWith(nextNodes);
|
|
149
148
|
startComment.raws.before = hasPreviousNode ? "\n" : "";
|
|
150
|
-
startComment.raws
|
|
149
|
+
startComment.raws["after"] = "\n";
|
|
151
150
|
if (clonedNodes[0]) clonedNodes[0].raws.before = "\n";
|
|
152
151
|
endComment.raws.before = "\n";
|
|
153
|
-
endComment.raws
|
|
152
|
+
endComment.raws["after"] = "\n";
|
|
154
153
|
const nextNode = endComment?.next();
|
|
155
154
|
if (nextNode) nextNode.raws.before = "\n";
|
|
156
155
|
}
|
|
@@ -185,10 +184,10 @@ const creator = () => {
|
|
|
185
184
|
if ((parentRule.nodes?.length ?? 0) === 0) parentRule.replaceWith(nextNodes);
|
|
186
185
|
else parentRule.after(nextNodes);
|
|
187
186
|
startComment.raws.before = hasPreviousNode ? "\n" : "";
|
|
188
|
-
startComment.raws
|
|
187
|
+
startComment.raws["after"] = "\n";
|
|
189
188
|
conditionalRule.raws.before = "\n";
|
|
190
189
|
endComment.raws.before = "\n";
|
|
191
|
-
endComment.raws
|
|
190
|
+
endComment.raws["after"] = "\n";
|
|
192
191
|
const nextNode = endComment.next();
|
|
193
192
|
if (nextNode) nextNode.raws.before = "\n";
|
|
194
193
|
return true;
|
package/dist/cli.mjs
CHANGED
|
@@ -22,7 +22,6 @@ import MagicString from "magic-string";
|
|
|
22
22
|
import { jsStringEscape } from "@ast-core/escape";
|
|
23
23
|
import { splitCode } from "@weapp-tailwindcss/shared/extractors";
|
|
24
24
|
import "@babel/types";
|
|
25
|
-
import "htmlparser2";
|
|
26
25
|
//#region src/js/babel/cache-options.ts
|
|
27
26
|
const DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH = 5e4;
|
|
28
27
|
const HARD_PARSE_CACHE_MAX_ENTRIES = 1024;
|
|
@@ -118,10 +117,10 @@ const creator = () => {
|
|
|
118
117
|
];
|
|
119
118
|
atRule.replaceWith(nextNodes);
|
|
120
119
|
startComment.raws.before = hasPreviousNode ? "\n" : "";
|
|
121
|
-
startComment.raws
|
|
120
|
+
startComment.raws["after"] = "\n";
|
|
122
121
|
if (clonedNodes[0]) clonedNodes[0].raws.before = "\n";
|
|
123
122
|
endComment.raws.before = "\n";
|
|
124
|
-
endComment.raws
|
|
123
|
+
endComment.raws["after"] = "\n";
|
|
125
124
|
const nextNode = endComment?.next();
|
|
126
125
|
if (nextNode) nextNode.raws.before = "\n";
|
|
127
126
|
}
|
|
@@ -156,10 +155,10 @@ const creator = () => {
|
|
|
156
155
|
if ((parentRule.nodes?.length ?? 0) === 0) parentRule.replaceWith(nextNodes);
|
|
157
156
|
else parentRule.after(nextNodes);
|
|
158
157
|
startComment.raws.before = hasPreviousNode ? "\n" : "";
|
|
159
|
-
startComment.raws
|
|
158
|
+
startComment.raws["after"] = "\n";
|
|
160
159
|
conditionalRule.raws.before = "\n";
|
|
161
160
|
endComment.raws.before = "\n";
|
|
162
|
-
endComment.raws
|
|
161
|
+
endComment.raws["after"] = "\n";
|
|
163
162
|
const nextNode = endComment.next();
|
|
164
163
|
if (nextNode) nextNode.raws.before = "\n";
|
|
165
164
|
return true;
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./chunk-8l464Juk.js");
|
|
3
|
-
const require_precheck = require("./precheck-
|
|
3
|
+
const require_precheck = require("./precheck-DLJg0_pu.js");
|
|
4
4
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
5
5
|
//#region src/core.ts
|
|
6
6
|
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-BI8oBeUg.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 });
|
|
@@ -2,6 +2,6 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_postcss = require("../postcss-
|
|
5
|
+
const require_postcss = require("../postcss-BwW8zO24.js");
|
|
6
6
|
exports.CSS_MACRO_POSTCSS_PLUGIN_NAME = require_postcss.CSS_MACRO_POSTCSS_PLUGIN_NAME;
|
|
7
7
|
exports.default = require_postcss.creator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as creator, t as CSS_MACRO_POSTCSS_PLUGIN_NAME } from "../postcss-
|
|
1
|
+
import { n as creator, t as CSS_MACRO_POSTCSS_PLUGIN_NAME } from "../postcss-BzaRjBL0.mjs";
|
|
2
2
|
export { CSS_MACRO_POSTCSS_PLUGIN_NAME, creator as default };
|
package/dist/css-macro.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-8l464Juk.js");
|
|
2
|
-
const require_postcss = require("./postcss-
|
|
3
|
-
const require_auto = require("./auto-
|
|
2
|
+
const require_postcss = require("./postcss-BwW8zO24.js");
|
|
3
|
+
const require_auto = require("./auto-CqyEtds4.js");
|
|
4
4
|
require("./utils-CSA174-I.js");
|
|
5
5
|
let tailwindcss_plugin = require("tailwindcss/plugin");
|
|
6
6
|
tailwindcss_plugin = require_chunk.__toESM(tailwindcss_plugin);
|
package/dist/css-macro.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as createNegativeConditionalAtRule, r as createConditionalAtRule } from "./postcss-
|
|
2
|
-
import { i as markCssMacroPlugin } from "./auto-
|
|
1
|
+
import { i as createNegativeConditionalAtRule, r as createConditionalAtRule } from "./postcss-BzaRjBL0.mjs";
|
|
2
|
+
import { i as markCssMacroPlugin } from "./auto-CsWz6lsU.mjs";
|
|
3
3
|
import { t as defu } from "./utils-B2SJgA1L.mjs";
|
|
4
4
|
import plugin from "tailwindcss/plugin";
|
|
5
5
|
//#region src/css-macro/index.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-8l464Juk.js");
|
|
2
|
-
const require_v3_engine = require("./v3-engine-
|
|
2
|
+
const require_v3_engine = require("./v3-engine-CGsbY81C.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 { C as createTailwindV4Engine, i as createTailwindV3Engine, n as resolveTailwindV3SourceFromPatcher, x as resolveTailwindV4SourceFromPatcher } from "./v3-engine-
|
|
1
|
+
import { C as createTailwindV4Engine, i as createTailwindV3Engine, n as resolveTailwindV3SourceFromPatcher, x as resolveTailwindV4SourceFromPatcher } from "./v3-engine-CPJ9uGyr.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,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./chunk-8l464Juk.js");
|
|
3
|
-
const require_v3_engine = require("./v3-engine-
|
|
4
|
-
const require_generator = require("./generator-
|
|
3
|
+
const require_v3_engine = require("./v3-engine-CGsbY81C.js");
|
|
4
|
+
const require_generator = require("./generator-BH6a0xuB.js");
|
|
5
5
|
let tailwindcss_patch = require("tailwindcss-patch");
|
|
6
6
|
exports.createWeappTailwindcssGenerator = require_generator.createWeappTailwindcssGenerator;
|
|
7
7
|
exports.createWeappTailwindcssGeneratorFromPatcher = require_generator.createWeappTailwindcssGeneratorFromPatcher;
|
package/dist/generator.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as resolveTailwindV4SourceOptionsFromPatcher, T as transformTailwindV4CssToWeapp, a as transformTailwindV3CssByTarget, b as resolveTailwindV4SourceFromPatchOptions, n as resolveTailwindV3SourceFromPatcher, o as transformTailwindV3CssToWeapp, r as resolveTailwindV3SourceOptionsFromPatcher, t as resolveTailwindV3Source, w as transformTailwindV4CssByTarget, x as resolveTailwindV4SourceFromPatcher, y as resolveTailwindV4Source } from "./v3-engine-
|
|
2
|
-
import { i as normalizeWeappTailwindcssGeneratorOptions, n as createWeappTailwindcssGeneratorFromPatcher, r as resolveTailwindSourceFromPatcher, t as createWeappTailwindcssGenerator } from "./generator-
|
|
1
|
+
import { S as resolveTailwindV4SourceOptionsFromPatcher, T as transformTailwindV4CssToWeapp, a as transformTailwindV3CssByTarget, b as resolveTailwindV4SourceFromPatchOptions, n as resolveTailwindV3SourceFromPatcher, o as transformTailwindV3CssToWeapp, r as resolveTailwindV3SourceOptionsFromPatcher, t as resolveTailwindV3Source, w as transformTailwindV4CssByTarget, x as resolveTailwindV4SourceFromPatcher, y as resolveTailwindV4Source } from "./v3-engine-CPJ9uGyr.mjs";
|
|
2
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, n as createWeappTailwindcssGeneratorFromPatcher, r as resolveTailwindSourceFromPatcher, t as createWeappTailwindcssGenerator } from "./generator-iI_265gt.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
2
|
const require_chunk = require("./chunk-8l464Juk.js");
|
|
3
|
-
const require_v3_engine = require("./v3-engine-
|
|
4
|
-
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-
|
|
5
|
-
const require_precheck = require("./precheck-
|
|
6
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
7
|
-
const require_source_candidates = require("./source-candidates-
|
|
3
|
+
const require_v3_engine = require("./v3-engine-CGsbY81C.js");
|
|
4
|
+
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-mY0v1k-Y.js");
|
|
5
|
+
const require_precheck = require("./precheck-DLJg0_pu.js");
|
|
6
|
+
const require_tailwindcss = require("./tailwindcss-Cm93idme.js");
|
|
7
|
+
const require_source_candidates = require("./source-candidates-mfvC9gMc.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
10
10
|
let node_path = require("node:path");
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as createDebug, _ as resolveViteSourceScanEntries, l as getRuntimeClassSetSignature } from "./v3-engine-
|
|
2
|
-
import { i as generateCssByGenerator, l as normalizeTailwindSourceForGenerator, o as processCachedTask, r as emitHmrTiming, s as hasTailwindRootDirectives, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-
|
|
3
|
-
import {
|
|
4
|
-
import { c as upsertTailwindV4CssSource, s as hasConfiguredTailwindV4CssRoots } from "./tailwindcss-
|
|
5
|
-
import { t as createSourceCandidateCollector } from "./source-candidates-
|
|
1
|
+
import { B as createDebug, _ as resolveViteSourceScanEntries, l as getRuntimeClassSetSignature } from "./v3-engine-CPJ9uGyr.mjs";
|
|
2
|
+
import { i as generateCssByGenerator, l as normalizeTailwindSourceForGenerator, o as processCachedTask, r as emitHmrTiming, s as hasTailwindRootDirectives, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-ECHyKwUL.mjs";
|
|
3
|
+
import { n as getCompilerContext, t as shouldSkipJsTransform, v as createTailwindRuntimeReadyPromise, y as ensureRuntimeClassSet } from "./precheck-BI8oBeUg.mjs";
|
|
4
|
+
import { c as upsertTailwindV4CssSource, s as hasConfiguredTailwindV4CssRoots } from "./tailwindcss-DFa5Yes8.mjs";
|
|
5
|
+
import { t as createSourceCandidateCollector } from "./source-candidates-DkScNh9A.mjs";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import process from "node:process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as createDebug, D as loadTailwindV4DesignSystem, E as filterUnsupportedMiniProgramTailwindV4Candidates, R as resolveTailwindV4CssSourceBase, S as resolveTailwindV4SourceOptionsFromPatcher, h as resolveTailwindV4EntriesFromCss, l as getRuntimeClassSetSignature, n as resolveTailwindV3SourceFromPatcher, q as omitUndefined, r as resolveTailwindV3SourceOptionsFromPatcher, t as resolveTailwindV3Source, x as resolveTailwindV4SourceFromPatcher, y as resolveTailwindV4Source$1 } from "./v3-engine-
|
|
2
|
-
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator } from "./generator-
|
|
3
|
-
import {
|
|
1
|
+
import { B as createDebug, D as loadTailwindV4DesignSystem, E as filterUnsupportedMiniProgramTailwindV4Candidates, R as resolveTailwindV4CssSourceBase, S as resolveTailwindV4SourceOptionsFromPatcher, h as resolveTailwindV4EntriesFromCss, l as getRuntimeClassSetSignature, n as resolveTailwindV3SourceFromPatcher, q as omitUndefined, r as resolveTailwindV3SourceOptionsFromPatcher, t as resolveTailwindV3Source, x as resolveTailwindV4SourceFromPatcher, y as resolveTailwindV4Source$1 } from "./v3-engine-CPJ9uGyr.mjs";
|
|
2
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator } from "./generator-iI_265gt.mjs";
|
|
3
|
+
import { p as replaceWxml, r as resolveStyleOptionsFromContext } from "./precheck-BI8oBeUg.mjs";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import postcss from "postcss";
|
|
6
6
|
import path from "node:path";
|
package/dist/{incremental-runtime-class-set-CERcE0fP.js → incremental-runtime-class-set-mY0v1k-Y.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-8l464Juk.js");
|
|
2
|
-
const require_v3_engine = require("./v3-engine-
|
|
3
|
-
const require_generator = require("./generator-
|
|
4
|
-
const require_precheck = require("./precheck-
|
|
2
|
+
const require_v3_engine = require("./v3-engine-CGsbY81C.js");
|
|
3
|
+
const require_generator = require("./generator-BH6a0xuB.js");
|
|
4
|
+
const require_precheck = require("./precheck-DLJg0_pu.js");
|
|
5
5
|
let node_fs = require("node:fs");
|
|
6
6
|
let postcss = require("postcss");
|
|
7
7
|
postcss = require_chunk.__toESM(postcss);
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./chunk-8l464Juk.js");
|
|
3
|
-
const require_generator = require("./generator-
|
|
3
|
+
const require_generator = require("./generator-BH6a0xuB.js");
|
|
4
4
|
const require_gulp = require("./gulp.js");
|
|
5
|
-
const require_postcss = require("./postcss-
|
|
6
|
-
const require_vite = require("./vite-
|
|
7
|
-
const require_webpack = require("./webpack-
|
|
5
|
+
const require_postcss = require("./postcss-DEEAZ8J5.js");
|
|
6
|
+
const require_vite = require("./vite-BM_ksf1q.js");
|
|
7
|
+
const require_webpack = require("./webpack-CfcuDhQ8.js");
|
|
8
8
|
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
9
9
|
exports.UnifiedWebpackPluginV5 = require_webpack.UnifiedWebpackPluginV5;
|
|
10
10
|
exports.WeappTailwindcss = require_vite.WeappTailwindcss;
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as createWeappTailwindcssGenerator } from "./generator-
|
|
1
|
+
import { t as createWeappTailwindcssGenerator } from "./generator-iI_265gt.mjs";
|
|
2
2
|
import { WeappTailwindcss as createPlugins } from "./gulp.mjs";
|
|
3
|
-
import { t as weappTailwindcssPostcssPlugin } from "./postcss-
|
|
4
|
-
import { t as WeappTailwindcss } from "./vite-
|
|
5
|
-
import { n as weappTailwindcssPackageDir, t as UnifiedWebpackPluginV5 } from "./webpack-
|
|
3
|
+
import { t as weappTailwindcssPostcssPlugin } from "./postcss-DJoU--Z-.mjs";
|
|
4
|
+
import { t as WeappTailwindcss } from "./vite-CqEF-Wx5.mjs";
|
|
5
|
+
import { n as weappTailwindcssPackageDir, t as UnifiedWebpackPluginV5 } from "./webpack-D--XZMBB.mjs";
|
|
6
6
|
import { unitConversionComposeRules, unitConversionPresets } from "@weapp-tailwindcss/postcss";
|
|
7
7
|
export { UnifiedWebpackPluginV5, WeappTailwindcss, createPlugins, createWeappTailwindcssGenerator, unitConversionComposeRules, unitConversionPresets, weappTailwindcssPackageDir, weappTailwindcssPostcssPlugin };
|
|
@@ -84,10 +84,10 @@ const creator = () => {
|
|
|
84
84
|
];
|
|
85
85
|
atRule.replaceWith(nextNodes);
|
|
86
86
|
startComment.raws.before = hasPreviousNode ? "\n" : "";
|
|
87
|
-
startComment.raws
|
|
87
|
+
startComment.raws["after"] = "\n";
|
|
88
88
|
if (clonedNodes[0]) clonedNodes[0].raws.before = "\n";
|
|
89
89
|
endComment.raws.before = "\n";
|
|
90
|
-
endComment.raws
|
|
90
|
+
endComment.raws["after"] = "\n";
|
|
91
91
|
const nextNode = endComment?.next();
|
|
92
92
|
if (nextNode) nextNode.raws.before = "\n";
|
|
93
93
|
}
|
|
@@ -122,10 +122,10 @@ const creator = () => {
|
|
|
122
122
|
if ((parentRule.nodes?.length ?? 0) === 0) parentRule.replaceWith(nextNodes);
|
|
123
123
|
else parentRule.after(nextNodes);
|
|
124
124
|
startComment.raws.before = hasPreviousNode ? "\n" : "";
|
|
125
|
-
startComment.raws
|
|
125
|
+
startComment.raws["after"] = "\n";
|
|
126
126
|
conditionalRule.raws.before = "\n";
|
|
127
127
|
endComment.raws.before = "\n";
|
|
128
|
-
endComment.raws
|
|
128
|
+
endComment.raws["after"] = "\n";
|
|
129
129
|
const nextNode = endComment.next();
|
|
130
130
|
if (nextNode) nextNode.raws.before = "\n";
|
|
131
131
|
return true;
|
|
@@ -84,10 +84,10 @@ const creator = () => {
|
|
|
84
84
|
];
|
|
85
85
|
atRule.replaceWith(nextNodes);
|
|
86
86
|
startComment.raws.before = hasPreviousNode ? "\n" : "";
|
|
87
|
-
startComment.raws
|
|
87
|
+
startComment.raws["after"] = "\n";
|
|
88
88
|
if (clonedNodes[0]) clonedNodes[0].raws.before = "\n";
|
|
89
89
|
endComment.raws.before = "\n";
|
|
90
|
-
endComment.raws
|
|
90
|
+
endComment.raws["after"] = "\n";
|
|
91
91
|
const nextNode = endComment?.next();
|
|
92
92
|
if (nextNode) nextNode.raws.before = "\n";
|
|
93
93
|
}
|
|
@@ -122,10 +122,10 @@ const creator = () => {
|
|
|
122
122
|
if ((parentRule.nodes?.length ?? 0) === 0) parentRule.replaceWith(nextNodes);
|
|
123
123
|
else parentRule.after(nextNodes);
|
|
124
124
|
startComment.raws.before = hasPreviousNode ? "\n" : "";
|
|
125
|
-
startComment.raws
|
|
125
|
+
startComment.raws["after"] = "\n";
|
|
126
126
|
conditionalRule.raws.before = "\n";
|
|
127
127
|
endComment.raws.before = "\n";
|
|
128
|
-
endComment.raws
|
|
128
|
+
endComment.raws["after"] = "\n";
|
|
129
129
|
const nextNode = endComment.next();
|
|
130
130
|
if (nextNode) nextNode.raws.before = "\n";
|
|
131
131
|
return true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-8l464Juk.js");
|
|
2
|
-
const require_v3_engine = require("./v3-engine-
|
|
3
|
-
const require_generator = require("./generator-
|
|
2
|
+
const require_v3_engine = require("./v3-engine-CGsbY81C.js");
|
|
3
|
+
const require_generator = require("./generator-BH6a0xuB.js");
|
|
4
4
|
let postcss = require("postcss");
|
|
5
5
|
postcss = require_chunk.__toESM(postcss);
|
|
6
6
|
let node_path = require("node:path");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as collectCssInlineSourceCandidates, F as parseConfigParam, H as readInstalledPackageMajorVersion, I as resolveCssSourceEntries, M as expandTailwindSourceEntries, O as DEFAULT_SOURCE_SCAN_EXTENSIONS, P as normalizeLegacyContentEntries, j as createSourceScanPattern, t as resolveTailwindV3Source, y as resolveTailwindV4Source$1 } from "./v3-engine-
|
|
2
|
-
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator } from "./generator-
|
|
1
|
+
import { A as collectCssInlineSourceCandidates, F as parseConfigParam, H as readInstalledPackageMajorVersion, I as resolveCssSourceEntries, M as expandTailwindSourceEntries, O as DEFAULT_SOURCE_SCAN_EXTENSIONS, P as normalizeLegacyContentEntries, j as createSourceScanPattern, t as resolveTailwindV3Source, y as resolveTailwindV4Source$1 } from "./v3-engine-CPJ9uGyr.mjs";
|
|
2
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator } from "./generator-iI_265gt.mjs";
|
|
3
3
|
import postcss from "postcss";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import process from "node:process";
|
package/dist/postcss.js
CHANGED
|
@@ -2,6 +2,6 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_postcss = require("./postcss-
|
|
5
|
+
const require_postcss = require("./postcss-DEEAZ8J5.js");
|
|
6
6
|
exports.default = require_postcss.weappTailwindcssPostcssPlugin;
|
|
7
7
|
exports.weappTailwindcssPostcssPlugin = require_postcss.weappTailwindcssPostcssPlugin;
|
package/dist/postcss.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as weappTailwindcssPostcssPlugin } from "./postcss-
|
|
1
|
+
import { t as weappTailwindcssPostcssPlugin } from "./postcss-DJoU--Z-.mjs";
|
|
2
2
|
export { weappTailwindcssPostcssPlugin as default, weappTailwindcssPostcssPlugin };
|