weapp-tailwindcss 5.5.5 → 5.5.6
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/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +5 -4
- package/dist/bundlers/shared/final-css-cleanup.d.ts +1 -2
- package/dist/bundlers/shared/framework-css-composition.d.ts +1 -0
- package/dist/bundlers/shared/framework-postcss.d.ts +2 -1
- package/dist/bundlers/shared/framework-user-css.d.ts +1 -0
- package/dist/bundlers/shared/generated-css-marker.d.ts +1 -0
- package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +5 -7
- package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +4 -1
- package/dist/bundlers/shared/generator-css/legacy-selectors.d.ts +1 -4
- package/dist/bundlers/shared/generator-css/legacy-units.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +4 -2
- package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/types.d.ts +6 -3
- package/dist/bundlers/shared/generator-css/user-css/apply-only.d.ts +1 -0
- package/dist/bundlers/shared/generator-css/user-css/compile-functions.d.ts +4 -0
- package/dist/bundlers/shared/generator-css/user-css/generated-cleanup.d.ts +3 -1
- package/dist/bundlers/shared/generator-css/user-css/source-fragments.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +3 -0
- package/dist/bundlers/shared/style-handler-options.d.ts +7 -0
- package/dist/bundlers/shared/v4-generation-core.d.ts +0 -1
- package/dist/bundlers/vite/css-finalizer/css-calc.d.ts +3 -0
- package/dist/bundlers/vite/css-finalizer/final-assets.d.ts +3 -0
- package/dist/bundlers/vite/css-handler-options.d.ts +1 -1
- package/dist/bundlers/vite/frameworks/generic/web.d.ts +2 -1
- package/dist/bundlers/vite/generate-bundle/css-transform-decision-plan.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/finalize/sync-processed-css.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/framework-style-memory.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/js-handler-options.d.ts +7 -0
- package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/rollup-assets.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/runtime.d.ts +3 -1
- package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/types.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/web-css-module.d.ts +1 -0
- package/dist/bundlers/vite/plugin-hook.d.ts +3 -0
- package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +3 -1
- package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +1 -1
- package/dist/bundlers/vite/processed-css-assets/scoped-tailwind-noise.d.ts +1 -1
- package/dist/bundlers/vite/shared/create-framework-plugins-runtime.d.ts +3 -1
- package/dist/bundlers/vite/shared/framework-module-candidates.d.ts +2 -1
- package/dist/bundlers/vite/shared/framework-runtime-configuration.d.ts +3 -0
- package/dist/bundlers/vite/shared/framework-runtime-options.d.ts +9 -0
- package/dist/bundlers/vite/shared/framework-runtime-utils.d.ts +6 -5
- package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +3 -3
- package/dist/bundlers/vite/shared/framework-strategy.d.ts +3 -1
- package/dist/bundlers/vite/shared/hmr-source.d.ts +2 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/processed-css-task.d.ts +2 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +1 -1
- package/dist/bundlers/webpack/shared/create-framework-plugin/plugin.d.ts +1 -1
- package/dist/compiler/index.d.ts +2 -0
- package/dist/compiler/semantic-css.d.ts +1 -1
- package/dist/compiler/types.d.ts +1 -1
- package/dist/{compiler-Cc0JXfbw.cjs → compiler-C8FqI-P3.cjs} +17378 -40552
- package/dist/{compiler-D_vxtEdw.js → compiler-D3GBwxoa.js} +32 -23
- package/dist/core/compiler/transforms.d.ts +1 -1
- package/dist/core.cjs +4 -4
- package/dist/core.js +4 -4
- package/dist/{css-imports-FRZwX4P6.cjs → css-imports-XvtI1zCY.cjs} +2 -3
- package/dist/css-macro.cjs +1 -1
- package/dist/css-macro.js +1 -1
- package/dist/{defaults-CKx-4LcW.js → defaults-AQuvJS-h.js} +4 -2
- package/dist/{defaults-CiGsr8Xq.cjs → defaults-CyX5iO9y.cjs} +4 -2
- package/dist/defaults.cjs +1 -1
- package/dist/defaults.js +1 -1
- package/dist/final-css-cleanup-CDTmVAye.cjs +1 -0
- package/dist/{final-css-cleanup-B0HUBtiE.js → final-css-cleanup-u_sI2p56.js} +1 -126
- package/dist/framework/index.d.ts +1 -1
- package/dist/framework/platform.d.ts +2 -2
- package/dist/{generator-BdSIvFEO.cjs → generator-Bvr4WmuF.cjs} +135 -149
- package/dist/{generator-CAOx1Sqm.js → generator-C0BJjyLM.js} +116 -130
- package/dist/generator.cjs +1 -1
- package/dist/generator.js +1 -1
- package/dist/{gulp-Dnt8VL8D.cjs → gulp-BExe5RBF.cjs} +8 -8
- package/dist/{gulp-B1mPTMqw.js → gulp-BhkIIk7J.js} +5 -5
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-wAt0LavM.js → hmr-timing-B9Yt86-U.js} +299 -404
- package/dist/{hmr-timing-qpX410qU.cjs → hmr-timing-CoiJIqDu.cjs} +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/js/NodePathWalker.d.ts +1 -1
- package/dist/js/node-path-walker/export-handlers.d.ts +1 -1
- package/dist/js/node-path-walker/import-tokens.d.ts +1 -1
- package/dist/{pipeline-helpers-BHagysZY.cjs → pipeline-helpers-BOjTEmMi.cjs} +6 -6
- package/dist/postcss.cjs +1 -1
- package/dist/postcss.js +1 -1
- package/dist/presets.cjs +2 -2
- package/dist/presets.js +2 -2
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.js +2 -2
- package/dist/{scoped-generator-BqxVxNp9.js → scoped-generator-B6Y1bxzM.js} +46 -31
- package/dist/{scoped-generator-CtetE5rm.cjs → scoped-generator-BUBls_oM.cjs} +46 -31
- package/dist/{source-candidate-scan-signature-BDGB9nKZ.cjs → source-candidate-scan-signature-BtJZp28T.cjs} +32 -3
- package/dist/{source-candidate-scan-signature-Lm32zKVA.js → source-candidate-scan-signature-DNuGKTqf.js} +21 -4
- package/dist/style-injector/internal.d.ts +118 -8
- package/dist/style-injector/options.d.ts +5 -1
- package/dist/tailwindcss/runtime-options.d.ts +5 -0
- package/dist/tailwindcss/v4/preflight.d.ts +0 -1
- package/dist/tailwindcss/v4-engine/generator/style-context.d.ts +1 -3
- package/dist/{tailwindcss-DTV9MoJT.js → tailwindcss-B_4E52WF.js} +7 -13
- package/dist/{tailwindcss-9e6ZuYgS.cjs → tailwindcss-CBYjzRmV.cjs} +4 -10
- package/dist/{transform-BbbZvFQq.js → transform-CkEnJYIP.js} +18 -12
- package/dist/{transform-D21f8Dm8.cjs → transform-FkqbTBJR.cjs} +17 -11
- package/dist/types/index.d.ts +3 -2
- package/dist/uni-app-x/border-preflight.d.ts +1 -2
- package/dist/uni-app-x/component-local-style.d.ts +2 -1
- package/dist/uni-app-x/transform.d.ts +4 -2
- package/dist/uni-app-x/vite/author-apply.d.ts +3 -1
- package/dist/uni-app-x/vite/native-hmr.d.ts +1 -1
- package/dist/uni-app-x/vite/style-result.d.ts +5 -0
- package/dist/{v4-generation-core-DJBWZ_D0.cjs → v4-generation-core-Cz1D7wm1.cjs} +313 -418
- package/dist/vite/web.cjs +1 -1
- package/dist/vite/web.js +1 -1
- package/dist/{vite-CaH7WjX6.cjs → vite-DxuKPZlp.cjs} +565 -592
- package/dist/{vite-CuYntLZP.js → vite-lP35OguX.js} +558 -578
- package/dist/vite-web.d.ts +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/weapp-tw-css-generation-loader.cjs +2 -2
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +7 -7
- package/dist/{web-CdXkY_VO.js → web-Dfz_jpNj.js} +144 -107
- package/dist/{web-CYs2Kcaa.cjs → web-DhDxhlkq.cjs} +156 -107
- package/dist/{webpack-BnCSOUuu.js → webpack-D6jp1o3m.js} +18 -17
- package/dist/{webpack-BQNnpQPC.cjs → webpack-R2Sbggiy.cjs} +20 -20
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/dist/wxml/utils/codegen/legacy-visitor.d.ts +2 -2
- package/dist/wxml/utils/custom-template.d.ts +1 -1
- package/package.json +8 -10
- package/dist/final-css-cleanup-DSjczga3.cjs +0 -138
- package/dist/tailwindcss/v4-engine/css-import.d.ts +0 -14
- package/dist/uni-app-x/style-asset/source-parser.d.ts +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
|
-
const require_generator = require("./generator-
|
|
3
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
4
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
5
|
-
const require_compiler = require("./compiler-
|
|
2
|
+
const require_generator = require("./generator-Bvr4WmuF.cjs");
|
|
3
|
+
const require_tailwindcss = require("./tailwindcss-CBYjzRmV.cjs");
|
|
4
|
+
const require_v4_generation_core = require("./v4-generation-core-Cz1D7wm1.cjs");
|
|
5
|
+
const require_compiler = require("./compiler-C8FqI-P3.cjs");
|
|
6
6
|
let node_process = require("node:process");
|
|
7
7
|
node_process = require_rolldown_runtime.__toESM(node_process, 1);
|
|
8
8
|
let _tailwindcss_mangle_engine = require("@tailwindcss-mangle/engine");
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_framework = require("./framework.cjs");
|
|
3
|
-
const require_generator = require("./generator-
|
|
4
|
-
const require_gulp = require("./gulp-
|
|
3
|
+
const require_generator = require("./generator-Bvr4WmuF.cjs");
|
|
4
|
+
const require_gulp = require("./gulp-BExe5RBF.cjs");
|
|
5
5
|
const require_postcss = require("./postcss.cjs");
|
|
6
|
-
const require_vite = require("./vite-
|
|
7
|
-
const require_webpack = require("./webpack-
|
|
6
|
+
const require_vite = require("./vite-DxuKPZlp.cjs");
|
|
7
|
+
const require_webpack = require("./webpack-R2Sbggiy.cjs");
|
|
8
8
|
require("./webpack.cjs");
|
|
9
9
|
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
10
10
|
exports.WeappTailwindcss = require_vite.WeappTailwindcss;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform } from "./framework.js";
|
|
2
|
-
import { t as createWeappTailwindcssGenerator } from "./generator-
|
|
3
|
-
import { t as createPlugins } from "./gulp-
|
|
2
|
+
import { t as createWeappTailwindcssGenerator } from "./generator-C0BJjyLM.js";
|
|
3
|
+
import { t as createPlugins } from "./gulp-BhkIIk7J.js";
|
|
4
4
|
import weappTailwindcssPostcssPlugin from "./postcss.js";
|
|
5
|
-
import { t as WeappTailwindcss } from "./vite-
|
|
6
|
-
import { n as weappTailwindcssPackageDir } from "./webpack-
|
|
5
|
+
import { t as WeappTailwindcss } from "./vite-lP35OguX.js";
|
|
6
|
+
import { n as weappTailwindcssPackageDir } from "./webpack-D6jp1o3m.js";
|
|
7
7
|
import "./webpack.js";
|
|
8
8
|
import { unitConversionComposeRules, unitConversionPresets } from "@weapp-tailwindcss/postcss";
|
|
9
9
|
export { WeappTailwindcss, createPlugins, createWeappTailwindcssGenerator, detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform, unitConversionComposeRules, unitConversionPresets, weappTailwindcssPackageDir, weappTailwindcssPostcssPlugin };
|
|
@@ -24,7 +24,7 @@ export declare class NodePathWalker {
|
|
|
24
24
|
walkLogicalExpression(path: NodePath<LogicalExpression>): void;
|
|
25
25
|
walkObjectExpression(path: NodePath<ObjectExpression>): void;
|
|
26
26
|
walkArrayExpression(path: NodePath<ArrayExpression>): void;
|
|
27
|
-
walkNode(arg: NodePath<Node | null
|
|
27
|
+
walkNode(arg: NodePath<Node | null>): void;
|
|
28
28
|
walkCallExpression(path: NodePath<CallExpression>): void;
|
|
29
29
|
walkExportDeclaration(path: NodePath<ExportDeclaration>): void;
|
|
30
30
|
walkExportNamedDeclaration(path: NodePath<ExportNamedDeclaration>): void;
|
|
@@ -3,7 +3,7 @@ import type { ExportAllDeclaration, ExportDeclaration, ExportDefaultDeclaration,
|
|
|
3
3
|
import type { ImportToken } from './import-tokens.js';
|
|
4
4
|
interface ExportWalkContext {
|
|
5
5
|
addImportToken: (token: ImportToken) => void;
|
|
6
|
-
walkNode: (path: NodePath<Node | null
|
|
6
|
+
walkNode: (path: NodePath<Node | null>) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare function walkExportDeclaration(ctx: ExportWalkContext, path: NodePath<ExportDeclaration>): void;
|
|
9
9
|
export declare function walkExportNamedDeclaration(ctx: ExportWalkContext, path: NodePath<ExportNamedDeclaration>): void;
|
|
@@ -21,4 +21,4 @@ export interface ExportAllDeclarationImportToken {
|
|
|
21
21
|
type: 'ExportAllDeclaration';
|
|
22
22
|
}
|
|
23
23
|
export type ImportToken = ImportSpecifierImportToken | ImportDefaultSpecifierImportToken | ExportAllDeclarationImportToken;
|
|
24
|
-
export declare function maybeAddImportToken(imports: Set<ImportToken>, arg: NodePath<Node | null
|
|
24
|
+
export declare function maybeAddImportToken(imports: Set<ImportToken>, arg: NodePath<Node | null>): boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
|
-
const require_generator = require("./generator-
|
|
3
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
4
|
-
const require_compiler = require("./compiler-
|
|
5
|
-
const require_defaults = require("./defaults-
|
|
6
|
-
|
|
2
|
+
const require_generator = require("./generator-Bvr4WmuF.cjs");
|
|
3
|
+
const require_v4_generation_core = require("./v4-generation-core-Cz1D7wm1.cjs");
|
|
4
|
+
const require_compiler = require("./compiler-C8FqI-P3.cjs");
|
|
5
|
+
const require_defaults = require("./defaults-CyX5iO9y.cjs");
|
|
6
|
+
require("./final-css-cleanup-CDTmVAye.cjs");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
9
9
|
let node_process = require("node:process");
|
|
@@ -533,7 +533,7 @@ function finalizeWebpackCssAssetOutputSource(source, compilerOptions, isWebGener
|
|
|
533
533
|
active: styleOptions.cssRemoveActivePseudoClass ?? true,
|
|
534
534
|
hover: styleOptions.cssRemoveHoverPseudoClass ?? true
|
|
535
535
|
}));
|
|
536
|
-
return
|
|
536
|
+
return (0, _weapp_tailwindcss_postcss.finalizeMiniProgramCssStructure)(finalized);
|
|
537
537
|
}
|
|
538
538
|
function collectWebpackJsRuntimeCandidatesFromAssets(options) {
|
|
539
539
|
if (options.isWebGeneratorTarget) return;
|
package/dist/postcss.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_generator = require("./generator-
|
|
5
|
+
const require_generator = require("./generator-Bvr4WmuF.cjs");
|
|
6
6
|
const weappTailwindcssPostcssPlugin = (0, require("@weapp-tailwindcss/postcss").createWeappTailwindcssPostcssPlugin)({
|
|
7
7
|
createGenerator: (source) => {
|
|
8
8
|
return require_generator.createWeappTailwindcssGenerator(source);
|
package/dist/postcss.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator, u as resolveTailwindV4Source } from "./generator-
|
|
1
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator, u as resolveTailwindV4Source } from "./generator-C0BJjyLM.js";
|
|
2
2
|
import { createWeappTailwindcssPostcssPlugin } from "@weapp-tailwindcss/postcss";
|
|
3
3
|
const weappTailwindcssPostcssPlugin = createWeappTailwindcssPostcssPlugin({
|
|
4
4
|
createGenerator: (source) => {
|
package/dist/presets.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
3
3
|
const require_framework = require("./framework.cjs");
|
|
4
|
-
const require_generator = require("./generator-
|
|
5
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
4
|
+
const require_generator = require("./generator-Bvr4WmuF.cjs");
|
|
5
|
+
const require_tailwindcss = require("./tailwindcss-CBYjzRmV.cjs");
|
|
6
6
|
require("./utils-CuKLf1Zv.cjs");
|
|
7
7
|
require("./logger-TlKT3xmR.cjs");
|
|
8
8
|
let node_path = require("node:path");
|
package/dist/presets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveTaroPlatform, resolveUniPlatformsFromEnv } from "./framework.js";
|
|
2
|
-
import { T as omitUndefined } from "./generator-
|
|
3
|
-
import { i as resolveUniAppXOptions, n as resolveTailwindcssBasedir } from "./tailwindcss-
|
|
2
|
+
import { T as omitUndefined } from "./generator-C0BJjyLM.js";
|
|
3
|
+
import { i as resolveUniAppXOptions, n as resolveTailwindcssBasedir } from "./tailwindcss-B_4E52WF.js";
|
|
4
4
|
import { n as defuOverrideArray } from "./utils-MVwpU07P.js";
|
|
5
5
|
import { t as logger } from "./logger-BNzxZbZj.js";
|
|
6
6
|
import path from "node:path";
|
package/dist/rspack.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
3
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
4
|
-
const require_webpack = require("./webpack-
|
|
3
|
+
const require_v4_generation_core = require("./v4-generation-core-Cz1D7wm1.cjs");
|
|
4
|
+
const require_webpack = require("./webpack-R2Sbggiy.cjs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
7
7
|
//#region src/bundlers/rspack/rule-match.ts
|
package/dist/rspack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as isSourceStyleRequest } from "./hmr-timing-
|
|
2
|
-
import { n as weappTailwindcssPackageDir, r as __dirname, t as WeappTailwindcss } from "./webpack-
|
|
1
|
+
import { C as isSourceStyleRequest } from "./hmr-timing-B9Yt86-U.js";
|
|
2
|
+
import { n as weappTailwindcssPackageDir, r as __dirname, t as WeappTailwindcss } from "./webpack-D6jp1o3m.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
//#region src/bundlers/rspack/rule-match.ts
|
|
5
5
|
const STYLE_RULE_PROBES = [
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { detectAppType } from "./framework.js";
|
|
2
|
+
import { T as omitUndefined } from "./generator-C0BJjyLM.js";
|
|
2
3
|
import { n as hasCssMacroTailwindV4CustomVariantConditionalComments } from "./auto-2dg_uhEJ.js";
|
|
3
|
-
import { g as resolveTailwindV4EntriesFromCssCached, i as resolveUniAppXOptions } from "./tailwindcss-
|
|
4
|
-
import { C as isSourceStyleRequest } from "./hmr-timing-
|
|
5
|
-
import { o as normalizeStyleInjectorOptions } from "./source-candidate-scan-signature-
|
|
4
|
+
import { g as resolveTailwindV4EntriesFromCssCached, i as resolveUniAppXOptions } from "./tailwindcss-B_4E52WF.js";
|
|
5
|
+
import { C as isSourceStyleRequest } from "./hmr-timing-B9Yt86-U.js";
|
|
6
|
+
import { c as getViteHookHandler, o as normalizeStyleInjectorOptions, s as resolveStyleInjectorSubPackages } from "./source-candidate-scan-signature-DNuGKTqf.js";
|
|
6
7
|
import path from "node:path";
|
|
7
8
|
import { weappStyleInjector } from "weapp-style-injector/vite";
|
|
8
9
|
import { StyleInjector } from "weapp-style-injector/vite/taro";
|
|
@@ -76,7 +77,7 @@ function resolveWebpackFrameworkProfile(options) {
|
|
|
76
77
|
//#endregion
|
|
77
78
|
//#region src/style-injector/internal.ts
|
|
78
79
|
function toPluginArray(pluginOrPlugins) {
|
|
79
|
-
return Array.isArray(pluginOrPlugins) ? pluginOrPlugins : [pluginOrPlugins];
|
|
80
|
+
return pluginOrPlugins ? Array.isArray(pluginOrPlugins) ? pluginOrPlugins : [pluginOrPlugins] : [];
|
|
80
81
|
}
|
|
81
82
|
function normalizeWebpackStyleInjectorOptions(options) {
|
|
82
83
|
const normalized = normalizeStyleInjectorOptions(options);
|
|
@@ -95,29 +96,36 @@ function normalizeWebpackStyleInjectorOptions(options) {
|
|
|
95
96
|
};
|
|
96
97
|
return webpackOptions;
|
|
97
98
|
}
|
|
98
|
-
function getTransformHandler(hook) {
|
|
99
|
-
if (typeof hook === "function") return hook;
|
|
100
|
-
if (hook && typeof hook === "object" && typeof hook.handler === "function") return hook.handler;
|
|
101
|
-
}
|
|
102
|
-
function getGenerateBundleHandler(hook) {
|
|
103
|
-
if (typeof hook === "function") return hook;
|
|
104
|
-
if (hook && typeof hook === "object" && typeof hook.handler === "function") return hook.handler;
|
|
105
|
-
}
|
|
106
99
|
const viteStyleInjectorDelegates = {
|
|
107
100
|
generic: ((options) => [weappStyleInjector(options)]),
|
|
108
|
-
taro: ((options) => toPluginArray(StyleInjector(
|
|
109
|
-
|
|
101
|
+
taro: ((options) => toPluginArray(StyleInjector(omitUndefined({
|
|
102
|
+
...options,
|
|
103
|
+
subPackages: resolveStyleInjectorSubPackages(options.subPackages, "appConfigPath")
|
|
104
|
+
})))),
|
|
105
|
+
uniApp: ((options) => toPluginArray(StyleInjector$1(omitUndefined({
|
|
106
|
+
...options,
|
|
107
|
+
subPackages: resolveStyleInjectorSubPackages(options.subPackages, "pagesJsonPath")
|
|
108
|
+
}))))
|
|
110
109
|
};
|
|
111
110
|
const webpackStyleInjectorDelegates = {
|
|
112
|
-
generic: ((options) => weappStyleInjectorWebpack(options)),
|
|
113
|
-
mpx: ((options) => StyleInjector$2(
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
generic: ((options) => weappStyleInjectorWebpack(omitUndefined(options))),
|
|
112
|
+
mpx: ((options) => StyleInjector$2(omitUndefined({
|
|
113
|
+
...options,
|
|
114
|
+
subPackages: resolveStyleInjectorSubPackages(options.subPackages, "appPath")
|
|
115
|
+
}))),
|
|
116
|
+
taro: ((options) => StyleInjector$3(omitUndefined({
|
|
117
|
+
...options,
|
|
118
|
+
subPackages: resolveStyleInjectorSubPackages(options.subPackages, "appConfigPath")
|
|
119
|
+
}))),
|
|
120
|
+
uniApp: ((options) => StyleInjector$4(omitUndefined({
|
|
121
|
+
...options,
|
|
122
|
+
subPackages: resolveStyleInjectorSubPackages(options.subPackages, "pagesJsonPath")
|
|
123
|
+
})))
|
|
116
124
|
};
|
|
117
125
|
function createBuiltinViteStyleInjectorPlugins(options, getDelegateFactory) {
|
|
118
126
|
const normalized = normalizeStyleInjectorOptions(options);
|
|
119
127
|
if (!normalized) return [];
|
|
120
|
-
let
|
|
128
|
+
let configuration;
|
|
121
129
|
let delegates;
|
|
122
130
|
let delegatesConfigured = false;
|
|
123
131
|
let delegatesBuildStarted = false;
|
|
@@ -127,31 +135,35 @@ function createBuiltinViteStyleInjectorPlugins(options, getDelegateFactory) {
|
|
|
127
135
|
return delegates;
|
|
128
136
|
};
|
|
129
137
|
const configureDelegates = async () => {
|
|
130
|
-
if (delegatesConfigured || !
|
|
138
|
+
if (delegatesConfigured || !configuration) return;
|
|
131
139
|
delegatesConfigured = true;
|
|
132
|
-
for (const plugin of resolveDelegates())
|
|
140
|
+
for (const plugin of resolveDelegates()) await getViteHookHandler(plugin.configResolved)?.call(configuration.context, configuration.config);
|
|
133
141
|
};
|
|
134
|
-
const startDelegates = async (context) => {
|
|
142
|
+
const startDelegates = async (context, buildOptions) => {
|
|
135
143
|
if (delegatesBuildStarted) return;
|
|
136
144
|
await configureDelegates();
|
|
137
145
|
delegatesBuildStarted = true;
|
|
138
|
-
for (const plugin of resolveDelegates())
|
|
146
|
+
for (const plugin of resolveDelegates()) await getViteHookHandler(plugin.buildStart)?.call(context, buildOptions);
|
|
139
147
|
};
|
|
140
148
|
return [{
|
|
141
149
|
name: "weapp-tailwindcss:style-injector-pre",
|
|
142
150
|
apply: "build",
|
|
143
151
|
enforce: "pre",
|
|
144
152
|
configResolved(resolvedConfig) {
|
|
145
|
-
|
|
153
|
+
configuration = {
|
|
154
|
+
config: resolvedConfig,
|
|
155
|
+
context: this
|
|
156
|
+
};
|
|
146
157
|
},
|
|
147
|
-
async buildStart() {
|
|
148
|
-
await startDelegates(this);
|
|
158
|
+
async buildStart(buildOptions) {
|
|
159
|
+
await startDelegates(this, buildOptions);
|
|
149
160
|
},
|
|
150
161
|
async load(id, options) {
|
|
151
162
|
await configureDelegates();
|
|
152
163
|
for (const plugin of resolveDelegates()) {
|
|
153
|
-
|
|
154
|
-
|
|
164
|
+
const handler = getViteHookHandler(plugin.load);
|
|
165
|
+
if (!handler) continue;
|
|
166
|
+
const result = await handler.call(this, id, options);
|
|
155
167
|
if (result != null) return result;
|
|
156
168
|
}
|
|
157
169
|
},
|
|
@@ -160,7 +172,7 @@ function createBuiltinViteStyleInjectorPlugins(options, getDelegateFactory) {
|
|
|
160
172
|
let currentCode = code;
|
|
161
173
|
let changed = false;
|
|
162
174
|
for (const plugin of resolveDelegates()) {
|
|
163
|
-
const handler =
|
|
175
|
+
const handler = getViteHookHandler(plugin.transform);
|
|
164
176
|
if (!handler) continue;
|
|
165
177
|
const result = await handler.call(this, currentCode, id, options);
|
|
166
178
|
if (!result) continue;
|
|
@@ -182,12 +194,15 @@ function createBuiltinViteStyleInjectorPlugins(options, getDelegateFactory) {
|
|
|
182
194
|
apply: "build",
|
|
183
195
|
enforce: "post",
|
|
184
196
|
configResolved(resolvedConfig) {
|
|
185
|
-
|
|
197
|
+
configuration = {
|
|
198
|
+
config: resolvedConfig,
|
|
199
|
+
context: this
|
|
200
|
+
};
|
|
186
201
|
},
|
|
187
202
|
async generateBundle(outputOptions, bundle, isWrite) {
|
|
188
203
|
await configureDelegates();
|
|
189
204
|
for (const plugin of resolveDelegates()) {
|
|
190
|
-
const handler =
|
|
205
|
+
const handler = getViteHookHandler(plugin.generateBundle);
|
|
191
206
|
if (!handler) continue;
|
|
192
207
|
await handler.call(this, outputOptions, bundle, isWrite);
|
|
193
208
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
2
|
const require_framework = require("./framework.cjs");
|
|
3
|
+
const require_generator = require("./generator-Bvr4WmuF.cjs");
|
|
3
4
|
require("./auto-DtU6f3X6.cjs");
|
|
4
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
5
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
6
|
-
const require_source_candidate_scan_signature = require("./source-candidate-scan-signature-
|
|
5
|
+
const require_tailwindcss = require("./tailwindcss-CBYjzRmV.cjs");
|
|
6
|
+
const require_v4_generation_core = require("./v4-generation-core-Cz1D7wm1.cjs");
|
|
7
|
+
const require_source_candidate_scan_signature = require("./source-candidate-scan-signature-BtJZp28T.cjs");
|
|
7
8
|
let node_path = require("node:path");
|
|
8
9
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
9
10
|
let weapp_style_injector_vite = require("weapp-style-injector/vite");
|
|
@@ -79,7 +80,7 @@ function resolveWebpackFrameworkProfile(options) {
|
|
|
79
80
|
//#endregion
|
|
80
81
|
//#region src/style-injector/internal.ts
|
|
81
82
|
function toPluginArray(pluginOrPlugins) {
|
|
82
|
-
return Array.isArray(pluginOrPlugins) ? pluginOrPlugins : [pluginOrPlugins];
|
|
83
|
+
return pluginOrPlugins ? Array.isArray(pluginOrPlugins) ? pluginOrPlugins : [pluginOrPlugins] : [];
|
|
83
84
|
}
|
|
84
85
|
function normalizeWebpackStyleInjectorOptions(options) {
|
|
85
86
|
const normalized = require_source_candidate_scan_signature.normalizeStyleInjectorOptions(options);
|
|
@@ -98,29 +99,36 @@ function normalizeWebpackStyleInjectorOptions(options) {
|
|
|
98
99
|
};
|
|
99
100
|
return webpackOptions;
|
|
100
101
|
}
|
|
101
|
-
function getTransformHandler(hook) {
|
|
102
|
-
if (typeof hook === "function") return hook;
|
|
103
|
-
if (hook && typeof hook === "object" && typeof hook.handler === "function") return hook.handler;
|
|
104
|
-
}
|
|
105
|
-
function getGenerateBundleHandler(hook) {
|
|
106
|
-
if (typeof hook === "function") return hook;
|
|
107
|
-
if (hook && typeof hook === "object" && typeof hook.handler === "function") return hook.handler;
|
|
108
|
-
}
|
|
109
102
|
const viteStyleInjectorDelegates = {
|
|
110
103
|
generic: ((options) => [(0, weapp_style_injector_vite.weappStyleInjector)(options)]),
|
|
111
|
-
taro: ((options) => toPluginArray((0, weapp_style_injector_vite_taro.StyleInjector)(
|
|
112
|
-
|
|
104
|
+
taro: ((options) => toPluginArray((0, weapp_style_injector_vite_taro.StyleInjector)(require_generator.omitUndefined({
|
|
105
|
+
...options,
|
|
106
|
+
subPackages: require_source_candidate_scan_signature.resolveStyleInjectorSubPackages(options.subPackages, "appConfigPath")
|
|
107
|
+
})))),
|
|
108
|
+
uniApp: ((options) => toPluginArray((0, weapp_style_injector_vite_uni_app.StyleInjector)(require_generator.omitUndefined({
|
|
109
|
+
...options,
|
|
110
|
+
subPackages: require_source_candidate_scan_signature.resolveStyleInjectorSubPackages(options.subPackages, "pagesJsonPath")
|
|
111
|
+
}))))
|
|
113
112
|
};
|
|
114
113
|
const webpackStyleInjectorDelegates = {
|
|
115
|
-
generic: ((options) => (0, weapp_style_injector_webpack.weappStyleInjectorWebpack)(options)),
|
|
116
|
-
mpx: ((options) => (0, weapp_style_injector_webpack_mpx.StyleInjector)(
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
generic: ((options) => (0, weapp_style_injector_webpack.weappStyleInjectorWebpack)(require_generator.omitUndefined(options))),
|
|
115
|
+
mpx: ((options) => (0, weapp_style_injector_webpack_mpx.StyleInjector)(require_generator.omitUndefined({
|
|
116
|
+
...options,
|
|
117
|
+
subPackages: require_source_candidate_scan_signature.resolveStyleInjectorSubPackages(options.subPackages, "appPath")
|
|
118
|
+
}))),
|
|
119
|
+
taro: ((options) => (0, weapp_style_injector_webpack_taro.StyleInjector)(require_generator.omitUndefined({
|
|
120
|
+
...options,
|
|
121
|
+
subPackages: require_source_candidate_scan_signature.resolveStyleInjectorSubPackages(options.subPackages, "appConfigPath")
|
|
122
|
+
}))),
|
|
123
|
+
uniApp: ((options) => (0, weapp_style_injector_webpack_uni_app.StyleInjector)(require_generator.omitUndefined({
|
|
124
|
+
...options,
|
|
125
|
+
subPackages: require_source_candidate_scan_signature.resolveStyleInjectorSubPackages(options.subPackages, "pagesJsonPath")
|
|
126
|
+
})))
|
|
119
127
|
};
|
|
120
128
|
function createBuiltinViteStyleInjectorPlugins(options, getDelegateFactory) {
|
|
121
129
|
const normalized = require_source_candidate_scan_signature.normalizeStyleInjectorOptions(options);
|
|
122
130
|
if (!normalized) return [];
|
|
123
|
-
let
|
|
131
|
+
let configuration;
|
|
124
132
|
let delegates;
|
|
125
133
|
let delegatesConfigured = false;
|
|
126
134
|
let delegatesBuildStarted = false;
|
|
@@ -130,31 +138,35 @@ function createBuiltinViteStyleInjectorPlugins(options, getDelegateFactory) {
|
|
|
130
138
|
return delegates;
|
|
131
139
|
};
|
|
132
140
|
const configureDelegates = async () => {
|
|
133
|
-
if (delegatesConfigured || !
|
|
141
|
+
if (delegatesConfigured || !configuration) return;
|
|
134
142
|
delegatesConfigured = true;
|
|
135
|
-
for (const plugin of resolveDelegates())
|
|
143
|
+
for (const plugin of resolveDelegates()) await require_source_candidate_scan_signature.getViteHookHandler(plugin.configResolved)?.call(configuration.context, configuration.config);
|
|
136
144
|
};
|
|
137
|
-
const startDelegates = async (context) => {
|
|
145
|
+
const startDelegates = async (context, buildOptions) => {
|
|
138
146
|
if (delegatesBuildStarted) return;
|
|
139
147
|
await configureDelegates();
|
|
140
148
|
delegatesBuildStarted = true;
|
|
141
|
-
for (const plugin of resolveDelegates())
|
|
149
|
+
for (const plugin of resolveDelegates()) await require_source_candidate_scan_signature.getViteHookHandler(plugin.buildStart)?.call(context, buildOptions);
|
|
142
150
|
};
|
|
143
151
|
return [{
|
|
144
152
|
name: "weapp-tailwindcss:style-injector-pre",
|
|
145
153
|
apply: "build",
|
|
146
154
|
enforce: "pre",
|
|
147
155
|
configResolved(resolvedConfig) {
|
|
148
|
-
|
|
156
|
+
configuration = {
|
|
157
|
+
config: resolvedConfig,
|
|
158
|
+
context: this
|
|
159
|
+
};
|
|
149
160
|
},
|
|
150
|
-
async buildStart() {
|
|
151
|
-
await startDelegates(this);
|
|
161
|
+
async buildStart(buildOptions) {
|
|
162
|
+
await startDelegates(this, buildOptions);
|
|
152
163
|
},
|
|
153
164
|
async load(id, options) {
|
|
154
165
|
await configureDelegates();
|
|
155
166
|
for (const plugin of resolveDelegates()) {
|
|
156
|
-
|
|
157
|
-
|
|
167
|
+
const handler = require_source_candidate_scan_signature.getViteHookHandler(plugin.load);
|
|
168
|
+
if (!handler) continue;
|
|
169
|
+
const result = await handler.call(this, id, options);
|
|
158
170
|
if (result != null) return result;
|
|
159
171
|
}
|
|
160
172
|
},
|
|
@@ -163,7 +175,7 @@ function createBuiltinViteStyleInjectorPlugins(options, getDelegateFactory) {
|
|
|
163
175
|
let currentCode = code;
|
|
164
176
|
let changed = false;
|
|
165
177
|
for (const plugin of resolveDelegates()) {
|
|
166
|
-
const handler =
|
|
178
|
+
const handler = require_source_candidate_scan_signature.getViteHookHandler(plugin.transform);
|
|
167
179
|
if (!handler) continue;
|
|
168
180
|
const result = await handler.call(this, currentCode, id, options);
|
|
169
181
|
if (!result) continue;
|
|
@@ -185,12 +197,15 @@ function createBuiltinViteStyleInjectorPlugins(options, getDelegateFactory) {
|
|
|
185
197
|
apply: "build",
|
|
186
198
|
enforce: "post",
|
|
187
199
|
configResolved(resolvedConfig) {
|
|
188
|
-
|
|
200
|
+
configuration = {
|
|
201
|
+
config: resolvedConfig,
|
|
202
|
+
context: this
|
|
203
|
+
};
|
|
189
204
|
},
|
|
190
205
|
async generateBundle(outputOptions, bundle, isWrite) {
|
|
191
206
|
await configureDelegates();
|
|
192
207
|
for (const plugin of resolveDelegates()) {
|
|
193
|
-
const handler =
|
|
208
|
+
const handler = require_source_candidate_scan_signature.getViteHookHandler(plugin.generateBundle);
|
|
194
209
|
if (!handler) continue;
|
|
195
210
|
await handler.call(this, outputOptions, bundle, isWrite);
|
|
196
211
|
}
|
|
@@ -1,14 +1,31 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
|
-
const require_generator = require("./generator-
|
|
3
|
-
require("./tailwindcss-
|
|
2
|
+
const require_generator = require("./generator-Bvr4WmuF.cjs");
|
|
3
|
+
require("./tailwindcss-CBYjzRmV.cjs");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
6
6
|
let node_module = require("node:module");
|
|
7
|
+
//#region src/bundlers/vite/plugin-hook.ts
|
|
8
|
+
/** 保留具体 hook 的参数及 this 类型,兼容函数和对象形式。 */
|
|
9
|
+
function getViteHookHandler(hook) {
|
|
10
|
+
return typeof hook === "function" ? hook : hook?.handler;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
7
13
|
//#region src/style-injector/options.ts
|
|
8
14
|
function normalizeStyleInjectorOptions(options) {
|
|
9
15
|
if (options === true) return {};
|
|
10
16
|
if (!options) return;
|
|
11
|
-
return options;
|
|
17
|
+
return require_generator.omitUndefined(options);
|
|
18
|
+
}
|
|
19
|
+
/** 在框架入口校验分包配置,避免把另一框架的配置静默交给预设。 */
|
|
20
|
+
function resolveStyleInjectorSubPackages(subPackages, key) {
|
|
21
|
+
if (subPackages === void 0) return;
|
|
22
|
+
return (Array.isArray(subPackages) ? subPackages : [subPackages]).map((entry) => {
|
|
23
|
+
if (hasSubPackagePath(entry, key)) return entry;
|
|
24
|
+
throw new TypeError(`[weapp-style-injector] subPackages must provide ${key} for the selected framework.`);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function hasSubPackagePath(entry, key) {
|
|
28
|
+
return key in entry && typeof Reflect.get(entry, key) === "string";
|
|
12
29
|
}
|
|
13
30
|
//#endregion
|
|
14
31
|
//#region src/bundlers/shared/module-graph.ts
|
|
@@ -97,6 +114,12 @@ Object.defineProperty(exports, "createSourceCandidateScanSignature", {
|
|
|
97
114
|
return createSourceCandidateScanSignature;
|
|
98
115
|
}
|
|
99
116
|
});
|
|
117
|
+
Object.defineProperty(exports, "getViteHookHandler", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function() {
|
|
120
|
+
return getViteHookHandler;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
100
123
|
Object.defineProperty(exports, "normalizeOutputPathKey", {
|
|
101
124
|
enumerable: true,
|
|
102
125
|
get: function() {
|
|
@@ -121,6 +144,12 @@ Object.defineProperty(exports, "resolvePackageDir", {
|
|
|
121
144
|
return resolvePackageDir;
|
|
122
145
|
}
|
|
123
146
|
});
|
|
147
|
+
Object.defineProperty(exports, "resolveStyleInjectorSubPackages", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function() {
|
|
150
|
+
return resolveStyleInjectorSubPackages;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
124
153
|
Object.defineProperty(exports, "toAbsoluteOutputPath", {
|
|
125
154
|
enumerable: true,
|
|
126
155
|
get: function() {
|
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./tailwindcss-
|
|
1
|
+
import { Nt as toPosixPath, T as omitUndefined } from "./generator-C0BJjyLM.js";
|
|
2
|
+
import "./tailwindcss-B_4E52WF.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import path from "node:path";
|
|
5
|
+
//#region src/bundlers/vite/plugin-hook.ts
|
|
6
|
+
/** 保留具体 hook 的参数及 this 类型,兼容函数和对象形式。 */
|
|
7
|
+
function getViteHookHandler(hook) {
|
|
8
|
+
return typeof hook === "function" ? hook : hook?.handler;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
5
11
|
//#region src/style-injector/options.ts
|
|
6
12
|
function normalizeStyleInjectorOptions(options) {
|
|
7
13
|
if (options === true) return {};
|
|
8
14
|
if (!options) return;
|
|
9
|
-
return options;
|
|
15
|
+
return omitUndefined(options);
|
|
16
|
+
}
|
|
17
|
+
/** 在框架入口校验分包配置,避免把另一框架的配置静默交给预设。 */
|
|
18
|
+
function resolveStyleInjectorSubPackages(subPackages, key) {
|
|
19
|
+
if (subPackages === void 0) return;
|
|
20
|
+
return (Array.isArray(subPackages) ? subPackages : [subPackages]).map((entry) => {
|
|
21
|
+
if (hasSubPackagePath(entry, key)) return entry;
|
|
22
|
+
throw new TypeError(`[weapp-style-injector] subPackages must provide ${key} for the selected framework.`);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function hasSubPackagePath(entry, key) {
|
|
26
|
+
return key in entry && typeof Reflect.get(entry, key) === "string";
|
|
10
27
|
}
|
|
11
28
|
//#endregion
|
|
12
29
|
//#region src/bundlers/shared/module-graph.ts
|
|
@@ -89,4 +106,4 @@ function createSourceCandidateScanSignature(input) {
|
|
|
89
106
|
});
|
|
90
107
|
}
|
|
91
108
|
//#endregion
|
|
92
|
-
export { toAbsoluteOutputPath as a, resolveOutputSpecifier as i, resolvePackageDir as n, normalizeStyleInjectorOptions as o, normalizeOutputPathKey as r, createSourceCandidateScanSignature as t };
|
|
109
|
+
export { toAbsoluteOutputPath as a, getViteHookHandler as c, resolveOutputSpecifier as i, resolvePackageDir as n, normalizeStyleInjectorOptions as o, normalizeOutputPathKey as r, resolveStyleInjectorSubPackages as s, createSourceCandidateScanSignature as t };
|