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,10 +1,11 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-8l464Juk.js");
|
|
2
|
-
const require_v3_engine = require("./v3-engine-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
2
|
+
const require_v3_engine = require("./v3-engine-CGsbY81C.js");
|
|
3
|
+
const require_generator = require("./generator-BH6a0xuB.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");
|
|
5
6
|
const require_utils = require("./utils-CSA174-I.js");
|
|
6
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
7
|
-
const require_bundle_state = require("./bundle-state-
|
|
7
|
+
const require_tailwindcss = require("./tailwindcss-Cm93idme.js");
|
|
8
|
+
const require_bundle_state = require("./bundle-state-uCtqRm0p.js");
|
|
8
9
|
let node_fs = require("node:fs");
|
|
9
10
|
node_fs = require_chunk.__toESM(node_fs);
|
|
10
11
|
let node_module = require("node:module");
|
|
@@ -687,7 +688,9 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
687
688
|
compiler.options = compiler.options || {};
|
|
688
689
|
const { disabled, onLoad, runtimeLoaderPath, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = this.options;
|
|
689
690
|
const disabledOptions = require_bundle_state.resolvePluginDisabledState(disabled);
|
|
690
|
-
const
|
|
691
|
+
const isTailwindcssV4 = (initialTwPatcher.majorVersion ?? 0) >= 4;
|
|
692
|
+
const generatorOptions = require_generator.normalizeWeappTailwindcssGeneratorOptions(this.options.generator);
|
|
693
|
+
const shouldRewriteCssImports = isTailwindcssV4 || generatorOptions.target === "web";
|
|
691
694
|
const isMpxApp = isMpx(this.appType);
|
|
692
695
|
if (shouldRewriteCssImports) setupMpxTailwindcssRedirect(weappTailwindcssPackageDir, isMpxApp);
|
|
693
696
|
if (disabledOptions.plugin) return;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { B as createDebug, W as resolveTailwindcssOptions, l as getRuntimeClassSetSignature } from "./v3-engine-
|
|
2
|
-
import { i as
|
|
3
|
-
import {
|
|
1
|
+
import { B as createDebug, W as resolveTailwindcssOptions, l as getRuntimeClassSetSignature } from "./v3-engine-CPJ9uGyr.mjs";
|
|
2
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions } from "./generator-iI_265gt.mjs";
|
|
3
|
+
import { i as generateCssByGenerator, o as processCachedTask, r as emitHmrTiming, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-ECHyKwUL.mjs";
|
|
4
|
+
import { b as refreshTailwindRuntimeState, d as _defineProperty, i as pluginName, n as getCompilerContext, t as shouldSkipJsTransform, v as createTailwindRuntimeReadyPromise, y as ensureRuntimeClassSet } from "./precheck-BI8oBeUg.mjs";
|
|
4
5
|
import { r as getGroupedEntries } from "./utils-B2SJgA1L.mjs";
|
|
5
|
-
import { c as upsertTailwindV4CssSource, s as hasConfiguredTailwindV4CssRoots } from "./tailwindcss-
|
|
6
|
-
import { _ as stripRequestQuery, b as toAbsoluteOutputPath, d as resolvePluginDisabledState, g as isSourceStyleRequest, l as stripBundlerGeneratedCssMarkers, n as createBundleBuildState, o as pushConcurrentTaskFactories, r as updateBundleBuildState, t as buildBundleSnapshot, u as resolvePackageDir, y as resolveOutputSpecifier } from "./bundle-state-
|
|
6
|
+
import { c as upsertTailwindV4CssSource, s as hasConfiguredTailwindV4CssRoots } from "./tailwindcss-DFa5Yes8.mjs";
|
|
7
|
+
import { _ as stripRequestQuery, b as toAbsoluteOutputPath, d as resolvePluginDisabledState, g as isSourceStyleRequest, l as stripBundlerGeneratedCssMarkers, n as createBundleBuildState, o as pushConcurrentTaskFactories, r as updateBundleBuildState, t as buildBundleSnapshot, u as resolvePackageDir, y as resolveOutputSpecifier } from "./bundle-state-CWcrb3mH.mjs";
|
|
7
8
|
import Module, { createRequire } from "node:module";
|
|
8
9
|
import fs from "node:fs";
|
|
9
10
|
import path from "node:path";
|
|
@@ -532,7 +533,7 @@ function setupWebpackV5ProcessAssetsHook(options) {
|
|
|
532
533
|
});
|
|
533
534
|
}
|
|
534
535
|
//#endregion
|
|
535
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_oxc-resolver@11.19.1_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0__tsx@4.
|
|
536
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_oxc-resolver@11.19.1_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0__tsx@4.22_d9b0fe6ae33481a579c49980b4e80572/node_modules/tsdown/esm-shims.js
|
|
536
537
|
const getFilename = () => fileURLToPath(import.meta.url);
|
|
537
538
|
const getDirname = () => path.dirname(getFilename());
|
|
538
539
|
const __dirname = /* @__PURE__ */ getDirname();
|
|
@@ -688,7 +689,9 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
688
689
|
compiler.options = compiler.options || {};
|
|
689
690
|
const { disabled, onLoad, runtimeLoaderPath, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = this.options;
|
|
690
691
|
const disabledOptions = resolvePluginDisabledState(disabled);
|
|
691
|
-
const
|
|
692
|
+
const isTailwindcssV4 = (initialTwPatcher.majorVersion ?? 0) >= 4;
|
|
693
|
+
const generatorOptions = normalizeWeappTailwindcssGeneratorOptions(this.options.generator);
|
|
694
|
+
const shouldRewriteCssImports = isTailwindcssV4 || generatorOptions.target === "web";
|
|
692
695
|
const isMpxApp = isMpx(this.appType);
|
|
693
696
|
if (shouldRewriteCssImports) setupMpxTailwindcssRedirect(weappTailwindcssPackageDir, isMpxApp);
|
|
694
697
|
if (disabledOptions.plugin) return;
|
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-CfcuDhQ8.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-D--XZMBB.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.26",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -178,7 +178,6 @@
|
|
|
178
178
|
"comment-json": "^5.0.0",
|
|
179
179
|
"debug": "~4.4.3",
|
|
180
180
|
"fast-glob": "^3.3.3",
|
|
181
|
-
"htmlparser2": "12.0.0",
|
|
182
181
|
"local-pkg": "^1.2.1",
|
|
183
182
|
"lru-cache": "11.5.0",
|
|
184
183
|
"magic-string": "0.30.21",
|
|
@@ -187,11 +186,14 @@
|
|
|
187
186
|
"semver": "~7.8.1",
|
|
188
187
|
"tailwindcss-patch": "9.3.7",
|
|
189
188
|
"yaml": "^2.9.0",
|
|
190
|
-
"@weapp-tailwindcss/
|
|
191
|
-
"@weapp-tailwindcss/postcss": "3.0.0-next.7",
|
|
189
|
+
"@weapp-tailwindcss/postcss": "3.0.0-next.8",
|
|
192
190
|
"@weapp-tailwindcss/reset": "0.1.1-next.1",
|
|
193
|
-
"@weapp-tailwindcss/
|
|
194
|
-
"tailwindcss
|
|
191
|
+
"@weapp-tailwindcss/logger": "2.0.0-next.0",
|
|
192
|
+
"@weapp-tailwindcss/shared": "2.0.0-next.0",
|
|
193
|
+
"tailwindcss-config": "2.0.0-next.2"
|
|
194
|
+
},
|
|
195
|
+
"devDependencies": {
|
|
196
|
+
"htmlparser2": "12.0.0"
|
|
195
197
|
},
|
|
196
198
|
"scripts": {
|
|
197
199
|
"dev": "tsdown --watch --sourcemap",
|