weapp-tailwindcss 4.12.0 → 5.0.0-next.10
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 +4 -5
- package/bin/weapp-tailwindcss.js +1 -21
- package/dist/babel/index.d.ts +3 -0
- package/dist/bundle-state-BWqi5ZyX.mjs +343 -0
- package/dist/bundle-state-EUbcdKqo.js +410 -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/at-rules.d.ts +2 -0
- package/dist/bundlers/shared/css-cleanup/color-gamut.d.ts +3 -0
- package/dist/bundlers/shared/css-cleanup/root-cleanups.d.ts +4 -0
- package/dist/bundlers/shared/css-cleanup/selectors.d.ts +8 -0
- package/dist/bundlers/shared/css-cleanup.d.ts +3 -0
- package/dist/bundlers/shared/css-imports.d.ts +8 -0
- package/dist/bundlers/shared/generator-css/config-directive.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/directives.d.ts +13 -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 +16 -0
- package/dist/bundlers/shared/generator-css/source-files.d.ts +11 -0
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +10 -0
- package/dist/bundlers/shared/generator-css.d.ts +33 -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 +22 -0
- package/dist/bundlers/vite/generate-bundle/candidates.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +20 -0
- package/dist/bundlers/vite/generate-bundle/css-share-scope.d.ts +3 -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 +34 -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/official-tailwind-plugins.d.ts +5 -0
- package/dist/bundlers/vite/postcss-config.d.ts +6 -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 +13 -0
- package/dist/bundlers/vite/runtime-affecting-signature.d.ts +2 -0
- package/dist/bundlers/vite/runtime-class-set.d.ts +22 -0
- package/dist/bundlers/vite/source-candidates.d.ts +18 -0
- package/dist/bundlers/vite/source-scan.d.ts +8 -0
- package/dist/bundlers/vite/tailwind-basedir.d.ts +1 -0
- package/dist/bundlers/vite/utils.d.ts +9 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/shared.d.ts +21 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +20 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +20 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +10 -0
- package/dist/bundlers/webpack/index.d.ts +1 -0
- package/dist/bundlers/webpack/loaders/weapp-tw-css-import-rewrite-loader.d.ts +14 -0
- package/dist/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.d.ts +11 -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/cache-BVAiJV3J.js +502 -0
- package/dist/cache-CHs4DXui.mjs +434 -0
- package/dist/chunk-8l464Juk.js +28 -0
- package/dist/cli/context.d.ts +13 -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.d.ts +4 -0
- package/dist/cli/mount-options.d.ts +4 -0
- package/dist/cli/types.d.ts +15 -0
- package/dist/cli/vscode-entry.d.ts +14 -0
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +1985 -3574
- package/dist/cli.mjs +1962 -3554
- package/dist/constants-BG12WAKw.mjs +44 -0
- package/dist/constants-BeeyfJ9k.js +73 -0
- package/dist/constants.d.ts +12 -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 +131 -180
- package/dist/core.mjs +129 -180
- 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 +2 -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 +16 -11
- package/dist/defaults.js +151 -8
- package/dist/defaults.mjs +143 -7
- package/dist/escape.js +31 -54
- package/dist/escape.mjs +18 -25
- package/dist/generator/index.d.ts +11 -0
- package/dist/generator/options.d.ts +16 -0
- package/dist/generator/types.d.ts +20 -0
- package/dist/generator-DKkhJbOg.js +1531 -0
- package/dist/generator-UBmfduYg.mjs +1432 -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 +370 -13
- package/dist/gulp.mjs +362 -13
- package/dist/incremental-runtime-class-set-BYmzQ-_f.js +1555 -0
- package/dist/incremental-runtime-class-set-BgMW6wf2.mjs +1510 -0
- 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 +5 -0
- package/dist/js/literal-transform.d.ts +2 -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/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/logger/index.d.ts +2 -0
- package/dist/logger-CZUxvJJD.mjs +2 -0
- package/dist/logger-EVNB9z7i.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-C7efq3hr.mjs +231 -0
- package/dist/postcss-Dg-_lyHS.js +240 -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 +7 -0
- package/dist/postcss.mjs +2 -0
- package/dist/precheck-B32p-gLI.js +2736 -0
- package/dist/precheck-B4RH6ZNN.mjs +2622 -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 +117 -163
- package/dist/presets.mjs +109 -163
- package/dist/reset/index.d.ts +2 -0
- package/dist/reset.d.ts +2 -4
- package/dist/reset.js +19 -8
- package/dist/reset.mjs +2 -8
- package/dist/runtime-patch-CwN5ya72.mjs +71 -0
- package/dist/runtime-patch-D6mBo_KB.js +85 -0
- 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/source-scan-BaYvNx-k.js +293 -0
- package/dist/source-scan-cGZxoJqP.mjs +254 -0
- package/dist/tailwindcss/index.d.ts +11 -0
- package/dist/tailwindcss/miniprogram.d.ts +5 -0
- package/dist/tailwindcss/patcher-options.d.ts +8 -0
- package/dist/tailwindcss/patcher-resolve.d.ts +4 -0
- package/dist/tailwindcss/patcher.d.ts +12 -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-patch.d.ts +5 -0
- package/dist/tailwindcss/runtime.d.ts +28 -0
- package/dist/tailwindcss/source-scan.d.ts +25 -0
- package/dist/tailwindcss/targets.d.ts +2 -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/css-sources.d.ts +5 -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 +2 -0
- package/dist/tailwindcss/v4/patcher.d.ts +15 -0
- package/dist/tailwindcss/v4-engine/candidates.d.ts +2 -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 +5 -0
- package/dist/tailwindcss/v4-engine/source.d.ts +7 -0
- package/dist/tailwindcss/v4-engine/tailwind-v3-compatibility.d.ts +1 -0
- package/dist/tailwindcss/v4-engine/tailwind-v3-default-colors.d.ts +1 -0
- package/dist/tailwindcss/v4-engine/tailwind-v4-default-colors.d.ts +1 -0
- package/dist/tailwindcss/v4-engine/types.d.ts +19 -0
- package/dist/tailwindcss/version.d.ts +4 -0
- package/dist/tailwindcss-Bu-RWIHx.js +630 -0
- package/dist/tailwindcss-C5IgPlQ0.mjs +579 -0
- package/dist/typedoc.export.d.ts +3 -0
- package/dist/types/base.d.ts +1 -0
- package/dist/types/index.d.ts +97 -0
- package/dist/types/shared.d.ts +10 -0
- package/dist/types/user-defined-options/general.d.ts +29 -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 +5 -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-BiShvil9.js +61 -0
- package/dist/utils-Btw1iOVV.mjs +48 -0
- package/dist/vite-BU74SkOi.mjs +2246 -0
- package/dist/vite-CKjx_5c3.js +2261 -0
- package/dist/vite.d.ts +3 -17
- package/dist/vite.js +4 -14
- package/dist/vite.mjs +2 -14
- package/dist/weapp-tw-css-import-rewrite-loader.js +68 -92
- package/dist/weapp-tw-runtime-classset-loader.js +31 -50
- package/dist/webpack-CAk_ITq7.mjs +713 -0
- package/dist/webpack-damWiYqY.js +723 -0
- package/dist/webpack.d.ts +4 -25
- package/dist/webpack.js +6 -17
- package/dist/webpack.mjs +2 -17
- 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 +39 -38
- 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
- package/dist/webpack4.d.ts +0 -26
- package/dist/webpack4.js +0 -493
- package/dist/webpack4.mjs +0 -495
- package/scripts/postinstall.mjs +0 -59
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generator/index'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("./chunk-8l464Juk.js");
|
|
3
|
+
const require_generator = require("./generator-DKkhJbOg.js");
|
|
4
|
+
let tailwindcss_patch = require("tailwindcss-patch");
|
|
5
|
+
exports.createWeappTailwindcssGenerator = require_generator.createWeappTailwindcssGenerator;
|
|
6
|
+
exports.createWeappTailwindcssGeneratorFromPatcher = require_generator.createWeappTailwindcssGeneratorFromPatcher;
|
|
7
|
+
exports.normalizeWeappTailwindcssGeneratorOptions = require_generator.normalizeWeappTailwindcssGeneratorOptions;
|
|
8
|
+
exports.resolveTailwindSourceFromPatcher = require_generator.resolveTailwindSourceFromPatcher;
|
|
9
|
+
exports.resolveTailwindV3Source = require_generator.resolveTailwindV3Source;
|
|
10
|
+
exports.resolveTailwindV3SourceFromPatcher = require_generator.resolveTailwindV3SourceFromPatcher;
|
|
11
|
+
exports.resolveTailwindV3SourceOptionsFromPatcher = require_generator.resolveTailwindV3SourceOptionsFromPatcher;
|
|
12
|
+
exports.resolveTailwindV4Source = require_generator.resolveTailwindV4Source;
|
|
13
|
+
exports.resolveTailwindV4SourceFromPatchOptions = tailwindcss_patch.resolveTailwindV4SourceFromPatchOptions;
|
|
14
|
+
exports.resolveTailwindV4SourceFromPatcher = require_generator.resolveTailwindV4SourceFromPatcher;
|
|
15
|
+
exports.resolveTailwindV4SourceOptionsFromPatcher = require_generator.resolveTailwindV4SourceOptionsFromPatcher;
|
|
16
|
+
exports.transformTailwindV3CssByTarget = require_generator.transformTailwindV3CssByTarget;
|
|
17
|
+
exports.transformTailwindV3CssToWeapp = require_generator.transformTailwindV3CssToWeapp;
|
|
18
|
+
exports.transformTailwindV4CssByTarget = require_generator.transformTailwindV4CssByTarget;
|
|
19
|
+
exports.transformTailwindV4CssToWeapp = require_generator.transformTailwindV4CssToWeapp;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as transformTailwindV3CssToWeapp, a as resolveTailwindV4Source, c as resolveTailwindV4SourceOptionsFromPatcher, g as transformTailwindV3CssByTarget, h as resolveTailwindV3SourceOptionsFromPatcher, i as normalizeWeappTailwindcssGeneratorOptions, l as transformTailwindV4CssByTarget, m as resolveTailwindV3SourceFromPatcher, n as createWeappTailwindcssGeneratorFromPatcher, o as resolveTailwindV4SourceFromPatchOptions, p as resolveTailwindV3Source, r as resolveTailwindSourceFromPatcher, s as resolveTailwindV4SourceFromPatcher, t as createWeappTailwindcssGenerator, u as transformTailwindV4CssToWeapp } from "./generator-UBmfduYg.mjs";
|
|
2
|
+
export { createWeappTailwindcssGenerator, createWeappTailwindcssGeneratorFromPatcher, normalizeWeappTailwindcssGeneratorOptions, resolveTailwindSourceFromPatcher, resolveTailwindV3Source, resolveTailwindV3SourceFromPatcher, resolveTailwindV3SourceOptionsFromPatcher, resolveTailwindV4Source, resolveTailwindV4SourceFromPatchOptions, resolveTailwindV4SourceFromPatcher, resolveTailwindV4SourceOptionsFromPatcher, transformTailwindV3CssByTarget, transformTailwindV3CssToWeapp, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp };
|
package/dist/gulp.d.ts
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import '@babel/parser';
|
|
6
|
-
import 'magic-string';
|
|
7
|
-
import 'postcss';
|
|
8
|
-
import 'tailwindcss-patch';
|
|
9
|
-
import 'node:buffer';
|
|
10
|
-
import 'webpack';
|
|
11
|
-
import 'lru-cache';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @name weapp-tw-gulp
|
|
15
|
-
* @description gulp版本weapp-tw插件
|
|
16
|
-
* @link https://tw.icebreaker.top/docs/quick-start/frameworks/native
|
|
17
|
-
*/
|
|
18
|
-
declare function createPlugins(options?: UserDefinedOptions): {
|
|
19
|
-
transformWxss: (options?: Partial<IStyleHandlerOptions>) => stream.Transform;
|
|
20
|
-
transformWxml: (options?: Partial<ITemplateHandlerOptions>) => stream.Transform;
|
|
21
|
-
transformJs: (options?: Partial<CreateJsHandlerOptions>) => stream.Transform;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { UserDefinedOptions, createPlugins, createPlugins as weappTailwindcss };
|
|
1
|
+
export * from './bundlers/gulp/index';
|
|
2
|
+
export { createPlugins as WeappTailwindcss } from './bundlers/gulp/index';
|
|
3
|
+
export { createPlugins as weappTailwindcss } from './bundlers/gulp/index';
|
|
4
|
+
export type { UserDefinedOptions } from './types';
|
package/dist/gulp.js
CHANGED
|
@@ -1,13 +1,370 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
require(
|
|
5
|
-
require(
|
|
6
|
-
require(
|
|
7
|
-
require(
|
|
8
|
-
require(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("./chunk-8l464Juk.js");
|
|
3
|
+
const require_cache = require("./cache-BVAiJV3J.js");
|
|
4
|
+
const require_runtime_patch = require("./runtime-patch-D6mBo_KB.js");
|
|
5
|
+
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-BYmzQ-_f.js");
|
|
6
|
+
const require_precheck = require("./precheck-B32p-gLI.js");
|
|
7
|
+
const require_tailwindcss = require("./tailwindcss-Bu-RWIHx.js");
|
|
8
|
+
let node_path = require("node:path");
|
|
9
|
+
node_path = require_chunk.__toESM(node_path);
|
|
10
|
+
let node_process = require("node:process");
|
|
11
|
+
node_process = require_chunk.__toESM(node_process);
|
|
12
|
+
let node_fs = require("node:fs");
|
|
13
|
+
node_fs = require_chunk.__toESM(node_fs);
|
|
14
|
+
let node_buffer = require("node:buffer");
|
|
15
|
+
let node_stream = require("node:stream");
|
|
16
|
+
node_stream = require_chunk.__toESM(node_stream);
|
|
17
|
+
//#region src/bundlers/gulp/index.ts
|
|
18
|
+
const debug = require_runtime_patch.createDebug();
|
|
19
|
+
const Transform = node_stream.default.Transform;
|
|
20
|
+
/**
|
|
21
|
+
* @name weapp-tw-gulp
|
|
22
|
+
* @description gulp版本weapp-tw插件
|
|
23
|
+
* @link https://tw.icebreaker.top/docs/quick-start/frameworks/native
|
|
24
|
+
*/
|
|
25
|
+
function createPlugins(options = {}) {
|
|
26
|
+
const hasInitialTailwindCssRoots = require_tailwindcss.hasConfiguredTailwindV4CssRoots(options);
|
|
27
|
+
const opts = require_precheck.getCompilerContext({
|
|
28
|
+
...options,
|
|
29
|
+
__internalDeferMissingCssEntriesWarning: true
|
|
30
|
+
});
|
|
31
|
+
const { templateHandler, styleHandler, jsHandler, cache, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
|
|
32
|
+
const readyPromise = require_precheck.createTailwindRuntimeReadyPromise(initialTwPatcher);
|
|
33
|
+
let runtimeSet = /* @__PURE__ */ new Set();
|
|
34
|
+
const runtimeState = {
|
|
35
|
+
twPatcher: initialTwPatcher,
|
|
36
|
+
readyPromise,
|
|
37
|
+
refreshTailwindcssPatcher
|
|
38
|
+
};
|
|
39
|
+
const defaultStyleHandlerOptionsCache = /* @__PURE__ */ new Map();
|
|
40
|
+
let cachedDefaultTemplateHandlerOptions;
|
|
41
|
+
let cachedDefaultTemplateRuntimeSet;
|
|
42
|
+
let cachedDefaultModuleGraphOptions;
|
|
43
|
+
const MODULE_EXTENSIONS = [
|
|
44
|
+
".js",
|
|
45
|
+
".mjs",
|
|
46
|
+
".cjs",
|
|
47
|
+
".ts",
|
|
48
|
+
".tsx",
|
|
49
|
+
".jsx"
|
|
50
|
+
];
|
|
51
|
+
let runtimeSetInitialized = false;
|
|
52
|
+
let runtimeSetDirty = false;
|
|
53
|
+
const runtimeSourceHashByFile = /* @__PURE__ */ new Map();
|
|
54
|
+
const runtimeSourcesByFile = /* @__PURE__ */ new Map();
|
|
55
|
+
const bundleRuntimeClassSetManager = options.__internalGulpRuntimeClassSetManager ?? require_incremental_runtime_class_set.createBundleRuntimeClassSetManager();
|
|
56
|
+
async function refreshRuntimeSet(options = false) {
|
|
57
|
+
const normalizedOptions = typeof options === "boolean" ? {
|
|
58
|
+
forceRefresh: options,
|
|
59
|
+
forceCollect: options,
|
|
60
|
+
clearCache: options
|
|
61
|
+
} : options;
|
|
62
|
+
const forceRefresh = normalizedOptions.forceRefresh === true;
|
|
63
|
+
const shouldForceCollect = normalizedOptions.forceCollect === true || runtimeSetDirty;
|
|
64
|
+
const clearCache = normalizedOptions.clearCache === true || runtimeSetDirty;
|
|
65
|
+
if (!forceRefresh && !shouldForceCollect && runtimeSetInitialized) return runtimeSet;
|
|
66
|
+
runtimeSet = await require_precheck.ensureRuntimeClassSet(runtimeState, {
|
|
67
|
+
forceRefresh,
|
|
68
|
+
forceCollect: shouldForceCollect,
|
|
69
|
+
clearCache,
|
|
70
|
+
allowEmpty: false
|
|
71
|
+
});
|
|
72
|
+
runtimeSetInitialized = true;
|
|
73
|
+
runtimeSetDirty = false;
|
|
74
|
+
return runtimeSet;
|
|
75
|
+
}
|
|
76
|
+
function createRuntimeSnapshot(changedFiles) {
|
|
77
|
+
const runtimeAffectingChangedByType = {
|
|
78
|
+
html: /* @__PURE__ */ new Set(),
|
|
79
|
+
js: /* @__PURE__ */ new Set(),
|
|
80
|
+
css: /* @__PURE__ */ new Set(),
|
|
81
|
+
other: /* @__PURE__ */ new Set()
|
|
82
|
+
};
|
|
83
|
+
for (const file of changedFiles) {
|
|
84
|
+
const entry = runtimeSourcesByFile.get(file);
|
|
85
|
+
if (entry) runtimeAffectingChangedByType[entry.type].add(file);
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
entries: [...runtimeSourcesByFile.entries()].map(([file, entry]) => ({
|
|
89
|
+
file,
|
|
90
|
+
output: {
|
|
91
|
+
fileName: file,
|
|
92
|
+
source: entry.source,
|
|
93
|
+
type: "asset"
|
|
94
|
+
},
|
|
95
|
+
source: entry.source,
|
|
96
|
+
type: entry.type
|
|
97
|
+
})),
|
|
98
|
+
jsEntries: /* @__PURE__ */ new Map(),
|
|
99
|
+
sourceHashByFile: /* @__PURE__ */ new Map(),
|
|
100
|
+
runtimeAffectingSignatureByFile: /* @__PURE__ */ new Map(),
|
|
101
|
+
runtimeAffectingHashByFile: /* @__PURE__ */ new Map(),
|
|
102
|
+
changedByType: {
|
|
103
|
+
html: /* @__PURE__ */ new Set(),
|
|
104
|
+
js: /* @__PURE__ */ new Set(),
|
|
105
|
+
css: /* @__PURE__ */ new Set(),
|
|
106
|
+
other: /* @__PURE__ */ new Set()
|
|
107
|
+
},
|
|
108
|
+
runtimeAffectingChangedByType,
|
|
109
|
+
processFiles: {
|
|
110
|
+
html: /* @__PURE__ */ new Set(),
|
|
111
|
+
js: /* @__PURE__ */ new Set(),
|
|
112
|
+
css: /* @__PURE__ */ new Set()
|
|
113
|
+
},
|
|
114
|
+
linkedImpactsByEntry: /* @__PURE__ */ new Map()
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
async function refreshRuntimeSetForSource(file, rawSource, type) {
|
|
118
|
+
const filename = node_path.default.resolve(file.path);
|
|
119
|
+
const hash = cache.computeHash(rawSource);
|
|
120
|
+
const changed = runtimeSourceHashByFile.get(filename) !== hash;
|
|
121
|
+
runtimeSourceHashByFile.set(filename, hash);
|
|
122
|
+
runtimeSourcesByFile.set(filename, {
|
|
123
|
+
source: rawSource,
|
|
124
|
+
type
|
|
125
|
+
});
|
|
126
|
+
if (!changed && runtimeSetInitialized) return runtimeSet;
|
|
127
|
+
if (runtimeState.twPatcher.majorVersion === 4 && !runtimeSetDirty) try {
|
|
128
|
+
runtimeSet = await bundleRuntimeClassSetManager.sync(runtimeState.twPatcher, createRuntimeSnapshot([filename]));
|
|
129
|
+
runtimeSetInitialized = true;
|
|
130
|
+
return runtimeSet;
|
|
131
|
+
} catch (error) {
|
|
132
|
+
debug("gulp incremental runtime set sync failed, fallback to collect: %O", error);
|
|
133
|
+
await bundleRuntimeClassSetManager.reset();
|
|
134
|
+
}
|
|
135
|
+
return refreshRuntimeSet({ forceCollect: true });
|
|
136
|
+
}
|
|
137
|
+
function createRuntimeSetHash(rawSource, nextRuntimeSet) {
|
|
138
|
+
return cache.computeHash([
|
|
139
|
+
rawSource,
|
|
140
|
+
require_cache.getRuntimeClassSetSignature(runtimeState.twPatcher),
|
|
141
|
+
[...nextRuntimeSet].sort().join("\n")
|
|
142
|
+
].join("\n\n"));
|
|
143
|
+
}
|
|
144
|
+
async function registerAutoCssSource(file, rawSource) {
|
|
145
|
+
if (hasInitialTailwindCssRoots || (runtimeState.twPatcher.majorVersion ?? 0) < 4 || !file.path || !require_incremental_runtime_class_set.hasTailwindRootDirectives(rawSource)) return false;
|
|
146
|
+
if (!require_tailwindcss.upsertTailwindV4CssSource(opts, {
|
|
147
|
+
file: node_path.default.resolve(file.path),
|
|
148
|
+
css: rawSource
|
|
149
|
+
})) return false;
|
|
150
|
+
runtimeSetInitialized = false;
|
|
151
|
+
runtimeSetDirty = true;
|
|
152
|
+
await bundleRuntimeClassSetManager.reset();
|
|
153
|
+
debug("detected tailwindcss v4 css source from gulp css file: %s", file.path);
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
function resolveWithExtensions(base) {
|
|
157
|
+
for (const ext of MODULE_EXTENSIONS) {
|
|
158
|
+
const candidate = `${base}${ext}`;
|
|
159
|
+
try {
|
|
160
|
+
if (node_fs.default.statSync(candidate).isFile()) return candidate;
|
|
161
|
+
} catch {
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function resolveLocalModuleCandidate(base) {
|
|
167
|
+
try {
|
|
168
|
+
const stat = node_fs.default.statSync(base);
|
|
169
|
+
if (stat.isFile()) return base;
|
|
170
|
+
if (stat.isDirectory()) {
|
|
171
|
+
const resolvedIndex = resolveWithExtensions(node_path.default.join(base, "index"));
|
|
172
|
+
if (resolvedIndex) return resolvedIndex;
|
|
173
|
+
}
|
|
174
|
+
} catch {}
|
|
175
|
+
if (!node_path.default.extname(base)) return resolveWithExtensions(base);
|
|
176
|
+
}
|
|
177
|
+
function createModuleGraphOptionsFor() {
|
|
178
|
+
return {
|
|
179
|
+
resolve(specifier, importer) {
|
|
180
|
+
if (!specifier) return;
|
|
181
|
+
if (!specifier.startsWith(".") && !node_path.default.isAbsolute(specifier)) return;
|
|
182
|
+
return resolveLocalModuleCandidate(node_path.default.resolve(node_path.default.dirname(importer), specifier));
|
|
183
|
+
},
|
|
184
|
+
load(id) {
|
|
185
|
+
try {
|
|
186
|
+
return node_fs.default.readFileSync(id, "utf8");
|
|
187
|
+
} catch {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
filter(id) {
|
|
192
|
+
const relative = node_path.default.relative(node_process.default.cwd(), id);
|
|
193
|
+
return opts.jsMatcher(relative) || opts.wxsMatcher(relative);
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
function resolveModuleGraphOptions(moduleGraph) {
|
|
198
|
+
if (moduleGraph) return moduleGraph;
|
|
199
|
+
if (!cachedDefaultModuleGraphOptions) cachedDefaultModuleGraphOptions = createModuleGraphOptionsFor();
|
|
200
|
+
return cachedDefaultModuleGraphOptions;
|
|
201
|
+
}
|
|
202
|
+
function createVinylTransform(handler) {
|
|
203
|
+
return new Transform({
|
|
204
|
+
objectMode: true,
|
|
205
|
+
async transform(file, _encoding, callback) {
|
|
206
|
+
try {
|
|
207
|
+
await handler(file);
|
|
208
|
+
callback(null, file);
|
|
209
|
+
} catch (error) {
|
|
210
|
+
callback(error, file);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
function resolveWxssHandlerOptions(options) {
|
|
216
|
+
const majorVersion = runtimeState.twPatcher.majorVersion ?? "unknown";
|
|
217
|
+
if (!options || Object.keys(options).length === 0) {
|
|
218
|
+
let cached = defaultStyleHandlerOptionsCache.get(majorVersion);
|
|
219
|
+
if (!cached) {
|
|
220
|
+
cached = runtimeState.twPatcher.majorVersion === void 0 ? {} : { majorVersion: runtimeState.twPatcher.majorVersion };
|
|
221
|
+
defaultStyleHandlerOptionsCache.set(majorVersion, cached);
|
|
222
|
+
}
|
|
223
|
+
return cached;
|
|
224
|
+
}
|
|
225
|
+
return runtimeState.twPatcher.majorVersion === void 0 ? { ...options } : {
|
|
226
|
+
majorVersion: runtimeState.twPatcher.majorVersion,
|
|
227
|
+
...options
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
function resolveGulpMatcherName(file) {
|
|
231
|
+
return (file.relative || node_path.default.basename(file.path)).replaceAll(node_path.default.sep, "/");
|
|
232
|
+
}
|
|
233
|
+
function resolveWxssFileHandlerOptions(file, options) {
|
|
234
|
+
const resolved = resolveWxssHandlerOptions(options);
|
|
235
|
+
if (resolved.isMainChunk !== void 0) return resolved;
|
|
236
|
+
return {
|
|
237
|
+
...resolved,
|
|
238
|
+
isMainChunk: opts.mainCssChunkMatcher(resolveGulpMatcherName(file), opts.appType)
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
function resolveWxssUserHandlerOptions(options) {
|
|
242
|
+
return {
|
|
243
|
+
...resolveWxssHandlerOptions(options),
|
|
244
|
+
isMainChunk: false
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
function resolveWxmlHandlerOptions(options) {
|
|
248
|
+
if (!options || Object.keys(options).length === 0) {
|
|
249
|
+
if (cachedDefaultTemplateRuntimeSet !== runtimeSet || !cachedDefaultTemplateHandlerOptions) {
|
|
250
|
+
cachedDefaultTemplateRuntimeSet = runtimeSet;
|
|
251
|
+
cachedDefaultTemplateHandlerOptions = { runtimeSet };
|
|
252
|
+
}
|
|
253
|
+
return cachedDefaultTemplateHandlerOptions;
|
|
254
|
+
}
|
|
255
|
+
return {
|
|
256
|
+
runtimeSet,
|
|
257
|
+
...options
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
const transformWxss = (options = {}) => createVinylTransform(async (file) => {
|
|
261
|
+
if (!file.contents) return;
|
|
262
|
+
const rawSource = file.contents.toString();
|
|
263
|
+
const cssSourceChanged = await registerAutoCssSource(file, rawSource);
|
|
264
|
+
const nextRuntimeSet = await refreshRuntimeSet({
|
|
265
|
+
forceRefresh: cssSourceChanged,
|
|
266
|
+
forceCollect: cssSourceChanged || opts.mainCssChunkMatcher(resolveGulpMatcherName(file), opts.appType),
|
|
267
|
+
clearCache: cssSourceChanged
|
|
268
|
+
});
|
|
269
|
+
await require_incremental_runtime_class_set.processCachedTask({
|
|
270
|
+
cache,
|
|
271
|
+
cacheKey: file.path,
|
|
272
|
+
hash: createRuntimeSetHash(rawSource, nextRuntimeSet),
|
|
273
|
+
applyResult(source) {
|
|
274
|
+
file.contents = node_buffer.Buffer.from(source);
|
|
275
|
+
},
|
|
276
|
+
onCacheHit() {
|
|
277
|
+
debug("css cache hit: %s", file.path);
|
|
278
|
+
},
|
|
279
|
+
async transform() {
|
|
280
|
+
await runtimeState.readyPromise;
|
|
281
|
+
const cssHandlerOptions = resolveWxssFileHandlerOptions(file, options);
|
|
282
|
+
const css = (await require_incremental_runtime_class_set.generateCssByGenerator({
|
|
283
|
+
opts,
|
|
284
|
+
runtimeState,
|
|
285
|
+
runtime: nextRuntimeSet,
|
|
286
|
+
rawSource,
|
|
287
|
+
file: file.path,
|
|
288
|
+
cssHandlerOptions,
|
|
289
|
+
cssUserHandlerOptions: resolveWxssUserHandlerOptions(options),
|
|
290
|
+
styleHandler,
|
|
291
|
+
debug
|
|
292
|
+
}))?.css ?? (await styleHandler(rawSource, cssHandlerOptions)).css;
|
|
293
|
+
debug("css handle: %s", file.path);
|
|
294
|
+
return { result: css };
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
const transformJs = (options = {}) => createVinylTransform(async (file) => {
|
|
299
|
+
if (!file.contents) return;
|
|
300
|
+
const filename = node_path.default.resolve(file.path);
|
|
301
|
+
const rawSource = file.contents.toString();
|
|
302
|
+
await refreshRuntimeSetForSource(file, rawSource, "js");
|
|
303
|
+
await runtimeState.readyPromise;
|
|
304
|
+
const moduleGraph = resolveModuleGraphOptions(options.moduleGraph);
|
|
305
|
+
const handlerOptions = {
|
|
306
|
+
...options,
|
|
307
|
+
filename,
|
|
308
|
+
moduleGraph,
|
|
309
|
+
babelParserOptions: {
|
|
310
|
+
...options?.babelParserOptions ?? {},
|
|
311
|
+
sourceFilename: filename
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
if (runtimeState.twPatcher.majorVersion !== void 0) handlerOptions.tailwindcssMajorVersion = runtimeState.twPatcher.majorVersion;
|
|
315
|
+
await require_incremental_runtime_class_set.processCachedTask({
|
|
316
|
+
cache,
|
|
317
|
+
cacheKey: file.path,
|
|
318
|
+
rawSource,
|
|
319
|
+
applyResult(source) {
|
|
320
|
+
file.contents = node_buffer.Buffer.from(source);
|
|
321
|
+
},
|
|
322
|
+
onCacheHit() {
|
|
323
|
+
debug("js cache hit: %s", file.path);
|
|
324
|
+
},
|
|
325
|
+
async transform() {
|
|
326
|
+
await runtimeState.readyPromise;
|
|
327
|
+
const currentSource = file.contents?.toString() ?? rawSource;
|
|
328
|
+
if (require_precheck.shouldSkipJsTransform(currentSource, {
|
|
329
|
+
...handlerOptions,
|
|
330
|
+
classNameSet: runtimeSet
|
|
331
|
+
})) return { result: currentSource };
|
|
332
|
+
const { code } = await jsHandler(currentSource, runtimeSet, handlerOptions);
|
|
333
|
+
debug("js handle: %s", file.path);
|
|
334
|
+
return { result: code };
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
});
|
|
338
|
+
const transformWxml = (options = {}) => createVinylTransform(async (file) => {
|
|
339
|
+
if (!file.contents) return;
|
|
340
|
+
const rawSource = file.contents.toString();
|
|
341
|
+
await refreshRuntimeSetForSource(file, rawSource, "html");
|
|
342
|
+
await runtimeState.readyPromise;
|
|
343
|
+
await require_incremental_runtime_class_set.processCachedTask({
|
|
344
|
+
cache,
|
|
345
|
+
cacheKey: file.path,
|
|
346
|
+
rawSource,
|
|
347
|
+
applyResult(source) {
|
|
348
|
+
file.contents = node_buffer.Buffer.from(source);
|
|
349
|
+
},
|
|
350
|
+
onCacheHit() {
|
|
351
|
+
debug("html cache hit: %s", file.path);
|
|
352
|
+
},
|
|
353
|
+
async transform() {
|
|
354
|
+
await runtimeState.readyPromise;
|
|
355
|
+
const code = await templateHandler(rawSource, resolveWxmlHandlerOptions(options));
|
|
356
|
+
debug("html handle: %s", file.path);
|
|
357
|
+
return { result: code };
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
});
|
|
361
|
+
return {
|
|
362
|
+
transformWxss,
|
|
363
|
+
transformWxml,
|
|
364
|
+
transformJs
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
//#endregion
|
|
368
|
+
exports.WeappTailwindcss = createPlugins;
|
|
369
|
+
exports.createPlugins = createPlugins;
|
|
370
|
+
exports.weappTailwindcss = createPlugins;
|