weapp-tailwindcss 4.12.0 → 5.0.0-next.1
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/babel/index.d.ts +3 -0
- package/dist/bundlers/gulp/index.d.ts +7 -0
- package/dist/bundlers/shared/cache.d.ts +16 -0
- package/dist/bundlers/shared/css-cleanup.d.ts +4 -0
- package/dist/bundlers/shared/css-imports.d.ts +8 -0
- package/dist/bundlers/shared/generator-candidates.d.ts +5 -0
- package/dist/bundlers/shared/generator-css.d.ts +41 -0
- package/dist/bundlers/shared/module-graph.d.ts +5 -0
- package/dist/bundlers/shared/run-tasks.d.ts +2 -0
- package/dist/bundlers/vite/bundle-entries.d.ts +14 -0
- package/dist/bundlers/vite/bundle-state.d.ts +43 -0
- package/dist/bundlers/vite/css-finalizer.d.ts +19 -0
- package/dist/bundlers/vite/generate-bundle.d.ts +20 -0
- package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +21 -0
- package/dist/bundlers/vite/index.d.ts +3 -0
- package/dist/bundlers/vite/js-precheck.d.ts +1 -0
- package/dist/bundlers/vite/query.d.ts +15 -0
- package/dist/bundlers/vite/resolve-app-type.d.ts +2 -0
- package/dist/bundlers/vite/rewrite-css-imports.d.ts +11 -0
- package/dist/bundlers/vite/runtime-affecting-signature.d.ts +2 -0
- package/dist/bundlers/vite/utils.d.ts +9 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/shared.d.ts +20 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4-assets.d.ts +14 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4-loaders.d.ts +15 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4.d.ts +9 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +17 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +19 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +9 -0
- package/dist/bundlers/webpack/index.d.ts +1 -0
- package/dist/bundlers/webpack/loaders/weapp-tw-css-import-rewrite-loader.d.ts +12 -0
- package/dist/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.d.ts +11 -0
- package/dist/bundlers/webpack/shared/css-imports.d.ts +6 -0
- package/dist/bundlers/webpack/shared/loader-anchors.d.ts +8 -0
- package/dist/cache/index.d.ts +38 -0
- package/dist/cache/md5.d.ts +1 -0
- package/dist/chunk-8l464Juk.js +28 -0
- package/dist/cli/config.d.ts +5 -0
- package/dist/cli/context.d.ts +16 -0
- package/dist/cli/doctor/constants.d.ts +7 -0
- package/dist/cli/doctor/types.d.ts +31 -0
- package/dist/cli/doctor.d.ts +4 -0
- package/dist/cli/helpers/options/format.d.ts +2 -0
- package/dist/cli/helpers/options/parse.d.ts +3 -0
- package/dist/cli/helpers/options/resolve.d.ts +1 -0
- package/dist/cli/helpers/options.d.ts +3 -0
- package/dist/cli/helpers/patch-cwd.d.ts +1 -0
- package/dist/cli/helpers.d.ts +5 -0
- package/dist/cli/mount-options/patch-status.d.ts +2 -0
- package/dist/cli/mount-options.d.ts +2 -0
- package/dist/cli/patch-options.d.ts +6 -0
- package/dist/cli/tokens.d.ts +4 -0
- package/dist/cli/types.d.ts +17 -0
- package/dist/cli/vscode-entry.d.ts +14 -0
- package/dist/cli/workspace/package-dirs.d.ts +3 -0
- package/dist/cli/workspace/patch-package.d.ts +3 -0
- package/dist/cli/workspace/patch-utils.d.ts +3 -0
- package/dist/cli/workspace/types.d.ts +11 -0
- package/dist/cli/workspace/workspace-globs.d.ts +2 -0
- package/dist/cli/workspace/workspace-io.d.ts +1 -0
- package/dist/cli/workspace/workspace-lock.d.ts +1 -0
- package/dist/cli/workspace.d.ts +2 -0
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +2425 -3524
- package/dist/cli.mjs +2402 -3505
- package/dist/constants-B-_T5UnW.mjs +44 -0
- package/dist/constants-p1dyh1x1.js +73 -0
- package/dist/constants.d.ts +13 -0
- package/dist/context/compiler-context-cache.d.ts +3 -0
- package/dist/context/custom-attributes.d.ts +2 -0
- package/dist/context/handlers.d.ts +6 -0
- package/dist/context/index.d.ts +7 -0
- package/dist/context/logger.d.ts +4 -0
- package/dist/context/tailwindcss/basedir.d.ts +1 -0
- package/dist/context/tailwindcss/rax.d.ts +2 -0
- package/dist/context/tailwindcss.d.ts +4 -0
- package/dist/context/workspace.d.ts +3 -0
- package/dist/core.d.ts +5 -21
- package/dist/core.js +138 -180
- package/dist/core.mjs +135 -180
- package/dist/css-imports-BbrbluP9.js +177 -0
- package/dist/css-imports-CSdPq_Sc.mjs +128 -0
- package/dist/css-macro/constants.d.ts +14 -0
- package/dist/css-macro/index.d.ts +15 -0
- package/dist/css-macro/postcss.d.ts +3 -7
- package/dist/css-macro/postcss.js +44 -58
- package/dist/css-macro/postcss.mjs +44 -56
- package/dist/css-macro.d.ts +1 -20
- package/dist/css-macro.js +37 -50
- package/dist/css-macro.mjs +33 -47
- package/dist/debug/index.d.ts +5 -0
- package/dist/defaults.d.ts +2 -11
- package/dist/defaults.js +132 -8
- package/dist/defaults.mjs +128 -7
- package/dist/escape.js +31 -54
- package/dist/escape.mjs +18 -25
- package/dist/experimental/index.d.ts +2 -0
- package/dist/experimental/oxc/ast-utils.d.ts +30 -0
- package/dist/experimental/oxc/index.d.ts +2 -0
- package/dist/experimental/oxc/module-specifiers.d.ts +2 -0
- package/dist/experimental/shared/cache.d.ts +3 -0
- package/dist/experimental/shared/transform.d.ts +3 -0
- package/dist/experimental/shared.d.ts +8 -0
- package/dist/experimental/swc/ast-utils.d.ts +30 -0
- package/dist/experimental/swc/index.d.ts +2 -0
- package/dist/experimental/swc/module-specifiers.d.ts +2 -0
- package/dist/generator/index.d.ts +11 -0
- package/dist/generator/options.d.ts +15 -0
- package/dist/generator/types.d.ts +19 -0
- package/dist/generator-CZ-JXw6T.js +492 -0
- package/dist/generator-Dwxgra97.mjs +399 -0
- package/dist/generator-css-CnYjiMrD.js +1084 -0
- package/dist/generator-css-DhPFjSzK.mjs +1057 -0
- package/dist/generator.d.ts +1 -0
- package/dist/generator.js +19 -0
- package/dist/generator.mjs +2 -0
- package/dist/gulp.d.ts +4 -24
- package/dist/gulp.js +271 -13
- package/dist/gulp.mjs +263 -13
- package/dist/index.d.ts +8 -15
- package/dist/index.js +12 -24
- package/dist/index.mjs +6 -24
- package/dist/js/JsTokenUpdater.d.ts +14 -0
- package/dist/js/ModuleGraph.d.ts +18 -0
- package/dist/js/NodePathWalker.d.ts +33 -0
- package/dist/js/babel/parse.d.ts +9 -0
- package/dist/js/babel/process.d.ts +4 -0
- package/dist/js/babel.d.ts +13 -0
- package/dist/js/class-context.d.ts +3 -0
- package/dist/js/evalTransforms.d.ts +7 -0
- package/dist/js/handlers.d.ts +5 -0
- package/dist/js/index.d.ts +4 -0
- package/dist/js/module-graph/ignored-exports.d.ts +18 -0
- package/dist/js/module-graph/types.d.ts +17 -0
- package/dist/js/node-path-walker/export-handlers.d.ts +12 -0
- package/dist/js/node-path-walker/import-tokens.d.ts +24 -0
- package/dist/js/precheck.d.ts +2 -0
- package/dist/js/sourceAnalysis.d.ts +17 -0
- package/dist/js/syntax.d.ts +10 -0
- package/dist/js/taggedTemplateIgnore.d.ts +13 -0
- package/dist/js/types.d.ts +11 -0
- package/dist/lightningcss/index.d.ts +8 -0
- package/dist/lightningcss/style-handler/options.d.ts +3 -0
- package/dist/lightningcss/style-handler/selector-transform.d.ts +10 -0
- package/dist/lightningcss/style-handler/selector-utils.d.ts +10 -0
- package/dist/lightningcss/style-handler.d.ts +17 -0
- package/dist/loader-anchors-DvwgIYdA.mjs +205 -0
- package/dist/loader-anchors-cprm4Klq.js +273 -0
- package/dist/logger/index.d.ts +2 -0
- package/dist/logger-BZ45DZJT.js +1003 -0
- package/dist/logger-BoVx1Dbt.mjs +935 -0
- package/dist/patcher-options-6gJN2EXy.js +115 -0
- package/dist/patcher-options-DQfR5xxT.mjs +92 -0
- package/dist/postcss-html-transform.d.ts +3 -3
- package/dist/postcss-html-transform.js +7 -10
- package/dist/postcss-html-transform.mjs +3 -6
- package/dist/postcss.d.ts +15 -0
- package/dist/postcss.js +278 -0
- package/dist/postcss.mjs +268 -0
- package/dist/presets/hbuilderx.d.ts +4 -0
- package/dist/presets/index.d.ts +3 -0
- package/dist/presets/shared.d.ts +10 -0
- package/dist/presets/taro.d.ts +4 -0
- package/dist/presets/uni-app-x.d.ts +16 -0
- package/dist/presets/uni-app.d.ts +4 -0
- package/dist/presets.d.ts +1 -76
- package/dist/presets.js +115 -163
- package/dist/presets.mjs +107 -163
- package/dist/recorder-B_XyZ576.mjs +2763 -0
- package/dist/recorder-rn_2v_nd.js +2878 -0
- package/dist/reset/index.d.ts +2 -0
- package/dist/reset.d.ts +1 -4
- package/dist/reset.js +19 -8
- package/dist/reset.mjs +2 -8
- package/dist/shared/classname-transform.d.ts +14 -0
- package/dist/shared/mpx.d.ts +7 -0
- package/dist/shared/tailwindcss-css-redirect.d.ts +1 -0
- package/dist/tailwindcss/index.d.ts +11 -0
- package/dist/tailwindcss/miniprogram.d.ts +1 -0
- package/dist/tailwindcss/patcher-options.d.ts +56 -0
- package/dist/tailwindcss/patcher-resolve.d.ts +4 -0
- package/dist/tailwindcss/patcher.d.ts +13 -0
- package/dist/tailwindcss/recorder.d.ts +13 -0
- package/dist/tailwindcss/remove-unsupported-css.d.ts +2 -0
- package/dist/tailwindcss/runtime/cache.d.ts +11 -0
- package/dist/tailwindcss/runtime-logs.d.ts +3 -0
- package/dist/tailwindcss/runtime.d.ts +29 -0
- package/dist/tailwindcss/targets/paths.d.ts +13 -0
- package/dist/tailwindcss/targets/record-io.d.ts +5 -0
- package/dist/tailwindcss/targets/recorder.d.ts +3 -0
- package/dist/tailwindcss/targets/types.d.ts +35 -0
- package/dist/tailwindcss/targets.d.ts +6 -0
- package/dist/tailwindcss/v3-engine/generator.d.ts +2 -0
- package/dist/tailwindcss/v3-engine/index.d.ts +4 -0
- package/dist/tailwindcss/v3-engine/miniprogram.d.ts +4 -0
- package/dist/tailwindcss/v3-engine/source.d.ts +5 -0
- package/dist/tailwindcss/v3-engine/types.d.ts +55 -0
- package/dist/tailwindcss/v4/config.d.ts +5 -0
- package/dist/tailwindcss/v4/css-entries.d.ts +7 -0
- package/dist/tailwindcss/v4/index.d.ts +2 -0
- package/dist/tailwindcss/v4/multi-patcher.d.ts +2 -0
- package/dist/tailwindcss/v4/patcher-options.d.ts +24 -0
- package/dist/tailwindcss/v4/patcher.d.ts +14 -0
- package/dist/tailwindcss/v4-engine/design-system.d.ts +1 -0
- package/dist/tailwindcss/v4-engine/generator.d.ts +2 -0
- package/dist/tailwindcss/v4-engine/index.d.ts +5 -0
- package/dist/tailwindcss/v4-engine/miniprogram.d.ts +4 -0
- package/dist/tailwindcss/v4-engine/source.d.ts +7 -0
- package/dist/tailwindcss/v4-engine/types.d.ts +17 -0
- package/dist/typedoc.export.d.ts +5 -0
- package/dist/types/base.d.ts +1 -0
- package/dist/types/disabled-options.d.ts +4 -0
- package/dist/types/index.d.ts +104 -0
- package/dist/types/shared.d.ts +7 -0
- package/dist/types/user-defined-options/general.d.ts +31 -0
- package/dist/types/user-defined-options/important.d.ts +37 -0
- package/dist/types/user-defined-options/index.d.ts +11 -0
- package/dist/types/user-defined-options/lifecycle.d.ts +6 -0
- package/dist/types/user-defined-options/matcher.d.ts +9 -0
- package/dist/types.d.ts +1 -150
- package/dist/types.js +0 -1
- package/dist/types.mjs +1 -1
- package/dist/uni-app-x/component-local-style.d.ts +19 -0
- package/dist/uni-app-x/index.d.ts +2 -0
- package/dist/uni-app-x/options.d.ts +12 -0
- package/dist/uni-app-x/style-isolation.d.ts +2 -0
- package/dist/uni-app-x/transform.d.ts +9 -0
- package/dist/uni-app-x/vite.d.ts +36 -0
- package/dist/utils/decode.d.ts +2 -0
- package/dist/utils/disabled.d.ts +6 -0
- package/dist/utils/hbuilderx.d.ts +5 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/nameMatcher.d.ts +4 -0
- package/dist/utils/resolve-package.d.ts +1 -0
- package/dist/utils/uni-platform.d.ts +11 -0
- package/dist/utils-7DUGTFED.mjs +48 -0
- package/dist/utils-DmC9_In3.js +61 -0
- package/dist/vite-BHpAqldo.js +1952 -0
- package/dist/vite-C8JlHiyR.mjs +1940 -0
- package/dist/vite.d.ts +4 -17
- package/dist/vite.js +5 -14
- package/dist/vite.mjs +2 -14
- package/dist/weapp-tw-css-import-rewrite-loader.js +59 -92
- package/dist/weapp-tw-runtime-classset-loader.js +31 -50
- package/dist/webpack-CABjKGGQ.mjs +441 -0
- package/dist/webpack-DNIJ0ysE.js +456 -0
- package/dist/webpack.d.ts +4 -25
- package/dist/webpack.js +6 -17
- package/dist/webpack.mjs +2 -17
- package/dist/webpack4.d.ts +4 -26
- package/dist/webpack4.js +375 -481
- package/dist/webpack4.mjs +366 -482
- package/dist/wxml/Tokenizer.d.ts +15 -0
- package/dist/wxml/custom-attributes.d.ts +4 -0
- package/dist/wxml/index.d.ts +2 -0
- package/dist/wxml/shared.d.ts +2 -0
- package/dist/wxml/tokenizer/types.d.ts +18 -0
- package/dist/wxml/utils/codegen/legacy-rewriter.d.ts +2 -0
- package/dist/wxml/utils/codegen/legacy-visitor.d.ts +8 -0
- package/dist/wxml/utils/codegen.d.ts +2 -0
- package/dist/wxml/utils/custom-template.d.ts +3 -0
- package/dist/wxml/utils/fragment-helpers.d.ts +6 -0
- package/dist/wxml/utils/fragment-updater.d.ts +4 -0
- package/dist/wxml/utils/template-fragments.d.ts +3 -0
- package/dist/wxml/utils.d.ts +8 -0
- package/dist/wxml/whitespace.d.ts +2 -0
- package/generator-placeholder.css +1 -0
- package/package.json +19 -5
- package/dist/chunk-24AGZQVR.js +0 -183
- package/dist/chunk-3VQKDHGP.mjs +0 -179
- package/dist/chunk-4AFQP74Z.js +0 -24
- package/dist/chunk-57SOQCAU.mjs +0 -582
- package/dist/chunk-5ZYHNDEK.mjs +0 -2439
- package/dist/chunk-76S2EME4.mjs +0 -34
- package/dist/chunk-A5PB4KZT.js +0 -138
- package/dist/chunk-DUHYLR2R.js +0 -276
- package/dist/chunk-DYLQ6UOI.js +0 -71
- package/dist/chunk-E7I5TW5K.js +0 -52
- package/dist/chunk-FS2NOOEB.js +0 -292
- package/dist/chunk-HVNGIKLS.js +0 -3930
- package/dist/chunk-JZQBZHN5.js +0 -579
- package/dist/chunk-KGTVD4EP.mjs +0 -3930
- package/dist/chunk-NNOQDMUP.mjs +0 -10
- package/dist/chunk-OF6MFURR.js +0 -34
- package/dist/chunk-OFB2KBRP.js +0 -2442
- package/dist/chunk-OOHJLO5M.mjs +0 -71
- package/dist/chunk-PCDYXXSK.mjs +0 -1515
- package/dist/chunk-RKISS72P.js +0 -7
- package/dist/chunk-RRQZL7FQ.mjs +0 -292
- package/dist/chunk-XAKAD2CR.mjs +0 -138
- package/dist/chunk-XZP3MREK.mjs +0 -276
- package/dist/chunk-ZAA5ZG3D.js +0 -1518
- package/dist/chunk-ZCH4YINE.mjs +0 -52
- package/dist/cli.d.mts +0 -2
- package/dist/core.d.mts +0 -26
- package/dist/css-macro/postcss.d.mts +0 -7
- package/dist/css-macro.d.mts +0 -18
- package/dist/defaults.d.mts +0 -11
- package/dist/gulp.d.mts +0 -24
- package/dist/index-BXrmQelt.d.mts +0 -672
- package/dist/index-BXrmQelt.d.ts +0 -672
- package/dist/index.d.mts +0 -15
- package/dist/postcss-html-transform.d.mts +0 -2
- package/dist/presets.d.mts +0 -76
- package/dist/reset.d.mts +0 -1
- package/dist/types.d.mts +0 -150
- package/dist/vite.d.mts +0 -17
- package/dist/webpack.d.mts +0 -25
- package/dist/webpack4.d.mts +0 -26
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Token } from './tokenizer/types';
|
|
2
|
+
export type { Expression, Token } from './tokenizer/types';
|
|
3
|
+
export declare class Tokenizer {
|
|
4
|
+
private state;
|
|
5
|
+
private buffer;
|
|
6
|
+
private tokens;
|
|
7
|
+
private bufferStartIndex;
|
|
8
|
+
private expressionStartIndex;
|
|
9
|
+
private expressionBuffer;
|
|
10
|
+
private expressions;
|
|
11
|
+
constructor();
|
|
12
|
+
private processChar;
|
|
13
|
+
run(input: string): Token[];
|
|
14
|
+
reset(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ICustomAttributesEntities, ItemOrItemArray } from '../types';
|
|
2
|
+
export type AttributeMatcher = (tag: string, attr: string) => boolean;
|
|
3
|
+
export declare function isPropsMatch(props: ItemOrItemArray<string | RegExp>, attr: string): boolean;
|
|
4
|
+
export declare function createAttributeMatcher(entities?: ICustomAttributesEntities): AttributeMatcher | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum State {
|
|
2
|
+
START = 0,
|
|
3
|
+
TEXT = 1,
|
|
4
|
+
OPEN_BRACE = 2,
|
|
5
|
+
POTENTIAL_CLOSE = 3,
|
|
6
|
+
BRACES_COMPLETE = 4
|
|
7
|
+
}
|
|
8
|
+
export interface Expression {
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
export interface Token {
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
value: string;
|
|
17
|
+
expressions: Expression[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StringLiteral } from '@babel/types';
|
|
2
|
+
import type { JsTokenUpdater } from '../../../js/JsTokenUpdater';
|
|
3
|
+
import type { ITemplateHandlerOptions } from '../../../types';
|
|
4
|
+
import * as t from '@babel/types';
|
|
5
|
+
export declare function createLegacyTraverseOptions(options: ITemplateHandlerOptions, jsTokenUpdater: JsTokenUpdater): {
|
|
6
|
+
StringLiteral(this: t.Node, path: import("@babel/traverse").NodePath<StringLiteral>): void;
|
|
7
|
+
noScope: true;
|
|
8
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ITemplateHandlerOptions } from '../../types';
|
|
2
|
+
import type { AttributeMatcher } from '../custom-attributes';
|
|
3
|
+
export declare function customTemplateHandler(rawSource: string, options: Required<ITemplateHandlerOptions>, cachedMatcher?: AttributeMatcher | undefined): Promise<string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type MagicString from 'magic-string';
|
|
2
|
+
import type { ITemplateHandlerOptions } from '../../types';
|
|
3
|
+
import type { Expression } from '../Tokenizer';
|
|
4
|
+
export declare function updateWhitespaceGap(ms: MagicString, start: number, end: number, options: ITemplateHandlerOptions): void;
|
|
5
|
+
export declare function updateWxmlSegment(ms: MagicString, start: number, end: number, options: ITemplateHandlerOptions, keepEOL: boolean, ignoreHead: boolean): void;
|
|
6
|
+
export declare function updateExpressionSegment(ms: MagicString, exp: Expression, options: ITemplateHandlerOptions): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type MagicString from 'magic-string';
|
|
2
|
+
import type { ITemplateHandlerOptions } from '../../types';
|
|
3
|
+
import type { Token } from '../Tokenizer';
|
|
4
|
+
export declare function handleEachClassFragment(ms: MagicString, tokens: Token[], options?: ITemplateHandlerOptions): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ITemplateHandlerOptions } from '../types';
|
|
2
|
+
import { isPropsMatch } from './custom-attributes';
|
|
3
|
+
import { generateCode } from './utils/codegen';
|
|
4
|
+
import { customTemplateHandler } from './utils/custom-template';
|
|
5
|
+
import { templateReplacer } from './utils/template-fragments';
|
|
6
|
+
export { isPropsMatch };
|
|
7
|
+
export { customTemplateHandler, generateCode, templateReplacer };
|
|
8
|
+
export declare function createTemplateHandler(options?: Omit<ITemplateHandlerOptions, 'runtimeSet'>): (rawSource: string, opt?: Pick<ITemplateHandlerOptions, "runtimeSet">) => Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! weapp-tailwindcss generator-placeholder */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-next.1",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -76,6 +76,16 @@
|
|
|
76
76
|
"import": "./dist/gulp.mjs",
|
|
77
77
|
"require": "./dist/gulp.js"
|
|
78
78
|
},
|
|
79
|
+
"./generator": {
|
|
80
|
+
"types": "./dist/generator.d.ts",
|
|
81
|
+
"import": "./dist/generator.mjs",
|
|
82
|
+
"require": "./dist/generator.js"
|
|
83
|
+
},
|
|
84
|
+
"./postcss": {
|
|
85
|
+
"types": "./dist/postcss.d.ts",
|
|
86
|
+
"import": "./dist/postcss.mjs",
|
|
87
|
+
"require": "./dist/postcss.js"
|
|
88
|
+
},
|
|
79
89
|
"./defaults": {
|
|
80
90
|
"types": "./dist/defaults.d.ts",
|
|
81
91
|
"import": "./dist/defaults.mjs",
|
|
@@ -148,6 +158,7 @@
|
|
|
148
158
|
"bin",
|
|
149
159
|
"css",
|
|
150
160
|
"dist",
|
|
161
|
+
"generator-placeholder.css",
|
|
151
162
|
"index.css",
|
|
152
163
|
"preflight.css",
|
|
153
164
|
"scripts/postinstall.mjs",
|
|
@@ -182,21 +193,24 @@
|
|
|
182
193
|
"local-pkg": "^1.1.2",
|
|
183
194
|
"lru-cache": "10.4.3",
|
|
184
195
|
"magic-string": "0.30.21",
|
|
196
|
+
"postcss-load-config": "^6.0.1",
|
|
185
197
|
"semver": "~7.7.4",
|
|
186
|
-
"tailwindcss-patch": "9.0
|
|
198
|
+
"tailwindcss-patch": "9.2.0",
|
|
187
199
|
"webpack-sources": "3.3.4",
|
|
188
200
|
"yaml": "^2.8.4",
|
|
189
201
|
"@weapp-tailwindcss/logger": "1.1.0",
|
|
190
202
|
"@weapp-tailwindcss/postcss": "2.2.0",
|
|
191
203
|
"@weapp-tailwindcss/reset": "0.1.0",
|
|
192
|
-
"@weapp-tailwindcss/shared": "1.1.3"
|
|
204
|
+
"@weapp-tailwindcss/shared": "1.1.3",
|
|
205
|
+
"tailwindcss-config": "1.1.6-next.0"
|
|
193
206
|
},
|
|
194
207
|
"devDependencies": {
|
|
195
208
|
"fast-check": "^4.7.0"
|
|
196
209
|
},
|
|
197
210
|
"scripts": {
|
|
198
|
-
"dev": "
|
|
199
|
-
"build": "
|
|
211
|
+
"dev": "tsdown --watch --sourcemap",
|
|
212
|
+
"build": "tsdown && pnpm run build:types && node scripts/ensure-escape-dts.mjs",
|
|
213
|
+
"build:types": "tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --declarationDir dist --noEmit false && node scripts/rewrite-dts-aliases.mjs && node scripts/create-entry-dts.mjs",
|
|
200
214
|
"build:tsc": "cross-env NODE_ENV=development tsc --build tsconfig.json",
|
|
201
215
|
"build:cli": "cd plugins/cli && pnpm run build",
|
|
202
216
|
"build:css": "tsx scripts/build-css.ts",
|
package/dist/chunk-24AGZQVR.js
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
var _chunkRKISS72Pjs = require('./chunk-RKISS72P.js');
|
|
4
|
-
|
|
5
|
-
// src/utils/disabled.ts
|
|
6
|
-
function resolveDisabledOptions(disabled) {
|
|
7
|
-
if (disabled === true) {
|
|
8
|
-
return { plugin: true, rewriteCssImports: false };
|
|
9
|
-
}
|
|
10
|
-
if (disabled === false || disabled == null) {
|
|
11
|
-
return { plugin: false, rewriteCssImports: false };
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
plugin: _nullishCoalesce(disabled.plugin, () => ( false)),
|
|
15
|
-
rewriteCssImports: _nullishCoalesce(disabled.rewriteCssImports, () => ( false))
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// src/utils/resolve-package.ts
|
|
20
|
-
var _module = require('module');
|
|
21
|
-
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
22
|
-
var require2 = _module.createRequire.call(void 0, _chunkRKISS72Pjs.importMetaUrl);
|
|
23
|
-
function resolvePackageDir(name) {
|
|
24
|
-
const pkgPath = require2.resolve(`${name}/package.json`);
|
|
25
|
-
return _path2.default.dirname(pkgPath);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// src/bundlers/shared/module-graph.ts
|
|
29
|
-
|
|
30
|
-
var QUERY_HASH_RE = /[?#].*$/u;
|
|
31
|
-
var PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
|
|
32
|
-
var WINDOWS_ABSOLUTE_RE = /^[a-z]:[\\/]/iu;
|
|
33
|
-
var VIRTUAL_PREFIX = "\0";
|
|
34
|
-
var JS_EXTENSIONS = [".js", ".mjs", ".cjs"];
|
|
35
|
-
function normalizeOutputPathKey(value) {
|
|
36
|
-
return _path2.default.normalize(value).replace(/\\/g, "/");
|
|
37
|
-
}
|
|
38
|
-
function stripQueryAndHash(specifier) {
|
|
39
|
-
return specifier.replace(QUERY_HASH_RE, "");
|
|
40
|
-
}
|
|
41
|
-
function isResolvableSpecifier(specifier) {
|
|
42
|
-
if (!specifier) {
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
const normalized = stripQueryAndHash(specifier);
|
|
46
|
-
if (normalized.startsWith(VIRTUAL_PREFIX)) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
if (_path2.default.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) {
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
return !PROTOCOL_RE.test(normalized);
|
|
53
|
-
}
|
|
54
|
-
function toAbsoluteOutputPath(fileName, outDir) {
|
|
55
|
-
if (_path2.default.isAbsolute(fileName) || WINDOWS_ABSOLUTE_RE.test(fileName)) {
|
|
56
|
-
return _path2.default.normalize(fileName);
|
|
57
|
-
}
|
|
58
|
-
return _path2.default.resolve(outDir, fileName);
|
|
59
|
-
}
|
|
60
|
-
function matchWithExtensions(candidate, hasOutput) {
|
|
61
|
-
if (hasOutput(candidate)) {
|
|
62
|
-
return candidate;
|
|
63
|
-
}
|
|
64
|
-
if (!_path2.default.extname(candidate)) {
|
|
65
|
-
for (const ext of JS_EXTENSIONS) {
|
|
66
|
-
const extended = `${candidate}${ext}`;
|
|
67
|
-
if (hasOutput(extended)) {
|
|
68
|
-
return extended;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return void 0;
|
|
73
|
-
}
|
|
74
|
-
function resolveOutputSpecifier(specifier, importer, outDir, hasOutput) {
|
|
75
|
-
if (!isResolvableSpecifier(specifier)) {
|
|
76
|
-
return void 0;
|
|
77
|
-
}
|
|
78
|
-
const normalized = stripQueryAndHash(specifier);
|
|
79
|
-
let candidate;
|
|
80
|
-
if (_path2.default.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) {
|
|
81
|
-
candidate = _path2.default.normalize(normalized);
|
|
82
|
-
} else if (normalized.startsWith("/")) {
|
|
83
|
-
candidate = _path2.default.resolve(outDir, normalized.slice(1));
|
|
84
|
-
} else {
|
|
85
|
-
candidate = _path2.default.resolve(_path2.default.dirname(importer), normalized);
|
|
86
|
-
}
|
|
87
|
-
return matchWithExtensions(candidate, hasOutput);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// src/bundlers/shared/run-tasks.ts
|
|
91
|
-
async function runWithConcurrency(factories, limit = Math.min(4, Math.max(1, factories.length))) {
|
|
92
|
-
if (factories.length === 0) {
|
|
93
|
-
return [];
|
|
94
|
-
}
|
|
95
|
-
const results = Array.from({ length: factories.length });
|
|
96
|
-
const executing = /* @__PURE__ */ new Set();
|
|
97
|
-
let cursor = 0;
|
|
98
|
-
const effectiveLimit = Math.max(1, limit);
|
|
99
|
-
const scheduleNext = () => {
|
|
100
|
-
if (cursor >= factories.length) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
const currentIndex = cursor++;
|
|
104
|
-
const wrapped = Promise.resolve(factories[currentIndex]()).then((value) => {
|
|
105
|
-
results[currentIndex] = value;
|
|
106
|
-
}).finally(() => {
|
|
107
|
-
executing.delete(wrapped);
|
|
108
|
-
});
|
|
109
|
-
executing.add(wrapped);
|
|
110
|
-
};
|
|
111
|
-
while (cursor < factories.length && executing.size < effectiveLimit) {
|
|
112
|
-
scheduleNext();
|
|
113
|
-
}
|
|
114
|
-
while (cursor < factories.length) {
|
|
115
|
-
await Promise.race(executing);
|
|
116
|
-
scheduleNext();
|
|
117
|
-
}
|
|
118
|
-
await Promise.all(executing);
|
|
119
|
-
return results;
|
|
120
|
-
}
|
|
121
|
-
function pushConcurrentTaskFactories(queue, factories, limit) {
|
|
122
|
-
if (factories.length === 0) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
queue.push(
|
|
126
|
-
runWithConcurrency(factories, limit).then(() => void 0)
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// src/bundlers/shared/css-imports.ts
|
|
131
|
-
|
|
132
|
-
var tailwindcssImportRE = /^tailwindcss(?:\/.*)?$/;
|
|
133
|
-
var tailwindcssCssImportStatementRE = /(@import\s+(?:url\(\s*)?)(["'])(tailwindcss(?:\/[^"']*)?\$?)(\2\s*\)?)/gi;
|
|
134
|
-
function normalizeTailwindcssSpecifier(specifier) {
|
|
135
|
-
if (specifier === "tailwindcss$") {
|
|
136
|
-
return "tailwindcss";
|
|
137
|
-
}
|
|
138
|
-
return specifier;
|
|
139
|
-
}
|
|
140
|
-
function getTailwindcssSubpath(specifier) {
|
|
141
|
-
if (specifier === "tailwindcss") {
|
|
142
|
-
return "index.css";
|
|
143
|
-
}
|
|
144
|
-
return specifier.slice("tailwindcss/".length);
|
|
145
|
-
}
|
|
146
|
-
function resolveTailwindcssImport(specifier, pkgDir, options) {
|
|
147
|
-
const normalized = normalizeTailwindcssSpecifier(specifier);
|
|
148
|
-
if (!tailwindcssImportRE.test(normalized)) {
|
|
149
|
-
return null;
|
|
150
|
-
}
|
|
151
|
-
if (normalized === "tailwindcss") {
|
|
152
|
-
return "weapp-tailwindcss/index.css";
|
|
153
|
-
}
|
|
154
|
-
const join = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _ => _.join]), () => ( _path2.default.join));
|
|
155
|
-
const subpath = getTailwindcssSubpath(normalized);
|
|
156
|
-
return join(pkgDir, subpath);
|
|
157
|
-
}
|
|
158
|
-
function rewriteTailwindcssImportsInCode(code, pkgDir, options) {
|
|
159
|
-
let hasReplacements = false;
|
|
160
|
-
const rewritten = code.replace(
|
|
161
|
-
tailwindcssCssImportStatementRE,
|
|
162
|
-
(full, prefix, quote, specifier, suffix) => {
|
|
163
|
-
const replacement = resolveTailwindcssImport(specifier, pkgDir, options);
|
|
164
|
-
if (!replacement) {
|
|
165
|
-
return full;
|
|
166
|
-
}
|
|
167
|
-
hasReplacements = true;
|
|
168
|
-
return `${prefix}${quote}${replacement}${suffix}`;
|
|
169
|
-
}
|
|
170
|
-
);
|
|
171
|
-
return hasReplacements ? rewritten : void 0;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
exports.normalizeOutputPathKey = normalizeOutputPathKey; exports.toAbsoluteOutputPath = toAbsoluteOutputPath; exports.resolveOutputSpecifier = resolveOutputSpecifier; exports.resolveDisabledOptions = resolveDisabledOptions; exports.resolvePackageDir = resolvePackageDir; exports.pushConcurrentTaskFactories = pushConcurrentTaskFactories; exports.resolveTailwindcssImport = resolveTailwindcssImport; exports.rewriteTailwindcssImportsInCode = rewriteTailwindcssImportsInCode;
|
package/dist/chunk-3VQKDHGP.mjs
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
// src/utils/disabled.ts
|
|
2
|
-
function resolveDisabledOptions(disabled) {
|
|
3
|
-
if (disabled === true) {
|
|
4
|
-
return { plugin: true, rewriteCssImports: false };
|
|
5
|
-
}
|
|
6
|
-
if (disabled === false || disabled == null) {
|
|
7
|
-
return { plugin: false, rewriteCssImports: false };
|
|
8
|
-
}
|
|
9
|
-
return {
|
|
10
|
-
plugin: disabled.plugin ?? false,
|
|
11
|
-
rewriteCssImports: disabled.rewriteCssImports ?? false
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// src/utils/resolve-package.ts
|
|
16
|
-
import { createRequire } from "module";
|
|
17
|
-
import path from "path";
|
|
18
|
-
var require2 = createRequire(import.meta.url);
|
|
19
|
-
function resolvePackageDir(name) {
|
|
20
|
-
const pkgPath = require2.resolve(`${name}/package.json`);
|
|
21
|
-
return path.dirname(pkgPath);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// src/bundlers/shared/module-graph.ts
|
|
25
|
-
import path2 from "path";
|
|
26
|
-
var QUERY_HASH_RE = /[?#].*$/u;
|
|
27
|
-
var PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
|
|
28
|
-
var WINDOWS_ABSOLUTE_RE = /^[a-z]:[\\/]/iu;
|
|
29
|
-
var VIRTUAL_PREFIX = "\0";
|
|
30
|
-
var JS_EXTENSIONS = [".js", ".mjs", ".cjs"];
|
|
31
|
-
function normalizeOutputPathKey(value) {
|
|
32
|
-
return path2.normalize(value).replace(/\\/g, "/");
|
|
33
|
-
}
|
|
34
|
-
function stripQueryAndHash(specifier) {
|
|
35
|
-
return specifier.replace(QUERY_HASH_RE, "");
|
|
36
|
-
}
|
|
37
|
-
function isResolvableSpecifier(specifier) {
|
|
38
|
-
if (!specifier) {
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
const normalized = stripQueryAndHash(specifier);
|
|
42
|
-
if (normalized.startsWith(VIRTUAL_PREFIX)) {
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
if (path2.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
return !PROTOCOL_RE.test(normalized);
|
|
49
|
-
}
|
|
50
|
-
function toAbsoluteOutputPath(fileName, outDir) {
|
|
51
|
-
if (path2.isAbsolute(fileName) || WINDOWS_ABSOLUTE_RE.test(fileName)) {
|
|
52
|
-
return path2.normalize(fileName);
|
|
53
|
-
}
|
|
54
|
-
return path2.resolve(outDir, fileName);
|
|
55
|
-
}
|
|
56
|
-
function matchWithExtensions(candidate, hasOutput) {
|
|
57
|
-
if (hasOutput(candidate)) {
|
|
58
|
-
return candidate;
|
|
59
|
-
}
|
|
60
|
-
if (!path2.extname(candidate)) {
|
|
61
|
-
for (const ext of JS_EXTENSIONS) {
|
|
62
|
-
const extended = `${candidate}${ext}`;
|
|
63
|
-
if (hasOutput(extended)) {
|
|
64
|
-
return extended;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return void 0;
|
|
69
|
-
}
|
|
70
|
-
function resolveOutputSpecifier(specifier, importer, outDir, hasOutput) {
|
|
71
|
-
if (!isResolvableSpecifier(specifier)) {
|
|
72
|
-
return void 0;
|
|
73
|
-
}
|
|
74
|
-
const normalized = stripQueryAndHash(specifier);
|
|
75
|
-
let candidate;
|
|
76
|
-
if (path2.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) {
|
|
77
|
-
candidate = path2.normalize(normalized);
|
|
78
|
-
} else if (normalized.startsWith("/")) {
|
|
79
|
-
candidate = path2.resolve(outDir, normalized.slice(1));
|
|
80
|
-
} else {
|
|
81
|
-
candidate = path2.resolve(path2.dirname(importer), normalized);
|
|
82
|
-
}
|
|
83
|
-
return matchWithExtensions(candidate, hasOutput);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// src/bundlers/shared/run-tasks.ts
|
|
87
|
-
async function runWithConcurrency(factories, limit = Math.min(4, Math.max(1, factories.length))) {
|
|
88
|
-
if (factories.length === 0) {
|
|
89
|
-
return [];
|
|
90
|
-
}
|
|
91
|
-
const results = Array.from({ length: factories.length });
|
|
92
|
-
const executing = /* @__PURE__ */ new Set();
|
|
93
|
-
let cursor = 0;
|
|
94
|
-
const effectiveLimit = Math.max(1, limit);
|
|
95
|
-
const scheduleNext = () => {
|
|
96
|
-
if (cursor >= factories.length) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
const currentIndex = cursor++;
|
|
100
|
-
const wrapped = Promise.resolve(factories[currentIndex]()).then((value) => {
|
|
101
|
-
results[currentIndex] = value;
|
|
102
|
-
}).finally(() => {
|
|
103
|
-
executing.delete(wrapped);
|
|
104
|
-
});
|
|
105
|
-
executing.add(wrapped);
|
|
106
|
-
};
|
|
107
|
-
while (cursor < factories.length && executing.size < effectiveLimit) {
|
|
108
|
-
scheduleNext();
|
|
109
|
-
}
|
|
110
|
-
while (cursor < factories.length) {
|
|
111
|
-
await Promise.race(executing);
|
|
112
|
-
scheduleNext();
|
|
113
|
-
}
|
|
114
|
-
await Promise.all(executing);
|
|
115
|
-
return results;
|
|
116
|
-
}
|
|
117
|
-
function pushConcurrentTaskFactories(queue, factories, limit) {
|
|
118
|
-
if (factories.length === 0) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
queue.push(
|
|
122
|
-
runWithConcurrency(factories, limit).then(() => void 0)
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// src/bundlers/shared/css-imports.ts
|
|
127
|
-
import path3 from "path";
|
|
128
|
-
var tailwindcssImportRE = /^tailwindcss(?:\/.*)?$/;
|
|
129
|
-
var tailwindcssCssImportStatementRE = /(@import\s+(?:url\(\s*)?)(["'])(tailwindcss(?:\/[^"']*)?\$?)(\2\s*\)?)/gi;
|
|
130
|
-
function normalizeTailwindcssSpecifier(specifier) {
|
|
131
|
-
if (specifier === "tailwindcss$") {
|
|
132
|
-
return "tailwindcss";
|
|
133
|
-
}
|
|
134
|
-
return specifier;
|
|
135
|
-
}
|
|
136
|
-
function getTailwindcssSubpath(specifier) {
|
|
137
|
-
if (specifier === "tailwindcss") {
|
|
138
|
-
return "index.css";
|
|
139
|
-
}
|
|
140
|
-
return specifier.slice("tailwindcss/".length);
|
|
141
|
-
}
|
|
142
|
-
function resolveTailwindcssImport(specifier, pkgDir, options) {
|
|
143
|
-
const normalized = normalizeTailwindcssSpecifier(specifier);
|
|
144
|
-
if (!tailwindcssImportRE.test(normalized)) {
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
if (normalized === "tailwindcss") {
|
|
148
|
-
return "weapp-tailwindcss/index.css";
|
|
149
|
-
}
|
|
150
|
-
const join = options?.join ?? path3.join;
|
|
151
|
-
const subpath = getTailwindcssSubpath(normalized);
|
|
152
|
-
return join(pkgDir, subpath);
|
|
153
|
-
}
|
|
154
|
-
function rewriteTailwindcssImportsInCode(code, pkgDir, options) {
|
|
155
|
-
let hasReplacements = false;
|
|
156
|
-
const rewritten = code.replace(
|
|
157
|
-
tailwindcssCssImportStatementRE,
|
|
158
|
-
(full, prefix, quote, specifier, suffix) => {
|
|
159
|
-
const replacement = resolveTailwindcssImport(specifier, pkgDir, options);
|
|
160
|
-
if (!replacement) {
|
|
161
|
-
return full;
|
|
162
|
-
}
|
|
163
|
-
hasReplacements = true;
|
|
164
|
-
return `${prefix}${quote}${replacement}${suffix}`;
|
|
165
|
-
}
|
|
166
|
-
);
|
|
167
|
-
return hasReplacements ? rewritten : void 0;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export {
|
|
171
|
-
normalizeOutputPathKey,
|
|
172
|
-
toAbsoluteOutputPath,
|
|
173
|
-
resolveOutputSpecifier,
|
|
174
|
-
resolveDisabledOptions,
|
|
175
|
-
resolvePackageDir,
|
|
176
|
-
pushConcurrentTaskFactories,
|
|
177
|
-
resolveTailwindcssImport,
|
|
178
|
-
rewriteTailwindcssImportsInCode
|
|
179
|
-
};
|
package/dist/chunk-4AFQP74Z.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __async = (__this, __arguments, generator) => {
|
|
2
|
-
return new Promise((resolve, reject) => {
|
|
3
|
-
var fulfilled = (value) => {
|
|
4
|
-
try {
|
|
5
|
-
step(generator.next(value));
|
|
6
|
-
} catch (e) {
|
|
7
|
-
reject(e);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
var rejected = (value) => {
|
|
11
|
-
try {
|
|
12
|
-
step(generator.throw(value));
|
|
13
|
-
} catch (e) {
|
|
14
|
-
reject(e);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.__async = __async;
|