weapp-tailwindcss 5.0.0-next.3 → 5.0.0-next.30
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 +6 -7
- package/bin/weapp-tailwindcss.js +1 -21
- package/dist/auto-TH1jG2UW.js +115 -0
- package/dist/auto-XyKTOP7B.mjs +78 -0
- package/dist/bundle-state-Bi-cQua6.mjs +413 -0
- package/dist/bundle-state-Ct_8GcSR.js +529 -0
- package/dist/bundlers/shared/cache.d.ts +6 -6
- package/dist/bundlers/shared/css-cleanup/at-rules.d.ts +1 -0
- package/dist/bundlers/shared/css-cleanup.d.ts +1 -4
- package/dist/bundlers/shared/css-imports.d.ts +3 -3
- package/dist/bundlers/shared/generated-css-marker.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/config-directive.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/directives.d.ts +20 -0
- package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +7 -0
- package/dist/bundlers/shared/generator-css/legacy-selectors.d.ts +5 -0
- package/dist/bundlers/shared/generator-css/legacy-units.d.ts +1 -0
- package/dist/bundlers/shared/generator-css/markers.d.ts +28 -0
- package/dist/bundlers/shared/generator-css/source-files.d.ts +14 -0
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +24 -0
- package/dist/bundlers/shared/generator-css.d.ts +16 -22
- package/dist/bundlers/shared/hmr-timing.d.ts +22 -0
- package/dist/bundlers/shared/style-requests.d.ts +2 -0
- package/dist/bundlers/vite/bundle-state.d.ts +1 -0
- package/dist/bundlers/vite/css-finalizer.d.ts +7 -1
- package/dist/bundlers/vite/generate-bundle/candidates.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +24 -0
- package/dist/bundlers/vite/generate-bundle/css-share-scope.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/dirty-state.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/js-entries.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/js-handler-options.d.ts +8 -0
- package/dist/bundlers/vite/generate-bundle/js-linking.d.ts +13 -0
- package/dist/bundlers/vite/generate-bundle/metrics.d.ts +17 -0
- package/dist/bundlers/vite/generate-bundle/process-plan.d.ts +9 -0
- package/dist/bundlers/vite/generate-bundle/rollup-assets.d.ts +7 -0
- package/dist/bundlers/vite/generate-bundle/signatures.d.ts +8 -0
- package/dist/bundlers/vite/generate-bundle.d.ts +14 -2
- package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +5 -1
- package/dist/bundlers/vite/index.d.ts +5 -2
- package/dist/bundlers/vite/official-tailwind-plugins.d.ts +5 -0
- package/dist/bundlers/vite/postcss-config.d.ts +6 -0
- package/dist/bundlers/vite/processed-css-assets.d.ts +32 -0
- package/dist/bundlers/vite/rewrite-css-imports.d.ts +8 -3
- package/dist/bundlers/vite/runtime-class-set.d.ts +25 -0
- package/dist/bundlers/vite/serve-css-generation.d.ts +11 -0
- package/dist/bundlers/vite/source-candidates.d.ts +19 -1
- package/dist/bundlers/vite/source-scan.d.ts +26 -0
- package/dist/bundlers/vite/static-config-content.d.ts +5 -0
- package/dist/bundlers/vite/tailwind-basedir.d.ts +1 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/shared.d.ts +6 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +6 -2
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +9 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +2 -1
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +31 -0
- package/dist/bundlers/webpack/loaders/weapp-tw-css-import-rewrite-loader.d.ts +2 -6
- package/dist/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.d.ts +3 -7
- package/dist/cache/index.d.ts +6 -6
- package/dist/{chunk-8l464Juk.js → chunk-C5U5_Hdc.js} +14 -0
- package/dist/cli/context.d.ts +1 -14
- package/dist/cli/doctor/types.d.ts +11 -11
- package/dist/cli/helpers.d.ts +1 -2
- package/dist/cli/mount-options.d.ts +2 -0
- package/dist/cli/types.d.ts +0 -2
- package/dist/cli/vscode-entry.d.ts +3 -3
- package/dist/cli.js +758 -604
- package/dist/cli.mjs +766 -612
- package/dist/constants.d.ts +1 -2
- package/dist/context/runtime-package-replacements.d.ts +2 -0
- package/dist/context/style-options.d.ts +3 -0
- package/dist/core.js +12 -20
- package/dist/core.mjs +8 -14
- package/dist/css-macro/auto.d.ts +10 -0
- package/dist/css-macro/constants.d.ts +5 -2
- package/dist/css-macro/postcss.d.ts +1 -0
- package/dist/css-macro/postcss.js +7 -46
- package/dist/css-macro/postcss.mjs +2 -46
- package/dist/css-macro.d.ts +1 -0
- package/dist/css-macro.js +16 -7
- package/dist/css-macro.mjs +15 -6
- package/dist/defaults-8xrgzxFY.mjs +151 -0
- package/dist/defaults-zKUH2mDe.js +193 -0
- package/dist/defaults.d.ts +15 -1
- package/dist/defaults.js +6 -131
- package/dist/defaults.mjs +2 -129
- package/dist/escape.js +10 -2
- package/dist/escape.mjs +10 -2
- package/dist/generator/index.d.ts +1 -1
- package/dist/generator/options.d.ts +9 -8
- package/dist/generator/types.d.ts +3 -3
- package/dist/generator-CrU-Ghc1.js +90 -0
- package/dist/generator-Qw-tZ0Z2.mjs +65 -0
- package/dist/generator.js +12 -12
- package/dist/generator.mjs +2 -1
- package/dist/gulp.js +187 -48
- package/dist/gulp.mjs +180 -41
- package/dist/incremental-runtime-class-set-BdZHkoTs.mjs +1975 -0
- package/dist/incremental-runtime-class-set-BxvZONkv.js +2038 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +19 -7
- package/dist/index.mjs +6 -5
- package/dist/js/babel/cache-options.d.ts +3 -0
- package/dist/js/babel/parse.d.ts +7 -4
- package/dist/js/index.d.ts +1 -0
- package/dist/js/literal-transform.d.ts +2 -0
- package/dist/js/precheck.d.ts +2 -2
- package/dist/logger-BNzxZbZj.mjs +2 -0
- package/dist/logger-TlKT3xmR.js +1 -0
- package/dist/postcss/config-directive.d.ts +1 -0
- package/dist/postcss/context.d.ts +9 -0
- package/dist/postcss/source-files.d.ts +8 -0
- package/dist/postcss/tailwind-version.d.ts +3 -0
- package/dist/postcss-C6zOQqlL.mjs +228 -0
- package/dist/postcss-C7BMYpEF.mjs +169 -0
- package/dist/postcss-CiYLsqZn.js +192 -0
- package/dist/postcss-DAWf9D3C.js +237 -0
- package/dist/postcss-html-transform.js +1 -1
- package/dist/postcss.d.ts +2 -2
- package/dist/postcss.js +3 -276
- package/dist/postcss.mjs +1 -269
- package/dist/precheck-D7K12zeX.mjs +4716 -0
- package/dist/precheck-D7gJSmJz.js +4842 -0
- package/dist/presets/index.d.ts +1 -0
- package/dist/presets/uni-app-x.d.ts +1 -0
- package/dist/presets.js +29 -13
- package/dist/presets.mjs +25 -11
- package/dist/reset.d.ts +1 -0
- package/dist/reset.js +1 -1
- package/dist/runtime-registry-DpcR3IHI.js +5496 -0
- package/dist/shared/mpx.d.ts +1 -0
- package/dist/source-candidates-CX2ozpKM.mjs +322 -0
- package/dist/source-candidates-DNM8iwXW.js +335 -0
- package/dist/tailwindcss/miniprogram.d.ts +1 -1
- package/dist/tailwindcss/patcher-options.d.ts +3 -51
- package/dist/tailwindcss/patcher.d.ts +1 -2
- package/dist/tailwindcss/remove-unsupported-css.d.ts +1 -2
- package/dist/tailwindcss/runtime/cache.d.ts +4 -3
- package/dist/tailwindcss/runtime-patch.d.ts +5 -0
- package/dist/tailwindcss/runtime.d.ts +11 -12
- package/dist/tailwindcss/source-scan.d.ts +35 -0
- package/dist/tailwindcss/targets.d.ts +1 -5
- package/dist/tailwindcss/v3-engine/types.d.ts +17 -14
- package/dist/tailwindcss/v4/css-entries.d.ts +2 -2
- package/dist/tailwindcss/v4/css-sources.d.ts +5 -0
- package/dist/tailwindcss/v4/patcher-options.d.ts +1 -23
- package/dist/tailwindcss/v4/patcher.d.ts +1 -0
- package/dist/tailwindcss/v4-engine/source.d.ts +2 -2
- package/dist/tailwindcss/v4-engine/types.d.ts +17 -5
- package/dist/tailwindcss/version.d.ts +4 -0
- package/dist/tailwindcss-B-e2RiXr.js +642 -0
- package/dist/tailwindcss-C7dJHZ0G.mjs +591 -0
- package/dist/typedoc.export.d.ts +0 -2
- package/dist/types/index.d.ts +52 -49
- package/dist/types/shared.d.ts +6 -0
- package/dist/types/user-defined-options/general.d.ts +25 -24
- package/dist/types/user-defined-options/important.d.ts +33 -28
- package/dist/types/user-defined-options/lifecycle.d.ts +4 -4
- package/dist/types/user-defined-options/matcher.d.ts +6 -6
- package/dist/uni-app-x/vite.d.ts +1 -1
- package/dist/unocss/index.d.ts +2 -0
- package/dist/utils/disabled.d.ts +2 -3
- package/dist/utils/object.d.ts +9 -0
- package/dist/utils/options.d.ts +2 -0
- package/dist/utils/regex.d.ts +1 -0
- package/dist/{utils-DmC9_In3.js → utils-D7Ygohep.js} +2 -2
- package/dist/{utils-7DUGTFED.mjs → utils-DsaS975I.mjs} +1 -1
- package/dist/v3-engine-CHItlVq5.js +3616 -0
- package/dist/v3-engine-DcvCCHfs.mjs +3321 -0
- package/dist/vite-C65DdWEj.js +24439 -0
- package/dist/vite-rmL1rsA_.mjs +24425 -0
- package/dist/vite.d.ts +1 -2
- package/dist/vite.js +3 -4
- package/dist/vite.mjs +2 -2
- package/dist/weapp-tw-css-import-rewrite-loader.js +5032 -18
- package/dist/weapp-tw-runtime-classset-loader.js +32 -9
- package/dist/webpack-BU2Er4qg.mjs +841 -0
- package/dist/webpack-CqGvjvSQ.js +851 -0
- package/dist/webpack.d.ts +1 -3
- package/dist/webpack.js +3 -4
- package/dist/webpack.mjs +2 -2
- package/package.json +38 -48
- package/dist/bundlers/shared/generator-candidates.d.ts +0 -5
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4-assets.d.ts +0 -14
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4-loaders.d.ts +0 -15
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4.d.ts +0 -9
- package/dist/bundlers/webpack/shared/css-imports.d.ts +0 -6
- package/dist/cli/config.d.ts +0 -5
- package/dist/cli/helpers/patch-cwd.d.ts +0 -1
- package/dist/cli/mount-options/patch-status.d.ts +0 -2
- package/dist/cli/patch-options.d.ts +0 -6
- package/dist/cli/tokens.d.ts +0 -4
- package/dist/cli/workspace/package-dirs.d.ts +0 -3
- package/dist/cli/workspace/patch-package.d.ts +0 -3
- package/dist/cli/workspace/patch-utils.d.ts +0 -3
- package/dist/cli/workspace/types.d.ts +0 -11
- package/dist/cli/workspace/workspace-globs.d.ts +0 -2
- package/dist/cli/workspace/workspace-io.d.ts +0 -1
- package/dist/cli/workspace/workspace-lock.d.ts +0 -1
- package/dist/cli/workspace.d.ts +0 -2
- package/dist/constants-B-_T5UnW.mjs +0 -44
- package/dist/constants-p1dyh1x1.js +0 -73
- package/dist/css-imports-BbrbluP9.js +0 -177
- package/dist/css-imports-CSdPq_Sc.mjs +0 -128
- package/dist/experimental/index.d.ts +0 -2
- package/dist/experimental/oxc/ast-utils.d.ts +0 -30
- package/dist/experimental/oxc/index.d.ts +0 -2
- package/dist/experimental/oxc/module-specifiers.d.ts +0 -2
- package/dist/experimental/shared/cache.d.ts +0 -3
- package/dist/experimental/shared/transform.d.ts +0 -3
- package/dist/experimental/shared.d.ts +0 -8
- package/dist/experimental/swc/ast-utils.d.ts +0 -30
- package/dist/experimental/swc/index.d.ts +0 -2
- package/dist/experimental/swc/module-specifiers.d.ts +0 -2
- package/dist/generator-Y-Ikv4Fu.mjs +0 -1177
- package/dist/generator-css-Bwy_Uz89.mjs +0 -1097
- package/dist/generator-css-CRLrHW4F.js +0 -1124
- package/dist/generator-mmhXzZnv.js +0 -1276
- package/dist/js/syntax.d.ts +0 -10
- 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
- package/dist/loader-anchors-1MumTAtA.mjs +0 -205
- package/dist/loader-anchors-TrFvT6g1.js +0 -273
- package/dist/logger-BZ45DZJT.js +0 -1003
- package/dist/logger-BoVx1Dbt.mjs +0 -935
- package/dist/patcher-options-6gJN2EXy.js +0 -115
- package/dist/patcher-options-DQfR5xxT.mjs +0 -92
- package/dist/recorder-GdTJ3QqX.js +0 -2878
- package/dist/recorder-XdFvVASS.mjs +0 -2763
- package/dist/tailwindcss/recorder.d.ts +0 -13
- package/dist/tailwindcss/targets/paths.d.ts +0 -13
- package/dist/tailwindcss/targets/record-io.d.ts +0 -5
- package/dist/tailwindcss/targets/recorder.d.ts +0 -3
- package/dist/tailwindcss/targets/types.d.ts +0 -35
- package/dist/types/disabled-options.d.ts +0 -4
- package/dist/vite-BDywuCjn.mjs +0 -2186
- package/dist/vite-DgRh_GXn.js +0 -2199
- package/dist/webpack-CAJR4hhP.js +0 -456
- package/dist/webpack-CiHqVZTg.mjs +0 -441
- package/dist/webpack4.d.ts +0 -4
- package/dist/webpack4.js +0 -387
- package/dist/webpack4.mjs +0 -379
- package/scripts/postinstall.mjs +0 -59
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
//#region src/bundlers/shared/module-graph.ts
|
|
4
|
-
const QUERY_HASH_RE = /[?#].*$/u;
|
|
5
|
-
const PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
|
|
6
|
-
const WINDOWS_ABSOLUTE_RE = /^[a-z]:[\\/]/iu;
|
|
7
|
-
const VIRTUAL_PREFIX = "\0";
|
|
8
|
-
const JS_EXTENSIONS = [
|
|
9
|
-
".js",
|
|
10
|
-
".mjs",
|
|
11
|
-
".cjs"
|
|
12
|
-
];
|
|
13
|
-
function normalizeOutputPathKey(value) {
|
|
14
|
-
return path.normalize(value).replace(/\\/g, "/");
|
|
15
|
-
}
|
|
16
|
-
function stripQueryAndHash(specifier) {
|
|
17
|
-
return specifier.replace(QUERY_HASH_RE, "");
|
|
18
|
-
}
|
|
19
|
-
function isResolvableSpecifier(specifier) {
|
|
20
|
-
if (!specifier) return false;
|
|
21
|
-
const normalized = stripQueryAndHash(specifier);
|
|
22
|
-
if (normalized.startsWith(VIRTUAL_PREFIX)) return false;
|
|
23
|
-
if (path.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) return true;
|
|
24
|
-
return !PROTOCOL_RE.test(normalized);
|
|
25
|
-
}
|
|
26
|
-
function toAbsoluteOutputPath(fileName, outDir) {
|
|
27
|
-
if (path.isAbsolute(fileName) || WINDOWS_ABSOLUTE_RE.test(fileName)) return path.normalize(fileName);
|
|
28
|
-
return path.resolve(outDir, fileName);
|
|
29
|
-
}
|
|
30
|
-
function matchWithExtensions(candidate, hasOutput) {
|
|
31
|
-
if (hasOutput(candidate)) return candidate;
|
|
32
|
-
if (!path.extname(candidate)) for (const ext of JS_EXTENSIONS) {
|
|
33
|
-
const extended = `${candidate}${ext}`;
|
|
34
|
-
if (hasOutput(extended)) return extended;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function resolveOutputSpecifier(specifier, importer, outDir, hasOutput) {
|
|
38
|
-
if (!isResolvableSpecifier(specifier)) return;
|
|
39
|
-
const normalized = stripQueryAndHash(specifier);
|
|
40
|
-
let candidate;
|
|
41
|
-
if (path.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) candidate = path.normalize(normalized);
|
|
42
|
-
else if (normalized.startsWith("/")) candidate = path.resolve(outDir, normalized.slice(1));
|
|
43
|
-
else candidate = path.resolve(path.dirname(importer), normalized);
|
|
44
|
-
return matchWithExtensions(candidate, hasOutput);
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/utils/disabled.ts
|
|
48
|
-
function resolveDisabledOptions(disabled) {
|
|
49
|
-
if (disabled === true) return {
|
|
50
|
-
plugin: true,
|
|
51
|
-
rewriteCssImports: false
|
|
52
|
-
};
|
|
53
|
-
if (disabled === false || disabled == null) return {
|
|
54
|
-
plugin: false,
|
|
55
|
-
rewriteCssImports: false
|
|
56
|
-
};
|
|
57
|
-
return {
|
|
58
|
-
plugin: disabled.plugin ?? false,
|
|
59
|
-
rewriteCssImports: disabled.rewriteCssImports ?? false
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/utils/resolve-package.ts
|
|
64
|
-
const require = createRequire(import.meta.url);
|
|
65
|
-
function resolvePackageDir(name) {
|
|
66
|
-
const pkgPath = require.resolve(`${name}/package.json`);
|
|
67
|
-
return path.dirname(pkgPath);
|
|
68
|
-
}
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/bundlers/shared/run-tasks.ts
|
|
71
|
-
async function runWithConcurrency(factories, limit = Math.min(4, Math.max(1, factories.length))) {
|
|
72
|
-
if (factories.length === 0) return [];
|
|
73
|
-
const results = Array.from({ length: factories.length });
|
|
74
|
-
const executing = /* @__PURE__ */ new Set();
|
|
75
|
-
let cursor = 0;
|
|
76
|
-
const effectiveLimit = Math.max(1, limit);
|
|
77
|
-
const scheduleNext = () => {
|
|
78
|
-
if (cursor >= factories.length) return;
|
|
79
|
-
const currentIndex = cursor++;
|
|
80
|
-
const wrapped = Promise.resolve(factories[currentIndex]()).then((value) => {
|
|
81
|
-
results[currentIndex] = value;
|
|
82
|
-
}).finally(() => {
|
|
83
|
-
executing.delete(wrapped);
|
|
84
|
-
});
|
|
85
|
-
executing.add(wrapped);
|
|
86
|
-
};
|
|
87
|
-
while (cursor < factories.length && executing.size < effectiveLimit) scheduleNext();
|
|
88
|
-
while (cursor < factories.length) {
|
|
89
|
-
await Promise.race(executing);
|
|
90
|
-
scheduleNext();
|
|
91
|
-
}
|
|
92
|
-
await Promise.all(executing);
|
|
93
|
-
return results;
|
|
94
|
-
}
|
|
95
|
-
function pushConcurrentTaskFactories(queue, factories, limit) {
|
|
96
|
-
if (factories.length === 0) return;
|
|
97
|
-
queue.push(runWithConcurrency(factories, limit).then(() => void 0));
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region src/bundlers/shared/css-imports.ts
|
|
101
|
-
const tailwindcssImportRE = /^tailwindcss(?:\/.*)?$/;
|
|
102
|
-
const tailwindcssCssImportStatementRE = /(@import\s+(?:url\(\s*)?)(["'])(tailwindcss(?:\/[^"']*)?\$?)(\2\s*\)?)/gi;
|
|
103
|
-
function normalizeTailwindcssSpecifier(specifier) {
|
|
104
|
-
if (specifier === "tailwindcss$") return "tailwindcss";
|
|
105
|
-
return specifier;
|
|
106
|
-
}
|
|
107
|
-
function getTailwindcssSubpath(specifier) {
|
|
108
|
-
if (specifier === "tailwindcss") return "index.css";
|
|
109
|
-
return specifier.slice(12);
|
|
110
|
-
}
|
|
111
|
-
function resolveTailwindcssImport(specifier, pkgDir, options) {
|
|
112
|
-
const normalized = normalizeTailwindcssSpecifier(specifier);
|
|
113
|
-
if (!tailwindcssImportRE.test(normalized)) return null;
|
|
114
|
-
if (normalized === "tailwindcss") return options?.rootImport ?? "weapp-tailwindcss/index.css";
|
|
115
|
-
return (options?.join ?? path.join)(pkgDir, getTailwindcssSubpath(normalized));
|
|
116
|
-
}
|
|
117
|
-
function rewriteTailwindcssImportsInCode(code, pkgDir, options) {
|
|
118
|
-
let hasReplacements = false;
|
|
119
|
-
const rewritten = code.replace(tailwindcssCssImportStatementRE, (full, prefix, quote, specifier, suffix) => {
|
|
120
|
-
const replacement = resolveTailwindcssImport(specifier, pkgDir, options);
|
|
121
|
-
if (!replacement) return full;
|
|
122
|
-
hasReplacements = true;
|
|
123
|
-
return `${prefix}${quote}${replacement}${suffix}`;
|
|
124
|
-
});
|
|
125
|
-
return hasReplacements ? rewritten : void 0;
|
|
126
|
-
}
|
|
127
|
-
//#endregion
|
|
128
|
-
export { resolveDisabledOptions as a, toAbsoluteOutputPath as c, resolvePackageDir as i, rewriteTailwindcssImportsInCode as n, normalizeOutputPathKey as o, pushConcurrentTaskFactories as r, resolveOutputSpecifier as s, resolveTailwindcssImport as t };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface Oxcast {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
export declare function parseWithOxc(code: string): Oxcast;
|
|
5
|
-
export declare function getIdentifierName(node: any): string | undefined;
|
|
6
|
-
export declare function isStringLiteral(node: any): node is {
|
|
7
|
-
type: string;
|
|
8
|
-
value: string;
|
|
9
|
-
};
|
|
10
|
-
export declare function isTemplateLiteral(node: any): boolean;
|
|
11
|
-
export declare function getTemplateQuasis(node: any): any[];
|
|
12
|
-
export declare function getTplElementRaw(elem: any): string | undefined;
|
|
13
|
-
export declare function isTaggedTemplate(node: any): boolean;
|
|
14
|
-
export declare function getTaggedTemplateTag(node: any): any;
|
|
15
|
-
export declare function isCallExpression(node: any): boolean;
|
|
16
|
-
export declare function getCallCallee(node: any): any;
|
|
17
|
-
export declare function getCallArguments(node: any): any[];
|
|
18
|
-
export declare function isImportDeclaration(node: any): boolean;
|
|
19
|
-
export declare function isExportAllDeclaration(node: any): boolean;
|
|
20
|
-
export declare function getImportSourceLiteral(node: any): any | undefined;
|
|
21
|
-
export declare function sliceStringLiteralText(code: string, node: any): {
|
|
22
|
-
start: number;
|
|
23
|
-
end: number;
|
|
24
|
-
text: string;
|
|
25
|
-
} | undefined;
|
|
26
|
-
export declare function sliceTplElementText(code: string, elem: any): {
|
|
27
|
-
start: number;
|
|
28
|
-
end: number;
|
|
29
|
-
text: string;
|
|
30
|
-
} | undefined;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { IJsHandlerOptions } from '../../types';
|
|
2
|
-
export declare function shouldTransformClassName(candidate: string, options: Pick<IJsHandlerOptions, 'alwaysEscape' | 'classNameSet' | 'jsPreserveClass'>): boolean;
|
|
3
|
-
export declare function transformLiteralText(literal: string, options: IJsHandlerOptions): string | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { getPattern, getReplacement } from './shared/cache';
|
|
2
|
-
export { shouldTransformClassName, transformLiteralText } from './shared/transform';
|
|
3
|
-
export declare function createToken(start: number, end: number, value: string): {
|
|
4
|
-
start: number;
|
|
5
|
-
end: number;
|
|
6
|
-
value: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function createNameMatcher(patterns: (string | RegExp)[] | undefined, exact?: boolean): (name: string) => boolean;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface SwcAst {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
export declare function parseWithSwc(code: string): SwcAst;
|
|
5
|
-
export declare function getIdentifierName(node: any): string | undefined;
|
|
6
|
-
export declare function isStringLiteral(node: any): node is {
|
|
7
|
-
type: string;
|
|
8
|
-
value: string;
|
|
9
|
-
};
|
|
10
|
-
export declare function isTemplateLiteral(node: any): boolean;
|
|
11
|
-
export declare function getTemplateQuasis(node: any): any[];
|
|
12
|
-
export declare function getTplElementRaw(elem: any): string | undefined;
|
|
13
|
-
export declare function isTaggedTemplate(node: any): boolean;
|
|
14
|
-
export declare function getTaggedTemplateTag(node: any): any;
|
|
15
|
-
export declare function isCallExpression(node: any): boolean;
|
|
16
|
-
export declare function getCallCallee(node: any): any;
|
|
17
|
-
export declare function getCallArguments(node: any): any[];
|
|
18
|
-
export declare function isImportDeclaration(node: any): boolean;
|
|
19
|
-
export declare function isExportAllDeclaration(node: any): boolean;
|
|
20
|
-
export declare function getImportSourceLiteral(node: any): any | undefined;
|
|
21
|
-
export declare function sliceStringLiteralText(code: string, node: any): {
|
|
22
|
-
start: number;
|
|
23
|
-
end: number;
|
|
24
|
-
text: string;
|
|
25
|
-
} | undefined;
|
|
26
|
-
export declare function sliceTplElementText(code: string, elem: any): {
|
|
27
|
-
start: number;
|
|
28
|
-
end: number;
|
|
29
|
-
text: string;
|
|
30
|
-
} | undefined;
|