weapp-tailwindcss 5.0.0-next.20 → 5.0.0-next.21
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/{bundle-state-BlXvU4jl.js → bundle-state-BnV8o2Yn.js} +1 -1
- package/dist/{bundle-state-PO6MysTJ.mjs → bundle-state-CLnuf2CW.mjs} +1 -1
- package/dist/bundlers/shared/css-cleanup/at-rules.d.ts +1 -2
- package/dist/bundlers/shared/css-cleanup.d.ts +1 -8
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{generator-N4jy1HCk.js → generator-B4RNgMLx.js} +1 -1
- package/dist/{generator-DIuglJub.mjs → generator-DvyhmC76.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-hF-uiw6W.mjs → incremental-runtime-class-set-C7Q7fC5u.mjs} +5 -427
- package/dist/{incremental-runtime-class-set-CJ0Pnsw2.js → incremental-runtime-class-set-DZsbM0-a.js} +11 -433
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{postcss-DlY-YRvA.js → postcss-CFa6-qO9.js} +2 -2
- package/dist/{postcss-D4UdbBQ6.mjs → postcss-Drpy7j-g.mjs} +2 -2
- package/dist/postcss.js +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/{precheck-BjEbVEpX.js → precheck-8pQbjqpq.js} +2 -2
- package/dist/{precheck-tbk626YL.mjs → precheck-D1O5AWzy.mjs} +2 -2
- package/dist/presets.js +2 -2
- package/dist/presets.mjs +2 -2
- package/dist/{runtime-registry-D5qnaSpo.js → runtime-registry-CdCV3Opt.js} +0 -20
- package/dist/{source-candidates-gxijpPI3.js → source-candidates-CUTNdsiz.js} +1 -1
- package/dist/{source-candidates-BrvneDDd.mjs → source-candidates-CnD4vyic.mjs} +1 -1
- package/dist/tailwindcss/miniprogram.d.ts +1 -5
- package/dist/tailwindcss/remove-unsupported-css.d.ts +1 -2
- package/dist/{tailwindcss-c6ROlNNW.mjs → tailwindcss-B_JAdOQf.mjs} +1 -1
- package/dist/{tailwindcss-BhG7BtB-.js → tailwindcss-whZE3HpL.js} +1 -1
- package/dist/{v3-engine-5LoZUH-4.js → v3-engine-CCwvhRrQ.js} +2 -224
- package/dist/{v3-engine-DIXDEDmL.mjs → v3-engine-DyIcbpZm.mjs} +2 -218
- package/dist/{vite-B5faZcbE.mjs → vite-B8IiXgVD.mjs} +7 -7
- package/dist/{vite-MyXBNux0.js → vite-BcnwgJMt.js} +7 -7
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +13 -637
- package/dist/weapp-tw-runtime-classset-loader.js +3 -2
- package/dist/{webpack-Mz1V0A9p.js → webpack-C4zI624R.js} +5 -5
- package/dist/{webpack-BnVyDmsD.mjs → webpack-DTkshAtp.mjs} +5 -5
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +2 -2
- package/dist/bundlers/shared/css-cleanup/color-gamut.d.ts +0 -3
- package/dist/bundlers/shared/css-cleanup/root-cleanups.d.ts +0 -5
- package/dist/bundlers/shared/css-cleanup/selectors.d.ts +0 -8
- package/dist/lightningcss/index.d.ts +0 -8
- package/dist/lightningcss/style-handler/options.d.ts +0 -3
- package/dist/lightningcss/style-handler/selector-transform.d.ts +0 -10
- package/dist/lightningcss/style-handler/selector-utils.d.ts +0 -10
- package/dist/lightningcss/style-handler.d.ts +0 -17
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
const require_runtime_registry = require("./runtime-registry-
|
|
1
|
+
const require_runtime_registry = require("./runtime-registry-CdCV3Opt.js");
|
|
2
2
|
let node_buffer = require("node:buffer");
|
|
3
3
|
let node_process = require("node:process");
|
|
4
4
|
node_process = require_runtime_registry.__toESM(node_process);
|
|
5
5
|
let loader_utils = require("loader-utils");
|
|
6
6
|
loader_utils = require_runtime_registry.__toESM(loader_utils);
|
|
7
|
+
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
7
8
|
//#region src/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.ts
|
|
8
9
|
function isPromiseLike(value) {
|
|
9
10
|
return Boolean(value && typeof value.then === "function");
|
|
@@ -21,7 +22,7 @@ function shouldCleanRuntimeCss(css) {
|
|
|
21
22
|
}
|
|
22
23
|
function cleanRuntimeCss(css) {
|
|
23
24
|
const root = require_runtime_registry.postcss_default.parse(css);
|
|
24
|
-
|
|
25
|
+
(0, _weapp_tailwindcss_postcss.removeUnsupportedCascadeLayers)(root);
|
|
25
26
|
removeUnsupportedThemeKeyframes(root);
|
|
26
27
|
return root.toString();
|
|
27
28
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-8l464Juk.js");
|
|
2
|
-
const require_v3_engine = require("./v3-engine-
|
|
3
|
-
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-
|
|
4
|
-
const require_precheck = require("./precheck-
|
|
2
|
+
const require_v3_engine = require("./v3-engine-CCwvhRrQ.js");
|
|
3
|
+
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-DZsbM0-a.js");
|
|
4
|
+
const require_precheck = require("./precheck-8pQbjqpq.js");
|
|
5
5
|
const require_utils = require("./utils-4ODFyoqD.js");
|
|
6
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
7
|
-
const require_bundle_state = require("./bundle-state-
|
|
6
|
+
const require_tailwindcss = require("./tailwindcss-whZE3HpL.js");
|
|
7
|
+
const require_bundle_state = require("./bundle-state-BnV8o2Yn.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
10
10
|
let node_module = require("node:module");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as generateCssByGenerator, o as processCachedTask, r as emitHmrTiming, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-
|
|
3
|
-
import { _ as ensureRuntimeClassSet, f as pluginName, g as createTailwindRuntimeReadyPromise, n as getCompilerContext, s as _defineProperty, t as shouldSkipJsTransform, v as refreshTailwindRuntimeState } from "./precheck-
|
|
1
|
+
import { B as createDebug, W as resolveTailwindcssOptions, l as getRuntimeClassSetSignature } from "./v3-engine-DyIcbpZm.mjs";
|
|
2
|
+
import { i as generateCssByGenerator, o as processCachedTask, r as emitHmrTiming, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-C7Q7fC5u.mjs";
|
|
3
|
+
import { _ as ensureRuntimeClassSet, f as pluginName, g as createTailwindRuntimeReadyPromise, n as getCompilerContext, s as _defineProperty, t as shouldSkipJsTransform, v as refreshTailwindRuntimeState } from "./precheck-D1O5AWzy.mjs";
|
|
4
4
|
import { r as getGroupedEntries } from "./utils-CGBVVNm6.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-
|
|
5
|
+
import { c as upsertTailwindV4CssSource, s as hasConfiguredTailwindV4CssRoots } from "./tailwindcss-B_JAdOQf.mjs";
|
|
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-CLnuf2CW.mjs";
|
|
7
7
|
import Module, { createRequire } from "node:module";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
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-C4zI624R.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-DTkshAtp.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.21",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"tailwindcss-patch": "9.3.7",
|
|
191
191
|
"yaml": "^2.9.0",
|
|
192
192
|
"@weapp-tailwindcss/logger": "1.1.0",
|
|
193
|
-
"@weapp-tailwindcss/postcss": "
|
|
193
|
+
"@weapp-tailwindcss/postcss": "3.0.0-next.6",
|
|
194
194
|
"@weapp-tailwindcss/reset": "0.1.1-next.0",
|
|
195
195
|
"@weapp-tailwindcss/shared": "1.1.3",
|
|
196
196
|
"tailwindcss-config": "1.1.6-next.1"
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type postcss from 'postcss';
|
|
2
|
-
export declare function removeSpecificityPlaceholders(root: postcss.Root): void;
|
|
3
|
-
export declare function removeUnsupportedBrowserSelectors(root: postcss.Root): void;
|
|
4
|
-
export declare function removeDisplayP3Declarations(root: postcss.Root): void;
|
|
5
|
-
export declare function removeUnsupportedModernColorDeclarations(root: postcss.Root): void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type postcss from 'postcss';
|
|
2
|
-
export declare const MINI_PROGRAM_THEME_SCOPE_SELECTOR = ":host,page,.tw-root,wx-root-portal-content";
|
|
3
|
-
export declare const MINI_PROGRAM_PREFLIGHT_SELECTORS: Set<string>;
|
|
4
|
-
export declare const MINI_PROGRAM_THEME_SCOPE_SELECTORS: Set<string>;
|
|
5
|
-
export declare const SPECIFICITY_PLACEHOLDER_SUFFIXES: string[];
|
|
6
|
-
export declare function normalizeSelector(selector: string): string;
|
|
7
|
-
export declare function getRuleSelectors(rule: postcss.Rule): string[];
|
|
8
|
-
export declare function isUnsupportedBrowserSelector(selector: string): boolean;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Buffer } from 'node:buffer';
|
|
2
|
-
import { createLightningcssStyleHandler } from './style-handler';
|
|
3
|
-
export { createLightningcssStyleHandler };
|
|
4
|
-
export declare function transformCss(css?: string | Buffer): Promise<{
|
|
5
|
-
code: Buffer<ArrayBuffer>;
|
|
6
|
-
map: Buffer<ArrayBuffer> | undefined;
|
|
7
|
-
warnings: import("lightningcss").Warning[];
|
|
8
|
-
}>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
|
2
|
-
export declare function createRootSpecificityReplacer(options: IStyleHandlerOptions): ((code: string) => string) | undefined;
|
|
3
|
-
export declare function prepareStyleOptions(options?: Partial<IStyleHandlerOptions>): IStyleHandlerOptions;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
|
2
|
-
import type { SelectorComponent } from 'lightningcss';
|
|
3
|
-
type CustomAtRules = Record<string, never>;
|
|
4
|
-
export interface SelectorTransformContext {
|
|
5
|
-
options: IStyleHandlerOptions;
|
|
6
|
-
childCombinatorReplacement?: SelectorComponent[] | undefined;
|
|
7
|
-
}
|
|
8
|
-
export declare function buildChildCombinatorReplacement(options: IStyleHandlerOptions): SelectorComponent[] | undefined;
|
|
9
|
-
export declare function createVisitor(ctx: SelectorTransformContext): import("lightningcss").Visitor<CustomAtRules>;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Selector, SelectorComponent } from 'lightningcss';
|
|
2
|
-
export declare function createTypeSelector(name: string): SelectorComponent;
|
|
3
|
-
export declare function cloneComponent<T>(value: T): T;
|
|
4
|
-
export declare function cloneComponents(list: SelectorComponent[]): SelectorComponent[];
|
|
5
|
-
export declare function normalizeNestedSelectors(selectors: Selector[] | Selector | null | undefined): Selector[] | undefined;
|
|
6
|
-
export declare function assignNestedSelectors(target: SelectorComponent & {
|
|
7
|
-
selectors?: Selector[] | Selector | null;
|
|
8
|
-
}, value: Selector[] | undefined): void;
|
|
9
|
-
export declare function trimCombinators(components: SelectorComponent[]): SelectorComponent[];
|
|
10
|
-
export declare function matchesHiddenNot(component: SelectorComponent | undefined): boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
|
2
|
-
import type { TransformOptions, Warning } from 'lightningcss';
|
|
3
|
-
type CustomAtRules = Record<string, never>;
|
|
4
|
-
export interface LightningcssStyleHandlerResult {
|
|
5
|
-
code: string;
|
|
6
|
-
map?: string | undefined;
|
|
7
|
-
warnings: Warning[];
|
|
8
|
-
}
|
|
9
|
-
export interface LightningcssTransformConfig {
|
|
10
|
-
filename?: string | undefined;
|
|
11
|
-
transformOptions?: Omit<TransformOptions<CustomAtRules>, 'filename' | 'code' | 'visitor'> | undefined;
|
|
12
|
-
}
|
|
13
|
-
interface LightningcssStyleHandler {
|
|
14
|
-
(rawSource: string, overrideOptions?: Partial<IStyleHandlerOptions>): Promise<LightningcssStyleHandlerResult>;
|
|
15
|
-
}
|
|
16
|
-
export declare function createLightningcssStyleHandler(options?: Partial<IStyleHandlerOptions>, config?: LightningcssTransformConfig): LightningcssStyleHandler;
|
|
17
|
-
export {};
|