weapp-tailwindcss 5.0.12 → 5.1.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.en.md +1 -1
- package/README.md +1 -1
- package/dist/auto-Ba6hDrse.mjs +13 -0
- package/dist/auto-DtU6f3X6.js +18 -0
- package/dist/bundlers/shared/css-cleanup.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/directives.d.ts +2 -1
- package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +27 -10
- package/dist/bundlers/shared/generator-css/local-imports.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/source-files.d.ts +1 -0
- package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +6 -0
- package/dist/bundlers/shared/generator-css/source-resolver/config.d.ts +7 -0
- package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +15 -0
- package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +12 -0
- package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +22 -0
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +6 -23
- package/dist/bundlers/shared/generator-css/types.d.ts +15 -1
- package/dist/bundlers/shared/generator-css/user-css.d.ts +5 -1
- package/dist/bundlers/shared/generator-css/validate.d.ts +1 -0
- package/dist/bundlers/shared/run-tasks.d.ts +1 -0
- package/dist/bundlers/shared/v4-generation-core.d.ts +11 -0
- package/dist/bundlers/vite/css-finalizer.d.ts +1 -1
- package/dist/bundlers/vite/css-memory.d.ts +37 -0
- package/dist/bundlers/vite/generate-bundle/bundle-file-names.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/candidates.d.ts +0 -1
- package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +8 -0
- package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +5 -0
- package/dist/bundlers/vite/generate-bundle/css-output.d.ts +9 -7
- package/dist/bundlers/vite/generate-bundle/env-flags.d.ts +6 -0
- package/dist/bundlers/vite/generate-bundle/final-css-assets.d.ts +12 -0
- package/dist/bundlers/vite/generate-bundle/finalize.d.ts +63 -0
- package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +31 -0
- package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +80 -0
- package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +53 -0
- package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/runtime-linked-css.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/scoped-generator.d.ts +21 -0
- package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +5 -2
- package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +30 -0
- package/dist/bundlers/vite/generate-bundle/timing.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/types.d.ts +3 -1
- package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +20 -0
- package/dist/bundlers/vite/generate-bundle/vite-css-cache.d.ts +6 -0
- package/dist/bundlers/vite/generate-bundle.d.ts +4 -1
- package/dist/bundlers/vite/hot-css-modules.d.ts +5 -0
- package/dist/bundlers/vite/incremental-runtime-class-set/escaped-candidates.d.ts +1 -0
- package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +3 -3
- package/dist/bundlers/vite/map-cache.d.ts +2 -0
- package/dist/bundlers/vite/processed-css-assets.d.ts +16 -0
- package/dist/bundlers/vite/resolve-app-type.d.ts +1 -2
- package/dist/bundlers/vite/rewrite-css-imports.d.ts +1 -0
- package/dist/bundlers/vite/runtime-class-set.d.ts +5 -5
- package/dist/bundlers/vite/source-candidate-scan-signature.d.ts +13 -0
- package/dist/bundlers/vite/source-candidates/script.d.ts +1 -7
- package/dist/bundlers/vite/source-candidates.d.ts +12 -2
- package/dist/bundlers/vite/source-scan/css-entries.d.ts +3 -6
- package/dist/bundlers/vite/source-scan.d.ts +3 -3
- package/dist/bundlers/vite/uni-app-x-css-options.d.ts +1 -1
- package/dist/bundlers/vite/utils.d.ts +1 -0
- package/dist/bundlers/vite/weapp-vite-config.d.ts +3 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/shared.d.ts +24 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +48 -10
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +28 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +5 -1
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +15 -1
- package/dist/bundlers/webpack/shared/css-loader-runtime.d.ts +1 -0
- package/dist/cache/index.d.ts +1 -0
- package/dist/cli/mount-options.d.ts +2 -2
- package/dist/cli.js +126 -439
- package/dist/cli.mjs +121 -434
- package/dist/context/index.d.ts +3 -3
- package/dist/context/style-options.d.ts +4 -1
- package/dist/context/tailwindcss.d.ts +1 -1
- package/dist/{precheck-30zNPRlI.js → context-BHxLe743.js} +484 -175
- package/dist/{precheck-CsFr1q2l.mjs → context-Mbzkek1q.mjs} +461 -159
- package/dist/core.js +15 -12
- package/dist/core.mjs +10 -7
- package/dist/css-macro.js +2 -2
- package/dist/css-macro.mjs +2 -2
- package/dist/{defaults-Boc26eel.js → defaults-CVcKbXBG.js} +6 -50
- package/dist/{defaults-DH0ZQRhy.mjs → defaults-ZElj1zKc.mjs} +7 -45
- package/dist/defaults.d.ts +1 -7
- package/dist/defaults.js +1 -2
- package/dist/defaults.mjs +2 -2
- package/dist/framework/index.d.ts +59 -0
- package/dist/framework.d.ts +1 -0
- package/dist/framework.js +198 -0
- package/dist/framework.mjs +180 -0
- package/dist/generator/index.d.ts +6 -7
- package/dist/generator/options.d.ts +3 -3
- package/dist/generator/types.d.ts +9 -10
- package/dist/generator-9rUz4Hcb.js +170 -0
- package/dist/generator-Dc4qaPmT.mjs +123 -0
- package/dist/generator.js +10 -16
- package/dist/generator.mjs +3 -3
- package/dist/{gulp-CxGZU0-v.js → gulp-B_sdP6dx.js} +80 -92
- package/dist/{gulp-BfZpaYSQ.mjs → gulp-uM36oIJs.mjs} +73 -85
- package/dist/gulp.js +1 -1
- package/dist/gulp.mjs +1 -1
- package/dist/{hmr-timing-DNjF8bWA.mjs → hmr-timing-BXMLsF4b.mjs} +1289 -909
- package/dist/{hmr-timing-DFR51wgo.js → hmr-timing-CogqkFaF.js} +1397 -939
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -4
- package/dist/index.mjs +6 -5
- package/dist/js/fast-path/oxc.d.ts +4 -0
- package/dist/js/precheck.d.ts +1 -0
- package/dist/postcss.js +3 -4
- package/dist/postcss.mjs +2 -3
- package/dist/presets.js +10 -20
- package/dist/presets.mjs +9 -19
- package/dist/runtime-branch/create-branch.d.ts +2 -0
- package/dist/runtime-branch/generator-target-env.d.ts +4 -0
- package/dist/runtime-branch/index.d.ts +6 -0
- package/dist/runtime-branch/mini-program.d.ts +2 -0
- package/dist/runtime-branch/native-app.d.ts +2 -0
- package/dist/runtime-branch/platform.d.ts +6 -0
- package/dist/runtime-branch/tailwind-version.d.ts +2 -0
- package/dist/runtime-branch/types.d.ts +37 -0
- package/dist/runtime-branch/web.d.ts +2 -0
- package/dist/runtime-branch.d.ts +1 -0
- package/dist/{bundle-state-DU2ATDhw.js → source-candidate-scan-signature-2ybpptAK.js} +262 -20
- package/dist/{bundle-state-BxMNKjBV.mjs → source-candidate-scan-signature-Cvb5z1ha.mjs} +187 -17
- package/dist/tailwindcss/candidates.d.ts +7 -0
- package/dist/tailwindcss/index.d.ts +2 -2
- package/dist/tailwindcss/runtime/cache.d.ts +6 -6
- package/dist/tailwindcss/runtime-factory.d.ts +12 -0
- package/dist/tailwindcss/runtime-options.d.ts +8 -0
- package/dist/tailwindcss/runtime-types.d.ts +86 -0
- package/dist/tailwindcss/runtime.d.ts +6 -6
- package/dist/tailwindcss/source-scan.d.ts +1 -1
- package/dist/tailwindcss/targets.d.ts +2 -2
- package/dist/tailwindcss/v4/config.d.ts +3 -3
- package/dist/tailwindcss/v4/css-entries.d.ts +1 -0
- package/dist/tailwindcss/v4/css-sources.d.ts +4 -2
- package/dist/tailwindcss/v4/index.d.ts +1 -1
- package/dist/tailwindcss/v4/multi-runtime.d.ts +2 -0
- package/dist/tailwindcss/v4/runtime-factory.d.ts +15 -0
- package/dist/tailwindcss/v4/runtime-options.d.ts +2 -0
- package/dist/tailwindcss/v4-engine/design-system.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/css-compat.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/rpx-candidates.d.ts +3 -3
- package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator.d.ts +10 -3
- package/dist/tailwindcss/v4-engine/index.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/miniprogram.d.ts +7 -1
- package/dist/tailwindcss/v4-engine/source.d.ts +23 -6
- package/dist/tailwindcss/v4-engine/types.d.ts +8 -9
- package/dist/tailwindcss/version.d.ts +1 -1
- package/dist/tailwindcss-DHIYcqXT.js +1523 -0
- package/dist/tailwindcss-wyUHrfil.mjs +1418 -0
- package/dist/{transform-CaVEBOuR.js → transform-CQVOgmzM.js} +45 -37
- package/dist/{transform-Cju08-aJ.mjs → transform-tExdt40m.mjs} +30 -22
- package/dist/typedoc.export.d.ts +1 -1
- package/dist/types/index.d.ts +16 -17
- package/dist/types/shared.d.ts +1 -1
- package/dist/types/{typedoc-tailwindcss-patch.d.ts → typedoc-tailwindcss-runtime.d.ts} +4 -10
- package/dist/types/user-defined-options/general.d.ts +8 -4
- package/dist/types/user-defined-options/important.d.ts +2 -2
- package/dist/uni-app-x/style-asset.d.ts +1 -0
- package/dist/{utils-Dolmt8EO.js → utils-BCa37Wqj.js} +2 -17
- package/dist/{utils-DsaS975I.mjs → utils-DodxWHGz.mjs} +2 -17
- package/dist/v4-engine-CF9zt4Cw.mjs +2396 -0
- package/dist/v4-engine-D4ubP7N5.js +2778 -0
- package/dist/{vite-BBGOjh9e.js → vite-CP0ylSxZ.js} +2887 -1683
- package/dist/{vite-CS5DE-HD.mjs → vite-CPO83EhA.mjs} +2753 -1548
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +5741 -4396
- package/dist/weapp-tw-runtime-classset-loader.js +36 -0
- package/dist/webpack-Bsek8VhR.js +2094 -0
- package/dist/webpack-BzqhJ8yK.mjs +2082 -0
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +11 -7
- package/dist/auto-CTp6wE5a.js +0 -33
- package/dist/auto-Cl8_hsG6.mjs +0 -22
- package/dist/bundlers/vite/incremental-runtime-class-set/v3-candidates.d.ts +0 -13
- package/dist/bundlers/vite/source-candidates/tailwind-v3-default-extractor.d.ts +0 -1
- package/dist/context/tailwindcss/rax.d.ts +0 -2
- package/dist/generator-Cb1Zp3Al.js +0 -92
- package/dist/generator-mvNFUvns.mjs +0 -67
- package/dist/tailwindcss/patcher-options.d.ts +0 -8
- package/dist/tailwindcss/patcher.d.ts +0 -12
- package/dist/tailwindcss/runtime-patch.d.ts +0 -5
- package/dist/tailwindcss/v3-engine/generator/cache-key.d.ts +0 -3
- package/dist/tailwindcss/v3-engine/generator/content.d.ts +0 -10
- package/dist/tailwindcss/v3-engine/generator/runtime-ready.d.ts +0 -2
- package/dist/tailwindcss/v3-engine/generator.d.ts +0 -19
- package/dist/tailwindcss/v3-engine/index.d.ts +0 -4
- package/dist/tailwindcss/v3-engine/miniprogram.d.ts +0 -4
- package/dist/tailwindcss/v3-engine/source.d.ts +0 -5
- package/dist/tailwindcss/v3-engine/types.d.ts +0 -61
- package/dist/tailwindcss/v4/multi-patcher.d.ts +0 -2
- package/dist/tailwindcss/v4/patcher-options.d.ts +0 -2
- package/dist/tailwindcss/v4/patcher.d.ts +0 -15
- package/dist/tailwindcss/v4-engine/tailwind-v3-compatibility.d.ts +0 -1
- package/dist/tailwindcss/v4-engine/tailwind-v3-default-colors.d.ts +0 -1
- package/dist/tailwindcss-CK84uGBp.mjs +0 -556
- package/dist/tailwindcss-Clpkz1oR.js +0 -613
- package/dist/v3-engine-CQE5JJNZ.js +0 -4639
- package/dist/v3-engine-DKBaKWGL.mjs +0 -4231
- package/dist/webpack-DIWrcpRo.js +0 -1066
- package/dist/webpack-SPcri_D8.mjs +0 -1054
- /package/dist/tailwindcss/{patcher-resolve.d.ts → runtime-resolve.d.ts} +0 -0
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
import type { Compiler, sources as WebpackSources } from 'webpack';
|
|
2
|
+
import type { BundleBuildState, BundleSnapshot } from '../../../vite/bundle-state';
|
|
2
3
|
import type { BundleRuntimeClassSetManager } from '../../../vite/incremental-runtime-class-set';
|
|
4
|
+
import type { WebpackGeneratedCssRegistration } from '../../loaders/runtime-registry';
|
|
3
5
|
import type { AppType, InternalUserDefinedOptions } from '../../../../types';
|
|
4
6
|
export interface SetupWebpackV5ProcessAssetsHookOptions {
|
|
5
7
|
compiler: Compiler;
|
|
6
8
|
options: InternalUserDefinedOptions;
|
|
7
9
|
appType?: AppType | undefined;
|
|
8
10
|
runtimeState: {
|
|
9
|
-
|
|
11
|
+
tailwindRuntime: InternalUserDefinedOptions['tailwindRuntime'];
|
|
10
12
|
readyPromise: Promise<void>;
|
|
11
13
|
};
|
|
12
14
|
getRuntimeRefreshRequirement: () => boolean;
|
|
13
15
|
refreshRuntimeMetadata: (force: boolean) => Promise<void>;
|
|
14
|
-
|
|
16
|
+
isKnownWebpackProcessedCssAsset?: ((file: string, metadata?: {
|
|
17
|
+
isMainCssChunk?: boolean | undefined;
|
|
18
|
+
}) => boolean) | undefined;
|
|
19
|
+
isWebpackProcessedCssAsset?: ((file: string, rawSource: string, metadata?: {
|
|
20
|
+
isMainCssChunk?: boolean | undefined;
|
|
21
|
+
}) => boolean) | undefined;
|
|
15
22
|
consumeRuntimeRefreshRequirement: () => void;
|
|
16
23
|
isWatchMode?: (() => boolean) | undefined;
|
|
24
|
+
getWatchChangedFiles?: (() => Iterable<string>) | undefined;
|
|
17
25
|
runtimeClassSetManager?: BundleRuntimeClassSetManager | undefined;
|
|
26
|
+
getWebpackCssSources?: (() => Iterable<[string, {
|
|
27
|
+
css: string | undefined;
|
|
28
|
+
processed?: boolean | undefined;
|
|
29
|
+
}]>) | undefined;
|
|
30
|
+
getWebpackGeneratedCssSources?: (() => Iterable<[string, WebpackGeneratedCssRegistration]>) | undefined;
|
|
31
|
+
pruneWebpackCssSources?: ((activeSourceFiles: ReadonlySet<string>, options?: {
|
|
32
|
+
watchMode?: boolean | undefined;
|
|
33
|
+
}) => void) | undefined;
|
|
34
|
+
prepareWebpackCssSources?: ((activeAssetResources?: ReadonlySet<string>) => ReadonlySet<string>) | undefined;
|
|
18
35
|
debug: (format: string, ...args: unknown[]) => void;
|
|
19
36
|
}
|
|
20
37
|
export type WebpackSourceLike = string | WebpackSources.Source;
|
|
@@ -26,15 +43,35 @@ interface WebpackAssetCompilationLike {
|
|
|
26
43
|
} | undefined;
|
|
27
44
|
updateAsset: Compiler['webpack']['Compilation']['prototype']['updateAsset'];
|
|
28
45
|
}
|
|
29
|
-
export declare function
|
|
46
|
+
export declare function buildWebpackBundleSnapshot(assets: Record<string, {
|
|
30
47
|
source: () => unknown;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
}>, opts: InternalUserDefinedOptions, state: BundleBuildState, compilation?: WebpackAssetCompilationLike | undefined): {
|
|
49
|
+
entries: import("../../../vite/bundle-state").BundleStateEntry[];
|
|
50
|
+
jsEntries: Map<any, any>;
|
|
51
|
+
sourceHashByFile: Map<string, string>;
|
|
52
|
+
runtimeAffectingSignatureByFile: Map<string, string>;
|
|
53
|
+
runtimeAffectingHashByFile: Map<string, string>;
|
|
54
|
+
hasOmittedKnownFiles: false;
|
|
55
|
+
changedByType: {
|
|
56
|
+
html: Set<string>;
|
|
57
|
+
js: Set<string>;
|
|
58
|
+
css: Set<string>;
|
|
59
|
+
other: Set<string>;
|
|
36
60
|
};
|
|
61
|
+
runtimeAffectingChangedByType: {
|
|
62
|
+
html: Set<string>;
|
|
63
|
+
js: Set<string>;
|
|
64
|
+
css: Set<string>;
|
|
65
|
+
other: Set<string>;
|
|
66
|
+
};
|
|
67
|
+
processFiles: {
|
|
68
|
+
html: Set<string>;
|
|
69
|
+
js: Set<string>;
|
|
70
|
+
css: Set<string>;
|
|
71
|
+
};
|
|
72
|
+
linkedImpactsByEntry: Map<any, any>;
|
|
37
73
|
};
|
|
74
|
+
export declare function releaseWebpackBundleSnapshotSources(snapshot: BundleSnapshot): void;
|
|
38
75
|
export declare function stringifyWebpackSource(source: unknown): string;
|
|
39
76
|
export declare function createWebpackAssetUpdater(options: {
|
|
40
77
|
compilation: WebpackAssetCompilationLike;
|
|
@@ -43,8 +80,9 @@ export declare function createWebpackAssetUpdater(options: {
|
|
|
43
80
|
debug: (format: string, ...args: unknown[]) => void;
|
|
44
81
|
}): {
|
|
45
82
|
getCurrentAssetSource: (file: string) => string | undefined;
|
|
46
|
-
updateAssetIfChanged: (file: string, source: WebpackSourceLike, { notifyUpdate }?: {
|
|
47
|
-
|
|
83
|
+
updateAssetIfChanged: (file: string, source: WebpackSourceLike, { compare, notifyUpdate, }?: {
|
|
84
|
+
compare?: boolean | undefined;
|
|
85
|
+
notifyUpdate?: boolean | undefined;
|
|
48
86
|
}) => boolean;
|
|
49
87
|
};
|
|
50
88
|
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { SourceCandidateStore } from '../../../vite/source-candidates';
|
|
2
|
+
import type { ResolvedViteSourceScan } from '../../../vite/source-scan';
|
|
3
|
+
export interface WebpackSourceCandidateCacheRecord {
|
|
4
|
+
getSourceCandidatesForEntries: SourceCandidateStore['valuesForEntries'];
|
|
5
|
+
signatureHash: string;
|
|
6
|
+
tokenSources: ReturnType<SourceCandidateStore['sourcesForEntries']>;
|
|
7
|
+
}
|
|
8
|
+
export interface WebpackSourceCandidateScanMemoryStats {
|
|
9
|
+
entries: number;
|
|
10
|
+
files: number;
|
|
11
|
+
lastHit: boolean;
|
|
12
|
+
signatureHash?: string | undefined;
|
|
13
|
+
snapshots: number;
|
|
14
|
+
}
|
|
15
|
+
interface ResolveWebpackSourceCandidateCacheOptions {
|
|
16
|
+
changedFiles?: Iterable<string> | undefined;
|
|
17
|
+
collector: SourceCandidateStore;
|
|
18
|
+
outDir: string;
|
|
19
|
+
root: string;
|
|
20
|
+
sourceScan: ResolvedViteSourceScan | undefined;
|
|
21
|
+
watchMode: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function createWebpackSourceCandidateScanCache(): {
|
|
24
|
+
getMemoryStats: () => WebpackSourceCandidateScanMemoryStats;
|
|
25
|
+
resolve: ({ changedFiles, collector, outDir, root, sourceScan, watchMode, }: ResolveWebpackSourceCandidateCacheOptions) => Promise<WebpackSourceCandidateCacheRecord>;
|
|
26
|
+
};
|
|
27
|
+
export type WebpackSourceCandidateScanCache = ReturnType<typeof createWebpackSourceCandidateScanCache>;
|
|
28
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { TailwindV4CssSource } from 'tailwindcss-
|
|
1
|
+
import type { TailwindV4CssSource } from '@tailwindcss-mangle/engine';
|
|
2
2
|
import type { Compiler } from 'webpack';
|
|
3
|
+
import type { WebpackCssSourceRegistration, WebpackGeneratedCssRegistration } from '../loaders/runtime-registry';
|
|
3
4
|
import type { TailwindRuntimeState } from '../../../tailwindcss/runtime';
|
|
4
5
|
import type { AppType, InternalUserDefinedOptions } from '../../../types';
|
|
5
6
|
interface SetupWebpackV5LoadersOptions {
|
|
@@ -14,6 +15,9 @@ interface SetupWebpackV5LoadersOptions {
|
|
|
14
15
|
getClassSetInLoader: () => Promise<void>;
|
|
15
16
|
getRuntimeSetInLoader: () => Promise<Set<string>>;
|
|
16
17
|
markWebpackProcessedCssSource?: ((file: string) => void) | undefined;
|
|
18
|
+
markWebpackCssSourceModule?: ((file: string) => void) | undefined;
|
|
19
|
+
registerWebpackGeneratedCss?: ((source: WebpackGeneratedCssRegistration) => void) | undefined;
|
|
20
|
+
registerWebpackCssSourceFile?: ((source: WebpackCssSourceRegistration) => void) | undefined;
|
|
17
21
|
getRuntimeWatchDependencies: () => {
|
|
18
22
|
files: ReadonlySet<string>;
|
|
19
23
|
contexts: ReadonlySet<string>;
|
|
@@ -1,14 +1,26 @@
|
|
|
1
|
-
import type { TailwindV4CssSource } from 'tailwindcss-
|
|
1
|
+
import type { TailwindV4CssSource } from '@tailwindcss-mangle/engine';
|
|
2
2
|
import type { TailwindRuntimeState } from '../../../tailwindcss/runtime';
|
|
3
3
|
import type { AppType, InternalUserDefinedOptions } from '../../../types';
|
|
4
4
|
export interface WebpackRuntimeClassSetLoaderOptions {
|
|
5
5
|
getClassSet?: () => void | Promise<void>;
|
|
6
6
|
getWatchDependencies?: () => RuntimeLoaderWatchDependencies | Promise<RuntimeLoaderWatchDependencies | void> | void;
|
|
7
|
+
registerCssSourceFile?: (source: WebpackCssSourceRegistration) => void;
|
|
7
8
|
}
|
|
8
9
|
export interface RuntimeLoaderWatchDependencies {
|
|
9
10
|
files?: Iterable<string>;
|
|
10
11
|
contexts?: Iterable<string>;
|
|
11
12
|
}
|
|
13
|
+
export interface WebpackCssSourceRegistration {
|
|
14
|
+
css?: string | undefined;
|
|
15
|
+
file: string;
|
|
16
|
+
processed?: boolean | undefined;
|
|
17
|
+
}
|
|
18
|
+
export interface WebpackGeneratedCssRegistration {
|
|
19
|
+
classSet: Set<string>;
|
|
20
|
+
css: string;
|
|
21
|
+
dependencies: string[];
|
|
22
|
+
file: string;
|
|
23
|
+
}
|
|
12
24
|
export interface WebpackCssImportRewriteRuntimeOptions {
|
|
13
25
|
pkgDir: string;
|
|
14
26
|
appType?: AppType;
|
|
@@ -17,6 +29,8 @@ export interface WebpackCssImportRewriteRuntimeOptions {
|
|
|
17
29
|
registerCssSource?: (source: TailwindV4CssSource) => Promise<void> | void;
|
|
18
30
|
getRuntimeSet?: () => Promise<Set<string>> | Set<string>;
|
|
19
31
|
markGeneratedCssSource?: (file: string) => void;
|
|
32
|
+
registerGeneratedCss?: (source: WebpackGeneratedCssRegistration) => void;
|
|
33
|
+
registerCssSourceFile?: (source: WebpackCssSourceRegistration) => void;
|
|
20
34
|
}
|
|
21
35
|
export interface WebpackCssImportRewriteLoaderOptions {
|
|
22
36
|
tailwindcssImportRewrite?: WebpackCssImportRewriteRuntimeOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isWebpackCssLoaderRuntimeSource(source: string): boolean;
|
package/dist/cache/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export interface ICreateCacheReturnType {
|
|
|
35
35
|
cacheKeys?: Iterable<string> | undefined;
|
|
36
36
|
hashKeys?: Iterable<HashMapKey> | undefined;
|
|
37
37
|
}) => void;
|
|
38
|
+
pruneHashKeys?: (hashKeys: Iterable<HashMapKey>) => void;
|
|
38
39
|
process: <T extends CacheValue>(options: CacheProcessOptions<T>) => Promise<T>;
|
|
39
40
|
}
|
|
40
41
|
declare function createCache(options?: boolean): ICreateCacheReturnType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TailwindcssPatchCliMountOptions } from 'tailwindcss-patch';
|
|
2
1
|
export declare const PATCH_COMMAND_OBSOLETE_NOTICE = "\u63D0\u793A\uFF1Aweapp-tailwindcss@5 \u5DF2\u7531\u6784\u5EFA\u8FD0\u884C\u65F6\u63A5\u7BA1 Tailwind CSS \u5904\u7406\uFF0Cweapp-tw patch \u5DF2\u65E0\u9700\u6267\u884C\uFF1B\u8BF7\u79FB\u9664 package.json \u4E2D\u7684 postinstall \u94A9\u5B50\u3002";
|
|
2
|
+
export declare const obsoletePatchCommands: readonly ["extract", "tokens", "init", "migrate", "restore", "validate"];
|
|
3
3
|
export declare function logPatchCommandObsoleteNotice(): void;
|
|
4
|
-
export declare
|
|
4
|
+
export declare function logObsoletePatchCommand(command: string): void;
|