weapp-tailwindcss 5.3.5 → 5.4.0
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.md +3 -3
- package/README.zh-CN.md +4 -4
- package/dist/bundlers/shared/framework-postcss.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/result-helpers.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/types.d.ts +3 -1
- package/dist/bundlers/shared/source-candidates/snapshot.d.ts +19 -0
- package/dist/bundlers/shared/source-candidates/source-priority.d.ts +1 -0
- package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +1 -0
- package/dist/bundlers/shared/source-candidates/views.d.ts +12 -0
- package/dist/bundlers/shared/style-requests.d.ts +1 -0
- package/dist/bundlers/vite/bundle-state.d.ts +9 -1
- package/dist/bundlers/vite/capability-profile.d.ts +18 -0
- package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +12 -0
- package/dist/bundlers/vite/hot-css-modules.d.ts +2 -2
- package/dist/bundlers/vite/shared/configured-css-entry-observer.d.ts +29 -0
- package/dist/bundlers/vite/shared/create-framework-plugins.d.ts +8 -0
- package/dist/bundlers/vite/shared/framework-css-generation-queue.d.ts +1 -0
- package/dist/bundlers/vite/shared/framework-hmr-module-version.d.ts +9 -0
- package/dist/bundlers/vite/shared/framework-runtime-utils.d.ts +5 -0
- package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +12 -2
- package/dist/compiler/compilation-session-pool.d.ts +1 -0
- package/dist/compiler/framework-compiler-session.d.ts +21 -0
- package/dist/compiler/index.d.ts +1 -0
- package/dist/{context-DTLRADfE.cjs → compiler-C93NfxSe.cjs} +859 -11
- package/dist/{context-4ittVpgt.js → compiler-qDa3phIv.js} +764 -5
- package/dist/context/handlers.d.ts +1 -1
- package/dist/core/compiler/compiler.d.ts +2 -0
- package/dist/core/compiler/generation-cache.d.ts +30 -0
- package/dist/core/compiler/generation-state.d.ts +17 -0
- package/dist/core/compiler/index.d.ts +2 -0
- package/dist/core/compiler/root-store.d.ts +38 -0
- package/dist/core/compiler/snapshot.d.ts +35 -0
- package/dist/core/compiler/source-fingerprint.d.ts +3 -0
- package/dist/core/compiler/transforms.d.ts +15 -0
- package/dist/core/compiler/types.d.ts +69 -0
- package/dist/core.cjs +9 -8
- package/dist/core.d.ts +2 -1
- package/dist/core.js +2 -2
- package/dist/framework/index.d.ts +3 -1
- package/dist/framework.cjs +6 -1
- package/dist/framework.js +6 -1
- package/dist/{generator-EnTXLBlK.js → generator-C0m2S4WI.js} +3 -2
- package/dist/{generator-DKiYbTFR.cjs → generator-CKJ6sj1f.cjs} +3 -2
- package/dist/generator.cjs +1 -1
- package/dist/generator.js +1 -1
- package/dist/{gulp-CUysZjW3.cjs → gulp-CW6JGqVn.cjs} +14 -16
- package/dist/{gulp-DwtrU4V1.js → gulp-e2iWsmEK.js} +7 -7
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-utmOgn6p.js → hmr-timing-DgMgwSce.js} +367 -289
- package/dist/{hmr-timing-Cvh5UgnM.cjs → hmr-timing-n7QQKFp7.cjs} +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/{pipeline-helpers-CyVXL3h6.cjs → pipeline-helpers-DoLQy44Q.cjs} +6 -6
- package/dist/postcss.cjs +1 -1
- package/dist/postcss.js +1 -1
- package/dist/presets.cjs +2 -3
- package/dist/presets.js +1 -1
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.js +2 -2
- package/dist/{source-candidate-scan-signature-CDrLxVKu.js → source-candidate-scan-signature-B0lOMiwB.js} +3 -3
- package/dist/{source-candidate-scan-signature-BNt7NrrI.cjs → source-candidate-scan-signature-Chb-Zrwt.cjs} +5 -5
- package/dist/{tailwindcss-CexDJBhx.cjs → tailwindcss-BGlJ1m1l.cjs} +763 -5
- package/dist/{tailwindcss-ChnpCv25.js → tailwindcss-BSKl0FTD.js} +1 -1
- package/dist/{transform-AfnwH_yx.cjs → transform-C6k9zTQR.cjs} +16 -7
- package/dist/{transform-BMPNt_vj.js → transform-DQhgAarN.js} +16 -7
- package/dist/typedoc.export.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/uni-app-x/component-local-style.d.ts +2 -0
- package/dist/uni-app-x/transform.d.ts +1 -0
- package/dist/uni-app-x/vite/asset-task.d.ts +21 -0
- package/dist/uni-app-x/vite/plugin-options.d.ts +8 -0
- package/dist/uni-app-x/vite/web-local-style.d.ts +2 -1
- package/dist/uni-app-x/vite.d.ts +1 -21
- package/dist/{v4-generation-core-Dhsu9Deu.cjs → v4-generation-core-B2sUkkgq.cjs} +378 -300
- package/dist/{vite-qxEVovZD.cjs → vite-B0IPgrvM.cjs} +807 -200
- package/dist/{vite-mWyHvLB0.js → vite-CcEb2SOl.js} +774 -165
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/weapp-tw-css-generation-loader.cjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +7 -7
- package/dist/{webpack-Cpy_yggg.cjs → webpack-B5vc13U_.cjs} +33 -35
- package/dist/{webpack-CzhrD9p3.js → webpack-BPA5I79o.js} +7 -7
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/dist/wxml/utils.d.ts +1 -1
- package/dist/{wxml-B7OAVpXJ.js → wxml-CvKyV69S.js} +10 -2
- package/dist/{wxml-PrK-8ARX.cjs → wxml-o-CUulAM.cjs} +40 -32
- package/package.json +12 -11
- package/dist/options-BJrtIQbH.cjs +0 -768
- package/dist/style-options-DW30H5PV.cjs +0 -82
|
@@ -2,5 +2,5 @@ import type { ICustomAttributesEntities, InternalUserDefinedOptions } from '../t
|
|
|
2
2
|
export declare function createHandlersFromContext(ctx: InternalUserDefinedOptions, customAttributesEntities: ICustomAttributesEntities, cssCalcOptions: InternalUserDefinedOptions['cssCalc'], tailwindcssMajorVersion?: number): {
|
|
3
3
|
styleHandler: import("@weapp-tailwindcss/postcss").StyleHandler;
|
|
4
4
|
jsHandler: import("../types/index.js").JsHandler;
|
|
5
|
-
templateHandler: (rawSource: string, opt?:
|
|
5
|
+
templateHandler: (rawSource: string, opt?: import("../types/index.js").ITemplateHandlerOptions) => Promise<string>;
|
|
6
6
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { CompilerGenerateRequest, CompilerTarget } from './types.js';
|
|
2
|
+
import type { WeappTailwindcssGenerateResult } from '../../generator/index.js';
|
|
3
|
+
export interface CompilerGenerationCacheEntry {
|
|
4
|
+
key: CompilerGenerationCacheKey;
|
|
5
|
+
result: WeappTailwindcssGenerateResult;
|
|
6
|
+
}
|
|
7
|
+
interface CompilerGenerationCacheKey {
|
|
8
|
+
bareArbitraryValues: CompilerGenerateRequest['bareArbitraryValues'];
|
|
9
|
+
candidateSignature: string;
|
|
10
|
+
incrementalCache: CompilerGenerateRequest['incrementalCache'];
|
|
11
|
+
scanSources: CompilerGenerateRequest['scanSources'];
|
|
12
|
+
sourcesFingerprint: string | undefined;
|
|
13
|
+
styleOptionsFingerprint: string | undefined;
|
|
14
|
+
target: CompilerTarget;
|
|
15
|
+
}
|
|
16
|
+
export declare function createCompilerGenerationCacheKey(request: CompilerGenerateRequest, candidates: Iterable<string>, target: CompilerTarget): CompilerGenerationCacheKey;
|
|
17
|
+
export declare function isSameCompilerGenerationCacheKey(left: CompilerGenerationCacheKey, right: CompilerGenerationCacheKey): boolean;
|
|
18
|
+
export declare function reuseCompilerGenerationResult(result: WeappTailwindcssGenerateResult): {
|
|
19
|
+
incrementalCss: string;
|
|
20
|
+
incrementalRawCss: string;
|
|
21
|
+
css: string;
|
|
22
|
+
rawCss: string;
|
|
23
|
+
target: "weapp" | "web";
|
|
24
|
+
root: import("@tailwindcss-mangle/engine").TailwindV4CompiledSourceRoot;
|
|
25
|
+
sources: import("@tailwindcss-mangle/engine").TailwindV4SourcePattern[];
|
|
26
|
+
classSet: Set<string>;
|
|
27
|
+
rawCandidates: Set<string>;
|
|
28
|
+
dependencies: string[];
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CompilerRootSession } from './root-store.js';
|
|
2
|
+
import type { CompilerGenerateRequest } from './types.js';
|
|
3
|
+
import type { CompilationGraphSnapshot, CompilationResult } from '../../compiler/types.js';
|
|
4
|
+
import type { TailwindV4ResolvedSource } from '../../generator/index.js';
|
|
5
|
+
export interface CompilerCompilationCacheEntry {
|
|
6
|
+
candidateSignature: string;
|
|
7
|
+
compilation: CompilationResult;
|
|
8
|
+
graph: CompilationGraphSnapshot;
|
|
9
|
+
}
|
|
10
|
+
interface PreparedCompilerGeneration extends CompilerCompilationCacheEntry {
|
|
11
|
+
compilation: CompilationResult;
|
|
12
|
+
explicitCandidates: boolean;
|
|
13
|
+
graph: CompilationGraphSnapshot;
|
|
14
|
+
}
|
|
15
|
+
export declare function prepareCompilerGeneration(entry: CompilerRootSession, request: CompilerGenerateRequest, source: TailwindV4ResolvedSource, sourceChanged: boolean): PreparedCompilerGeneration;
|
|
16
|
+
export declare function commitCompilerGeneration(entry: CompilerRootSession, prepared: PreparedCompilerGeneration, source: TailwindV4ResolvedSource, dependencies: Iterable<string>, classSet: Iterable<string>): void;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { createCompiler } from './compiler.js';
|
|
2
|
+
export type { Compiler, CompilerCacheReuseState, CompilerGenerateRequest, CompilerGenerateResult, CompilerSnapshot, CompilerSnapshotRoot, CompilerSourcePattern, CompilerTarget, CompilerTemplateTransformOptions, CreateCompilerOptions, CreateCompilerSnapshotRequest, } from './types.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { CompilerGenerationCacheEntry } from './generation-cache.js';
|
|
2
|
+
import type { CompilerCompilationCacheEntry } from './generation-state.js';
|
|
3
|
+
import type { CompilerSnapshot } from './types.js';
|
|
4
|
+
import type { TailwindV4ResolvedSource, WeappTailwindcssGenerator } from '../../generator/index.js';
|
|
5
|
+
import { DefaultCompilationSession } from '../../compiler/session.js';
|
|
6
|
+
export interface CompilerRootSession {
|
|
7
|
+
accepting: boolean;
|
|
8
|
+
active: boolean;
|
|
9
|
+
appliedInvalidation: number;
|
|
10
|
+
compilation: DefaultCompilationSession;
|
|
11
|
+
compilationCache?: CompilerCompilationCacheEntry | undefined;
|
|
12
|
+
compilationRevision: number;
|
|
13
|
+
dependencies: Set<string>;
|
|
14
|
+
generator?: WeappTailwindcssGenerator | undefined;
|
|
15
|
+
generationCache?: CompilerGenerationCacheEntry | undefined;
|
|
16
|
+
id: string;
|
|
17
|
+
invalidation: number;
|
|
18
|
+
latestSnapshot?: CompilerSnapshot | undefined;
|
|
19
|
+
pending: Promise<void>;
|
|
20
|
+
pendingCount: number;
|
|
21
|
+
source?: TailwindV4ResolvedSource | undefined;
|
|
22
|
+
sourceFingerprint?: string | undefined;
|
|
23
|
+
sourceInput?: object | undefined;
|
|
24
|
+
}
|
|
25
|
+
export declare class CompilerRootStore {
|
|
26
|
+
private readonly maxRoots;
|
|
27
|
+
private readonly dependencyRoots;
|
|
28
|
+
private readonly releasing;
|
|
29
|
+
private readonly roots;
|
|
30
|
+
constructor(maxRoots: number);
|
|
31
|
+
get(id: string): CompilerRootSession;
|
|
32
|
+
attachDependencies(entry: CompilerRootSession, dependencies: Iterable<string>): void;
|
|
33
|
+
invalidate(ids: Iterable<string>): readonly string[];
|
|
34
|
+
trim(): void;
|
|
35
|
+
remove(id: string): Promise<void>;
|
|
36
|
+
dispose(): Promise<void>;
|
|
37
|
+
private detachDependencies;
|
|
38
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { CompilerSnapshot, CompilerSnapshotRoot, CompilerSourcePattern, CompilerTarget, CreateCompilerSnapshotRequest } from './types.js';
|
|
2
|
+
interface InternalSnapshotRoot extends CompilerSnapshotRoot {
|
|
3
|
+
fingerprint: string;
|
|
4
|
+
}
|
|
5
|
+
export interface InternalCompilerSnapshot {
|
|
6
|
+
classSet: Set<string>;
|
|
7
|
+
dependencies: readonly string[];
|
|
8
|
+
fingerprint: string;
|
|
9
|
+
roots: ReadonlyMap<string, InternalSnapshotRoot>;
|
|
10
|
+
sources: readonly CompilerSourcePattern[];
|
|
11
|
+
target: CompilerTarget;
|
|
12
|
+
}
|
|
13
|
+
export declare function createRegisteredCompilerSnapshot(request: CreateCompilerSnapshotRequest, reusableClassSet?: Set<string>, reusableClassSetView?: ReadonlySet<string>): Readonly<{
|
|
14
|
+
classSet: ReadonlySet<string>;
|
|
15
|
+
dependencies: readonly string[];
|
|
16
|
+
roots: readonly Readonly<{
|
|
17
|
+
id: string;
|
|
18
|
+
revision: number;
|
|
19
|
+
}>[];
|
|
20
|
+
sources: readonly import("../../tailwindcss/v4-engine/types.js").TailwindV4SourcePattern[];
|
|
21
|
+
target: CompilerTarget;
|
|
22
|
+
}>;
|
|
23
|
+
export declare function getInternalCompilerSnapshot(snapshot: CompilerSnapshot): InternalCompilerSnapshot;
|
|
24
|
+
export declare function mergeRegisteredCompilerSnapshots(snapshots: Iterable<CompilerSnapshot>): Readonly<{
|
|
25
|
+
classSet: ReadonlySet<string>;
|
|
26
|
+
dependencies: readonly string[];
|
|
27
|
+
roots: readonly Readonly<{
|
|
28
|
+
id: string;
|
|
29
|
+
revision: number;
|
|
30
|
+
}>[];
|
|
31
|
+
sources: readonly import("../../tailwindcss/v4-engine/types.js").TailwindV4SourcePattern[];
|
|
32
|
+
target: CompilerTarget;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function createImmutableSet<T>(values: Iterable<T>): ReadonlySet<T>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Compiler, CompilerSnapshot } from './types.js';
|
|
2
|
+
import type { UserDefinedOptions } from '../../types/index.js';
|
|
3
|
+
interface CreateCompilerTransformsOptions {
|
|
4
|
+
ensureActive: () => void;
|
|
5
|
+
track: <T>(task: Promise<T>) => Promise<T>;
|
|
6
|
+
userOptions: UserDefinedOptions;
|
|
7
|
+
}
|
|
8
|
+
export declare function createCompilerTransforms({ ensureActive, track, userOptions }: CreateCompilerTransformsOptions): {
|
|
9
|
+
clearCache: () => void;
|
|
10
|
+
transformCss: (css: string, snapshot: CompilerSnapshot, options?: Parameters<Compiler["transformCss"]>[2]) => Promise<import("postcss").Result<import("postcss").Document | import("postcss").Root>>;
|
|
11
|
+
transformCssRoot: (root: Parameters<Compiler["transformCssRoot"]>[0], snapshot: CompilerSnapshot, options?: Parameters<Compiler["transformCssRoot"]>[2]) => Promise<import("postcss").Result<import("postcss").Document | import("postcss").Root>>;
|
|
12
|
+
transformJavaScript: (source: string, snapshot: CompilerSnapshot, options?: Parameters<Compiler["transformJavaScript"]>[2]) => Promise<import("../../types/index.js").JsHandlerResult>;
|
|
13
|
+
transformTemplate: (source: string, snapshot: CompilerSnapshot, options?: Parameters<Compiler["transformTemplate"]>[2]) => Promise<string>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Document, IStyleHandlerOptions, Result as PostcssResult, Root } from '@weapp-tailwindcss/postcss';
|
|
2
|
+
import type { TailwindV4ResolvedSource, TailwindV4SourceOptions, WeappTailwindcssGenerateOptions, WeappTailwindcssGenerateResult } from '../../generator/index.js';
|
|
3
|
+
import type { CreateJsHandlerOptions, ITemplateHandlerOptions, JsHandlerResult, UserDefinedOptions } from '../../types/index.js';
|
|
4
|
+
export type CompilerTarget = 'tailwind' | 'weapp' | 'web';
|
|
5
|
+
export type CompilerSourcePattern = NonNullable<TailwindV4ResolvedSource['sources']>[number];
|
|
6
|
+
export interface CompilerSnapshotRoot {
|
|
7
|
+
id: string;
|
|
8
|
+
revision: number;
|
|
9
|
+
}
|
|
10
|
+
export interface CompilerSnapshot {
|
|
11
|
+
readonly classSet: ReadonlySet<string>;
|
|
12
|
+
readonly dependencies: readonly string[];
|
|
13
|
+
readonly roots: readonly CompilerSnapshotRoot[];
|
|
14
|
+
readonly sources: readonly CompilerSourcePattern[];
|
|
15
|
+
readonly target: CompilerTarget;
|
|
16
|
+
}
|
|
17
|
+
interface CompilerGenerateRequestBase extends Omit<WeappTailwindcssGenerateOptions, 'target'> {
|
|
18
|
+
id: string;
|
|
19
|
+
target?: CompilerTarget | undefined;
|
|
20
|
+
}
|
|
21
|
+
export type CompilerGenerateRequest = CompilerGenerateRequestBase & {
|
|
22
|
+
source: TailwindV4ResolvedSource;
|
|
23
|
+
sourceOptions?: never;
|
|
24
|
+
} | CompilerGenerateRequestBase & {
|
|
25
|
+
source?: never;
|
|
26
|
+
sourceOptions: TailwindV4SourceOptions;
|
|
27
|
+
};
|
|
28
|
+
export interface CompilerCacheReuseState {
|
|
29
|
+
source: boolean;
|
|
30
|
+
engine: boolean;
|
|
31
|
+
output: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface CompilerGenerateResult extends Omit<WeappTailwindcssGenerateResult, 'classSet' | 'dependencies' | 'rawCandidates' | 'sources' | 'target'> {
|
|
34
|
+
cache: Readonly<CompilerCacheReuseState>;
|
|
35
|
+
classSet: ReadonlySet<string>;
|
|
36
|
+
dependencies: readonly string[];
|
|
37
|
+
rawCandidates: ReadonlySet<string>;
|
|
38
|
+
revision: number;
|
|
39
|
+
snapshot: CompilerSnapshot;
|
|
40
|
+
sources: readonly CompilerSourcePattern[];
|
|
41
|
+
target: CompilerTarget;
|
|
42
|
+
}
|
|
43
|
+
export interface CreateCompilerSnapshotRequest {
|
|
44
|
+
classSet: Iterable<string>;
|
|
45
|
+
dependencies?: Iterable<string> | undefined;
|
|
46
|
+
id: string;
|
|
47
|
+
revision?: number | undefined;
|
|
48
|
+
sources?: Iterable<CompilerSourcePattern> | undefined;
|
|
49
|
+
target?: CompilerTarget | undefined;
|
|
50
|
+
}
|
|
51
|
+
export type CompilerTemplateTransformOptions = Omit<ITemplateHandlerOptions, 'classSetMode' | 'runtimeSet'>;
|
|
52
|
+
export type CreateCompilerOptions = UserDefinedOptions & {
|
|
53
|
+
compiler?: {
|
|
54
|
+
maxRoots?: number | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
};
|
|
57
|
+
export interface Compiler {
|
|
58
|
+
createSnapshot: (request: CreateCompilerSnapshotRequest) => CompilerSnapshot;
|
|
59
|
+
dispose: () => Promise<void>;
|
|
60
|
+
generate: (request: CompilerGenerateRequest) => Promise<CompilerGenerateResult>;
|
|
61
|
+
invalidate: (ids: Iterable<string>) => readonly string[];
|
|
62
|
+
mergeSnapshots: (snapshots: Iterable<CompilerSnapshot>) => CompilerSnapshot;
|
|
63
|
+
remove: (id: string) => Promise<void>;
|
|
64
|
+
transformCss: (css: string, snapshot: CompilerSnapshot, options?: Partial<IStyleHandlerOptions>) => Promise<PostcssResult<Root | Document>>;
|
|
65
|
+
transformCssRoot: (root: Root, snapshot: CompilerSnapshot, options?: Partial<IStyleHandlerOptions>) => Promise<PostcssResult<Root>>;
|
|
66
|
+
transformJavaScript: (source: string, snapshot: CompilerSnapshot, options?: CreateJsHandlerOptions) => Promise<JsHandlerResult>;
|
|
67
|
+
transformTemplate: (source: string, snapshot: CompilerSnapshot, options?: CompilerTemplateTransformOptions) => Promise<string>;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
package/dist/core.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_compiler = require("./compiler-C93NfxSe.cjs");
|
|
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 });
|
|
@@ -14,11 +14,11 @@ function resolveTransformWxssOptions(options) {
|
|
|
14
14
|
* @returns 返回一个包含 transformWxss、transformWxml 和 transformJs 方法的对象
|
|
15
15
|
*/
|
|
16
16
|
function createContext(options = {}) {
|
|
17
|
-
const opts =
|
|
17
|
+
const opts = require_compiler.getCompilerContext(options);
|
|
18
18
|
const { templateHandler, styleHandler, jsHandler } = opts;
|
|
19
19
|
const initialTailwindRuntime = opts.tailwindRuntime;
|
|
20
20
|
const refreshTailwindcssRuntime = opts.refreshTailwindcssRuntime;
|
|
21
|
-
const readyPromise =
|
|
21
|
+
const readyPromise = require_compiler.createTailwindRuntimeReadyPromise(initialTailwindRuntime);
|
|
22
22
|
let runtimeSet = /* @__PURE__ */ new Set();
|
|
23
23
|
const runtimeState = {
|
|
24
24
|
tailwindRuntime: initialTailwindRuntime,
|
|
@@ -109,25 +109,25 @@ function createContext(options = {}) {
|
|
|
109
109
|
async function transformWxss(rawCss, options) {
|
|
110
110
|
await runtimeState.readyPromise;
|
|
111
111
|
const result = await styleHandler(rawCss, resolveTransformWxssOptions(options));
|
|
112
|
-
runtimeSet = await
|
|
112
|
+
runtimeSet = await require_compiler.ensureRuntimeClassSet(runtimeState);
|
|
113
113
|
return result;
|
|
114
114
|
}
|
|
115
115
|
async function getRuntimeSet(options) {
|
|
116
116
|
await runtimeState.readyPromise;
|
|
117
|
-
runtimeSet = await
|
|
117
|
+
runtimeSet = await require_compiler.ensureRuntimeClassSet(runtimeState, options);
|
|
118
118
|
return runtimeSet;
|
|
119
119
|
}
|
|
120
120
|
async function transformJs(rawJs, options) {
|
|
121
121
|
await runtimeState.readyPromise;
|
|
122
122
|
if (options?.runtimeSet) runtimeSet = options.runtimeSet;
|
|
123
|
-
else if (runtimeSet.size === 0) runtimeSet = await
|
|
123
|
+
else if (runtimeSet.size === 0) runtimeSet = await require_compiler.ensureRuntimeClassSet(runtimeState, { forceCollect: true });
|
|
124
124
|
const resolvedOptions = resolveTransformJsOptions(options);
|
|
125
|
-
if (
|
|
125
|
+
if (require_compiler.shouldSkipJsTransform(rawJs, resolvedOptions)) return { code: rawJs };
|
|
126
126
|
return await jsHandler(rawJs, runtimeSet, resolvedOptions);
|
|
127
127
|
}
|
|
128
128
|
async function transformWxml(rawWxml, options) {
|
|
129
129
|
await runtimeState.readyPromise;
|
|
130
|
-
if (!options?.runtimeSet && runtimeSet.size === 0) runtimeSet = await
|
|
130
|
+
if (!options?.runtimeSet && runtimeSet.size === 0) runtimeSet = await require_compiler.ensureRuntimeClassSet(runtimeState, { forceCollect: true });
|
|
131
131
|
return templateHandler(rawWxml, resolveTransformWxmlOptions(options));
|
|
132
132
|
}
|
|
133
133
|
return {
|
|
@@ -138,4 +138,5 @@ function createContext(options = {}) {
|
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
//#endregion
|
|
141
|
+
exports.createCompiler = require_compiler.createCompiler;
|
|
141
142
|
exports.createContext = createContext;
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, UserDefinedOptions } from './types/index.js';
|
|
2
|
+
export { createCompiler } from './core/compiler/index.js';
|
|
3
|
+
export type { Compiler, CompilerCacheReuseState, CompilerGenerateRequest, CompilerGenerateResult, CompilerSnapshot, CompilerSnapshotRoot, CompilerSourcePattern, CompilerTarget, CompilerTemplateTransformOptions, CreateCompilerOptions, CreateCompilerSnapshotRequest, } from './core/compiler/index.js';
|
|
2
4
|
type RuntimeJsTransformOptions = {
|
|
3
5
|
runtimeSet?: Set<string>;
|
|
4
6
|
} & CreateJsHandlerOptions;
|
|
@@ -14,4 +16,3 @@ export declare function createContext(options?: UserDefinedOptions): {
|
|
|
14
16
|
transformWxml: (rawWxml: string, options?: ITemplateHandlerOptions) => Promise<string>;
|
|
15
17
|
transformJs: (rawJs: string, options?: RuntimeJsTransformOptions) => Promise<import("./types/index.js").JsHandlerResult>;
|
|
16
18
|
};
|
|
17
|
-
export {};
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as ensureRuntimeClassSet, n as getCompilerContext, s as shouldSkipJsTransform, t as createCompiler, u as createTailwindRuntimeReadyPromise } from "./compiler-qDa3phIv.js";
|
|
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 });
|
|
@@ -137,4 +137,4 @@ function createContext(options = {}) {
|
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
|
-
export { createContext };
|
|
140
|
+
export { createCompiler, createContext };
|
|
@@ -61,4 +61,6 @@ export declare function isUniAppPackage(pkg: PackageJsonLike): boolean;
|
|
|
61
61
|
export declare function isUniAppXManifest(manifest: UniAppManifestLike | undefined): boolean;
|
|
62
62
|
export declare function detectAppTypeFromPackageJson(pkg: PackageJsonLike): DetectableAppType | undefined;
|
|
63
63
|
export declare function detectAppType(options?: DetectAppTypeOptions): DetectableAppType | undefined;
|
|
64
|
-
export declare
|
|
64
|
+
export declare function resolveImplicitAppTypeFromViteRoot(root: string, options?: {
|
|
65
|
+
searchUp?: boolean;
|
|
66
|
+
}): DetectableAppType | undefined;
|
package/dist/framework.cjs
CHANGED
|
@@ -206,7 +206,12 @@ function detectAppType(options = {}) {
|
|
|
206
206
|
hbuilderxVite: options.hbuilderxVite
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
function resolveImplicitAppTypeFromViteRoot(root, options = {}) {
|
|
210
|
+
return detectAppType({
|
|
211
|
+
root,
|
|
212
|
+
searchUp: options.searchUp
|
|
213
|
+
});
|
|
214
|
+
}
|
|
210
215
|
//#endregion
|
|
211
216
|
exports.detectAppType = detectAppType;
|
|
212
217
|
exports.detectAppTypeFromEnv = detectAppTypeFromEnv;
|
package/dist/framework.js
CHANGED
|
@@ -202,6 +202,11 @@ function detectAppType(options = {}) {
|
|
|
202
202
|
hbuilderxVite: options.hbuilderxVite
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
function resolveImplicitAppTypeFromViteRoot(root, options = {}) {
|
|
206
|
+
return detectAppType({
|
|
207
|
+
root,
|
|
208
|
+
searchUp: options.searchUp
|
|
209
|
+
});
|
|
210
|
+
}
|
|
206
211
|
//#endregion
|
|
207
212
|
export { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform };
|
|
@@ -2981,9 +2981,10 @@ function normalizeTailwindV4CssEntrySources(cssEntries, packageName) {
|
|
|
2981
2981
|
const remainingCssEntries = [];
|
|
2982
2982
|
const cssSources = [];
|
|
2983
2983
|
for (const cssEntry of cssEntries) {
|
|
2984
|
-
const
|
|
2984
|
+
const normalizedCssEntry = cssEntry.replace(/[?#].*$/, "");
|
|
2985
|
+
const file = path.resolve(normalizedCssEntry);
|
|
2985
2986
|
if (!existsSync(file)) {
|
|
2986
|
-
remainingCssEntries.push(
|
|
2987
|
+
remainingCssEntries.push(normalizedCssEntry);
|
|
2987
2988
|
continue;
|
|
2988
2989
|
}
|
|
2989
2990
|
const base = path.dirname(file);
|
|
@@ -2990,9 +2990,10 @@ function normalizeTailwindV4CssEntrySources(cssEntries, packageName) {
|
|
|
2990
2990
|
const remainingCssEntries = [];
|
|
2991
2991
|
const cssSources = [];
|
|
2992
2992
|
for (const cssEntry of cssEntries) {
|
|
2993
|
-
const
|
|
2993
|
+
const normalizedCssEntry = cssEntry.replace(/[?#].*$/, "");
|
|
2994
|
+
const file = node_path.default.resolve(normalizedCssEntry);
|
|
2994
2995
|
if (!(0, node_fs.existsSync)(file)) {
|
|
2995
|
-
remainingCssEntries.push(
|
|
2996
|
+
remainingCssEntries.push(normalizedCssEntry);
|
|
2996
2997
|
continue;
|
|
2997
2998
|
}
|
|
2998
2999
|
const base = node_path.default.dirname(file);
|
package/dist/generator.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_generator = require("./generator-
|
|
2
|
+
const require_generator = require("./generator-CKJ6sj1f.cjs");
|
|
3
3
|
let _tailwindcss_mangle_engine = require("@tailwindcss-mangle/engine");
|
|
4
4
|
exports.createWeappTailwindcssGenerator = require_generator.createWeappTailwindcssGenerator;
|
|
5
5
|
exports.createWeappTailwindcssGeneratorFromRuntime = require_generator.createWeappTailwindcssGeneratorFromRuntime;
|
package/dist/generator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Lt as loadTailwindV4DesignSystem, Mt as transformTailwindV4CssToWeapp, d as resolveTailwindV4SourceFromRuntime, f as resolveTailwindV4SourceFromRuntimeOptions, i as normalizeWeappTailwindcssGeneratorOptions, jt as transformTailwindV4CssByTarget, n as createWeappTailwindcssGeneratorFromRuntime, p as resolveTailwindV4SourceOptionsFromRuntime, r as resolveTailwindSourceFromRuntime, t as createWeappTailwindcssGenerator, u as resolveTailwindV4Source } from "./generator-
|
|
1
|
+
import { Lt as loadTailwindV4DesignSystem, Mt as transformTailwindV4CssToWeapp, d as resolveTailwindV4SourceFromRuntime, f as resolveTailwindV4SourceFromRuntimeOptions, i as normalizeWeappTailwindcssGeneratorOptions, jt as transformTailwindV4CssByTarget, n as createWeappTailwindcssGeneratorFromRuntime, p as resolveTailwindV4SourceOptionsFromRuntime, r as resolveTailwindSourceFromRuntime, t as createWeappTailwindcssGenerator, u as resolveTailwindV4Source } from "./generator-C0m2S4WI.js";
|
|
2
2
|
export { createWeappTailwindcssGenerator, createWeappTailwindcssGeneratorFromRuntime, loadTailwindV4DesignSystem, normalizeWeappTailwindcssGeneratorOptions, resolveTailwindSourceFromRuntime, resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
|
-
const require_generator = require("./generator-
|
|
3
|
-
const
|
|
4
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
5
|
-
const require_wxml = require("./wxml-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const require_tailwindcss = require("./tailwindcss-CexDJBhx.cjs");
|
|
9
|
-
const require_style_options = require("./style-options-DW30H5PV.cjs");
|
|
2
|
+
const require_generator = require("./generator-CKJ6sj1f.cjs");
|
|
3
|
+
const require_tailwindcss = require("./tailwindcss-BGlJ1m1l.cjs");
|
|
4
|
+
const require_v4_generation_core = require("./v4-generation-core-B2sUkkgq.cjs");
|
|
5
|
+
const require_wxml = require("./wxml-o-CUulAM.cjs");
|
|
6
|
+
const require_compiler = require("./compiler-C93NfxSe.cjs");
|
|
7
|
+
const require_hmr_timing = require("./hmr-timing-n7QQKFp7.cjs");
|
|
10
8
|
let node_fs = require("node:fs");
|
|
11
9
|
node_fs = require_rolldown_runtime.__toESM(node_fs, 1);
|
|
12
10
|
let node_path = require("node:path");
|
|
@@ -320,7 +318,7 @@ function createGulpFileTransforms(context) {
|
|
|
320
318
|
async transform() {
|
|
321
319
|
await runtimeState.readyPromise;
|
|
322
320
|
const currentSource = file.contents?.toString() ?? rawSource;
|
|
323
|
-
if (
|
|
321
|
+
if (require_compiler.shouldSkipJsTransform(currentSource, {
|
|
324
322
|
...handlerOptions,
|
|
325
323
|
classNameSet: getRuntimeSet()
|
|
326
324
|
})) return { result: currentSource };
|
|
@@ -372,18 +370,18 @@ const GULP_COMPILATION_SCOPE_CACHE_MAX = 512;
|
|
|
372
370
|
/**
|
|
373
371
|
* @name weapp-tw-gulp
|
|
374
372
|
* @description native framework 的插件组合实现
|
|
375
|
-
* @link https://tw.
|
|
373
|
+
* @link https://tw.weapp.dev/docs/quick-start/frameworks/native
|
|
376
374
|
*/
|
|
377
375
|
function createNativeGulpPlugins(options = {}) {
|
|
378
376
|
const hasInitialTailwindCssRoots = require_generator.hasConfiguredTailwindV4CssRoots(options);
|
|
379
|
-
const opts =
|
|
377
|
+
const opts = require_compiler.getCompilerContext({
|
|
380
378
|
...options,
|
|
381
379
|
__internalDeferMissingCssEntriesWarning: true
|
|
382
380
|
});
|
|
383
381
|
const { cache } = opts;
|
|
384
382
|
const initialTailwindRuntime = opts.tailwindRuntime;
|
|
385
383
|
const refreshTailwindcssRuntime = opts.refreshTailwindcssRuntime;
|
|
386
|
-
const readyPromise =
|
|
384
|
+
const readyPromise = require_compiler.createTailwindRuntimeReadyPromise(initialTailwindRuntime);
|
|
387
385
|
let runtimeSet = /* @__PURE__ */ new Set();
|
|
388
386
|
const runtimeState = {
|
|
389
387
|
tailwindRuntime: initialTailwindRuntime,
|
|
@@ -420,7 +418,7 @@ function createNativeGulpPlugins(options = {}) {
|
|
|
420
418
|
const shouldForceCollect = normalizedOptions.forceCollect === true || runtimeSetDirty;
|
|
421
419
|
const clearCache = normalizedOptions.clearCache === true || runtimeSetDirty;
|
|
422
420
|
if (!forceRefresh && !shouldForceCollect && runtimeSetInitialized) return runtimeSet;
|
|
423
|
-
runtimeSet = await
|
|
421
|
+
runtimeSet = await require_compiler.ensureRuntimeClassSet(runtimeState, {
|
|
424
422
|
forceRefresh,
|
|
425
423
|
forceCollect: shouldForceCollect,
|
|
426
424
|
clearCache,
|
|
@@ -454,7 +452,7 @@ function createNativeGulpPlugins(options = {}) {
|
|
|
454
452
|
}
|
|
455
453
|
async function refreshGulpV4SourceCandidates(forceRefresh = false) {
|
|
456
454
|
const root = opts.tailwindcssBasedir ?? node_process.default.cwd();
|
|
457
|
-
const sourceScan = await
|
|
455
|
+
const sourceScan = await require_tailwindcss.resolveSourceScanEntries(opts, runtimeState.tailwindRuntime, { root });
|
|
458
456
|
const nextSignature = cache.computeHash(JSON.stringify({
|
|
459
457
|
root,
|
|
460
458
|
entries: sourceScan?.entries,
|
|
@@ -515,7 +513,7 @@ function createNativeGulpPlugins(options = {}) {
|
|
|
515
513
|
return cachedDefaultModuleGraphOptions;
|
|
516
514
|
}
|
|
517
515
|
function resolveWxssHandlerOptions(options) {
|
|
518
|
-
const styleHandlerMajorVersion =
|
|
516
|
+
const styleHandlerMajorVersion = require_compiler.normalizeStyleHandlerMajorVersion(runtimeState.tailwindRuntime.majorVersion);
|
|
519
517
|
const majorVersion = styleHandlerMajorVersion ?? "unknown";
|
|
520
518
|
if (!options || Object.keys(options).length === 0) {
|
|
521
519
|
let cached = defaultStyleHandlerOptionsCache.get(majorVersion);
|
|
@@ -678,7 +676,7 @@ function createNativeGulpFrameworkPlugins(options = {}) {
|
|
|
678
676
|
/**
|
|
679
677
|
* @name weapp-tw-gulp
|
|
680
678
|
* @description Gulp 入口直接创建 native framework,具体 stream 组合由 frameworks/native 拥有。
|
|
681
|
-
* @link https://tw.
|
|
679
|
+
* @link https://tw.weapp.dev/docs/quick-start/frameworks/native
|
|
682
680
|
*/
|
|
683
681
|
function createPlugins(options = {}) {
|
|
684
682
|
return createNativeGulpFrameworkPlugins(options);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Pt as getTailwindV4IncrementalGenerateCacheStats, Q as hasTailwindRootDirectives, _ as upsertTailwindV4CssSource, et as normalizeTailwindConfigDirectives, g as removeTailwindV4CssSource, h as hasConfiguredTailwindV4CssRoots, nt as normalizeTailwindSourceForGenerator, vt as prependConfigDirective } from "./generator-
|
|
2
|
-
import { f as resolveSourceScanEntries, l as getRuntimeClassSetSignature } from "./tailwindcss-
|
|
3
|
-
import { $ as AssetEmissionPlan, B as rewriteLocalCssImportRequestsForOutput, E as hasBundlerGeneratedCssMarker, F as processCachedTask, G as createRuntimeCompilationBuildState, H as finalizeCompilerShadowRun, I as createRuntimeClassSetManager, J as updateRuntimeCompilationBuildState, K as removeRuntimeCompilationBuildStateFiles, M as createCssSourceTraceCacheSignature, N as createCssTokenSourceMap, O as stripBundlerGeneratedCssMarkers, Q as getCompilerShadowRunSnapshot, T as createBundlerGeneratedCssMarker, U as buildRuntimeCompilationSnapshot, V as splitLocalCssImports, X as disposeCompilerOwner, Y as createRuntimeAffectingSourceSignature, Z as beginCompilerShadowRun, b as finalizeMiniProgramGeneratorCss, et as getCompilationScopeDependencyRevision, it as createSourceCandidateCollector, j as annotateCssSourceTrace, k as finalizeMiniProgramCssStructure, n as emitHmrTiming, nt as recordCompilationDependencyChanges, r as generateTailwindV4Css, rt as createCompilationDependencyChanges, tt as invalidateCompilationScope } from "./hmr-timing-
|
|
4
|
-
import { m as createDebug } from "./wxml-
|
|
5
|
-
import {
|
|
1
|
+
import { Pt as getTailwindV4IncrementalGenerateCacheStats, Q as hasTailwindRootDirectives, _ as upsertTailwindV4CssSource, et as normalizeTailwindConfigDirectives, g as removeTailwindV4CssSource, h as hasConfiguredTailwindV4CssRoots, nt as normalizeTailwindSourceForGenerator, vt as prependConfigDirective } from "./generator-C0m2S4WI.js";
|
|
2
|
+
import { f as resolveSourceScanEntries, l as getRuntimeClassSetSignature } from "./tailwindcss-BSKl0FTD.js";
|
|
3
|
+
import { $ as AssetEmissionPlan, B as rewriteLocalCssImportRequestsForOutput, E as hasBundlerGeneratedCssMarker, F as processCachedTask, G as createRuntimeCompilationBuildState, H as finalizeCompilerShadowRun, I as createRuntimeClassSetManager, J as updateRuntimeCompilationBuildState, K as removeRuntimeCompilationBuildStateFiles, M as createCssSourceTraceCacheSignature, N as createCssTokenSourceMap, O as stripBundlerGeneratedCssMarkers, Q as getCompilerShadowRunSnapshot, T as createBundlerGeneratedCssMarker, U as buildRuntimeCompilationSnapshot, V as splitLocalCssImports, X as disposeCompilerOwner, Y as createRuntimeAffectingSourceSignature, Z as beginCompilerShadowRun, b as finalizeMiniProgramGeneratorCss, et as getCompilationScopeDependencyRevision, it as createSourceCandidateCollector, j as annotateCssSourceTrace, k as finalizeMiniProgramCssStructure, n as emitHmrTiming, nt as recordCompilationDependencyChanges, r as generateTailwindV4Css, rt as createCompilationDependencyChanges, tt as invalidateCompilationScope } from "./hmr-timing-DgMgwSce.js";
|
|
4
|
+
import { m as createDebug } from "./wxml-CvKyV69S.js";
|
|
5
|
+
import { d as ensureRuntimeClassSet, n as getCompilerContext, r as normalizeStyleHandlerMajorVersion, s as shouldSkipJsTransform, u as createTailwindRuntimeReadyPromise } from "./compiler-qDa3phIv.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import process from "node:process";
|
|
@@ -363,7 +363,7 @@ const GULP_COMPILATION_SCOPE_CACHE_MAX = 512;
|
|
|
363
363
|
/**
|
|
364
364
|
* @name weapp-tw-gulp
|
|
365
365
|
* @description native framework 的插件组合实现
|
|
366
|
-
* @link https://tw.
|
|
366
|
+
* @link https://tw.weapp.dev/docs/quick-start/frameworks/native
|
|
367
367
|
*/
|
|
368
368
|
function createNativeGulpPlugins(options = {}) {
|
|
369
369
|
const hasInitialTailwindCssRoots = hasConfiguredTailwindV4CssRoots(options);
|
|
@@ -669,7 +669,7 @@ function createNativeGulpFrameworkPlugins(options = {}) {
|
|
|
669
669
|
/**
|
|
670
670
|
* @name weapp-tw-gulp
|
|
671
671
|
* @description Gulp 入口直接创建 native framework,具体 stream 组合由 frameworks/native 拥有。
|
|
672
|
-
* @link https://tw.
|
|
672
|
+
* @link https://tw.weapp.dev/docs/quick-start/frameworks/native
|
|
673
673
|
*/
|
|
674
674
|
function createPlugins(options = {}) {
|
|
675
675
|
return createNativeGulpFrameworkPlugins(options);
|
package/dist/gulp.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_gulp = require("./gulp-
|
|
2
|
+
const require_gulp = require("./gulp-CW6JGqVn.cjs");
|
|
3
3
|
exports.WeappTailwindcss = require_gulp.createPlugins;
|
|
4
4
|
exports.createPlugins = require_gulp.createPlugins;
|
|
5
5
|
exports.weappTailwindcss = require_gulp.createPlugins;
|
package/dist/gulp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createPlugins } from "./gulp-
|
|
1
|
+
import { t as createPlugins } from "./gulp-e2iWsmEK.js";
|
|
2
2
|
export { createPlugins as WeappTailwindcss, createPlugins, createPlugins as weappTailwindcss };
|