weapp-tailwindcss 4.1.5 → 4.1.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/css/rgb.css +268 -0
- package/css/uni-app-x/preflight.css +16 -0
- package/css/uni-app-x.css +4 -0
- package/css/weapp-theme.css +0 -0
- package/dist/{chunk-XRPBGBW5.mjs → chunk-2S365AJ6.mjs} +10 -5
- package/dist/{chunk-BOYBKFXU.mjs → chunk-7T4SM5CA.mjs} +2 -2
- package/dist/{chunk-YOYWDNJI.js → chunk-DIMGI7MP.js} +10 -5
- package/dist/chunk-E4KRP5NR.js +252 -0
- package/dist/{chunk-3LFHAVFB.mjs → chunk-I7I27B5D.mjs} +1 -1
- package/dist/chunk-JTKQH7XH.mjs +252 -0
- package/dist/chunk-OXASK55Q.js +6 -0
- package/dist/chunk-PMF2CCKK.mjs +6 -0
- package/dist/{chunk-J7NJDCHZ.js → chunk-QGBHJWZN.js} +2 -2
- package/dist/{chunk-GZNNW4A3.js → chunk-QINVU3VE.js} +3 -3
- package/dist/cli.js +6 -8
- package/dist/cli.mjs +4 -6
- package/dist/core.js +2 -2
- package/dist/core.mjs +1 -1
- package/dist/gulp.js +3 -3
- package/dist/gulp.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -5
- package/dist/index.mjs +10 -6
- package/dist/presets.d.mts +20 -0
- package/dist/presets.d.ts +20 -0
- package/dist/presets.js +49 -0
- package/dist/presets.mjs +49 -0
- package/dist/types.d.mts +8 -0
- package/dist/types.d.ts +8 -0
- package/dist/vite.d.mts +4 -2
- package/dist/vite.d.ts +4 -2
- package/dist/vite.js +7 -3
- package/dist/vite.mjs +8 -4
- package/dist/weapp-tw-runtime-loader.js +5 -28
- package/dist/webpack.js +3 -3
- package/dist/webpack.mjs +2 -2
- package/dist/webpack4.js +3 -3
- package/dist/webpack4.mjs +2 -2
- package/package.json +12 -3
- package/uni-app-x.css +1 -0
- package/dist/chunk-3C5J2G6C.js +0 -171
- package/dist/chunk-DNHAKEMA.mjs +0 -171
package/dist/types.d.ts
CHANGED
|
@@ -219,6 +219,13 @@ interface UserDefinedOptions {
|
|
|
219
219
|
* @description 配置不同版本 tailwindcss 的行为
|
|
220
220
|
*/
|
|
221
221
|
tailwindcss?: PatchOptions['tailwindcss'];
|
|
222
|
+
/**
|
|
223
|
+
* @version `^4.2.0`
|
|
224
|
+
* @group 0.重要配置
|
|
225
|
+
* @ignore
|
|
226
|
+
* @description uni-app x 的配置
|
|
227
|
+
*/
|
|
228
|
+
uniAppX?: boolean;
|
|
222
229
|
}
|
|
223
230
|
interface UserDefinedOptions {
|
|
224
231
|
/**
|
|
@@ -480,6 +487,7 @@ interface IJsHandlerOptions {
|
|
|
480
487
|
babelParserOptions?: ParserOptions;
|
|
481
488
|
ignoreTaggedTemplateExpressionIdentifiers?: (string | RegExp)[];
|
|
482
489
|
ignoreCallExpressionIdentifiers?: (string | RegExp)[];
|
|
490
|
+
uniAppX?: boolean;
|
|
483
491
|
}
|
|
484
492
|
interface IArbitraryValues {
|
|
485
493
|
/**
|
package/dist/vite.d.mts
CHANGED
|
@@ -11,11 +11,13 @@ import 'webpack';
|
|
|
11
11
|
import 'lru-cache';
|
|
12
12
|
import 'postcss-preset-env';
|
|
13
13
|
|
|
14
|
+
declare const cssLangRE: RegExp;
|
|
15
|
+
declare function isCSSRequest(request: string): boolean;
|
|
14
16
|
/**
|
|
15
17
|
* @name UnifiedViteWeappTailwindcssPlugin
|
|
16
18
|
* @description uni-app vite vue3 版本插件
|
|
17
19
|
* @link https://tw.icebreaker.top/docs/quick-start/frameworks/uni-app-vite
|
|
18
20
|
*/
|
|
19
|
-
declare function UnifiedViteWeappTailwindcssPlugin(options?: UserDefinedOptions): Plugin | undefined;
|
|
21
|
+
declare function UnifiedViteWeappTailwindcssPlugin(options?: UserDefinedOptions): Plugin[] | undefined;
|
|
20
22
|
|
|
21
|
-
export { UnifiedViteWeappTailwindcssPlugin };
|
|
23
|
+
export { UnifiedViteWeappTailwindcssPlugin, cssLangRE, isCSSRequest };
|
package/dist/vite.d.ts
CHANGED
|
@@ -11,11 +11,13 @@ import 'webpack';
|
|
|
11
11
|
import 'lru-cache';
|
|
12
12
|
import 'postcss-preset-env';
|
|
13
13
|
|
|
14
|
+
declare const cssLangRE: RegExp;
|
|
15
|
+
declare function isCSSRequest(request: string): boolean;
|
|
14
16
|
/**
|
|
15
17
|
* @name UnifiedViteWeappTailwindcssPlugin
|
|
16
18
|
* @description uni-app vite vue3 版本插件
|
|
17
19
|
* @link https://tw.icebreaker.top/docs/quick-start/frameworks/uni-app-vite
|
|
18
20
|
*/
|
|
19
|
-
declare function UnifiedViteWeappTailwindcssPlugin(options?: UserDefinedOptions): Plugin | undefined;
|
|
21
|
+
declare function UnifiedViteWeappTailwindcssPlugin(options?: UserDefinedOptions): Plugin[] | undefined;
|
|
20
22
|
|
|
21
|
-
export { UnifiedViteWeappTailwindcssPlugin };
|
|
23
|
+
export { UnifiedViteWeappTailwindcssPlugin, cssLangRE, isCSSRequest };
|
package/dist/vite.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkE4KRP5NRjs = require('./chunk-E4KRP5NR.js');
|
|
4
6
|
require('./chunk-LSSLYD6B.js');
|
|
5
7
|
require('./chunk-OGROHM4L.js');
|
|
6
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-DIMGI7MP.js');
|
|
7
9
|
require('./chunk-PLMJW644.js');
|
|
8
10
|
require('./chunk-IS2CB3US.js');
|
|
9
11
|
require('./chunk-O335YLYH.js');
|
|
10
12
|
require('./chunk-BZ6OV5EP.js');
|
|
11
13
|
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunkE4KRP5NRjs.UnifiedViteWeappTailwindcssPlugin; exports.cssLangRE = _chunkE4KRP5NRjs.cssLangRE; exports.isCSSRequest = _chunkE4KRP5NRjs.isCSSRequest;
|
package/dist/vite.mjs
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
UnifiedViteWeappTailwindcssPlugin
|
|
3
|
-
|
|
2
|
+
UnifiedViteWeappTailwindcssPlugin,
|
|
3
|
+
cssLangRE,
|
|
4
|
+
isCSSRequest
|
|
5
|
+
} from "./chunk-JTKQH7XH.mjs";
|
|
4
6
|
import "./chunk-3AUX4FGE.mjs";
|
|
5
7
|
import "./chunk-CMUA5KCO.mjs";
|
|
6
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-2S365AJ6.mjs";
|
|
7
9
|
import "./chunk-Q67IXIAH.mjs";
|
|
8
10
|
import "./chunk-WKGE3KUO.mjs";
|
|
9
11
|
import "./chunk-JXBLHLFR.mjs";
|
|
10
12
|
import "./chunk-2LOIH42W.mjs";
|
|
11
13
|
export {
|
|
12
|
-
UnifiedViteWeappTailwindcssPlugin
|
|
14
|
+
UnifiedViteWeappTailwindcssPlugin,
|
|
15
|
+
cssLangRE,
|
|
16
|
+
isCSSRequest
|
|
13
17
|
};
|
|
@@ -1,33 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
-
// src/bundlers/webpack/loaders/weapp-tw-runtime-loader.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/bundlers/webpack/loaders/weapp-tw-runtime-loader.ts
|
|
23
2
|
var _loaderutils = require('loader-utils'); var _loaderutils2 = _interopRequireDefault(_loaderutils);
|
|
24
3
|
var WeappTwRuntimeAopLoader = function(source) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return source;
|
|
30
|
-
});
|
|
4
|
+
var _a;
|
|
5
|
+
const opt = _loaderutils2.default.getOptions(this);
|
|
6
|
+
(_a = opt == null ? void 0 : opt.getClassSet) == null ? void 0 : _a.call(opt);
|
|
7
|
+
return source;
|
|
31
8
|
};
|
|
32
9
|
var weapp_tw_runtime_loader_default = WeappTwRuntimeAopLoader;
|
|
33
10
|
|
package/dist/webpack.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQINVU3VEjs = require('./chunk-QINVU3VE.js');
|
|
4
4
|
require('./chunk-LSSLYD6B.js');
|
|
5
5
|
require('./chunk-OGROHM4L.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-DIMGI7MP.js');
|
|
7
7
|
require('./chunk-PLMJW644.js');
|
|
8
8
|
require('./chunk-IS2CB3US.js');
|
|
9
9
|
require('./chunk-O335YLYH.js');
|
|
10
10
|
require('./chunk-BZ6OV5EP.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.UnifiedWebpackPluginV5 =
|
|
13
|
+
exports.UnifiedWebpackPluginV5 = _chunkQINVU3VEjs.UnifiedWebpackPluginV5;
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedWebpackPluginV5
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7T4SM5CA.mjs";
|
|
4
4
|
import "./chunk-3AUX4FGE.mjs";
|
|
5
5
|
import "./chunk-CMUA5KCO.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-2S365AJ6.mjs";
|
|
7
7
|
import "./chunk-Q67IXIAH.mjs";
|
|
8
8
|
import "./chunk-WKGE3KUO.mjs";
|
|
9
9
|
import "./chunk-JXBLHLFR.mjs";
|
package/dist/webpack4.js
CHANGED
|
@@ -6,7 +6,7 @@ var _chunkLSSLYD6Bjs = require('./chunk-LSSLYD6B.js');
|
|
|
6
6
|
var _chunkOGROHM4Ljs = require('./chunk-OGROHM4L.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkDIMGI7MPjs = require('./chunk-DIMGI7MP.js');
|
|
10
10
|
require('./chunk-PLMJW644.js');
|
|
11
11
|
require('./chunk-IS2CB3US.js');
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ var _webpacksources = require('webpack-sources');
|
|
|
22
22
|
var debug = _chunkLSSLYD6Bjs.createDebug.call(void 0, );
|
|
23
23
|
var UnifiedWebpackPluginV4 = class {
|
|
24
24
|
constructor(options = {}) {
|
|
25
|
-
this.options =
|
|
25
|
+
this.options = _chunkDIMGI7MPjs.getCompilerContext.call(void 0, options);
|
|
26
26
|
this.appType = this.options.appType;
|
|
27
27
|
}
|
|
28
28
|
apply(compiler) {
|
|
@@ -47,7 +47,7 @@ var UnifiedWebpackPluginV4 = class {
|
|
|
47
47
|
twPatcher.patch();
|
|
48
48
|
function getClassSetInLoader() {
|
|
49
49
|
if (twPatcher.majorVersion !== 4) {
|
|
50
|
-
return twPatcher.
|
|
50
|
+
return twPatcher.getClassSetV3();
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
onLoad();
|
package/dist/webpack4.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-CMUA5KCO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getCompilerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2S365AJ6.mjs";
|
|
10
10
|
import "./chunk-Q67IXIAH.mjs";
|
|
11
11
|
import "./chunk-WKGE3KUO.mjs";
|
|
12
12
|
import {
|
|
@@ -49,7 +49,7 @@ var UnifiedWebpackPluginV4 = class {
|
|
|
49
49
|
twPatcher.patch();
|
|
50
50
|
function getClassSetInLoader() {
|
|
51
51
|
if (twPatcher.majorVersion !== 4) {
|
|
52
|
-
return twPatcher.
|
|
52
|
+
return twPatcher.getClassSetV3();
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
onLoad();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.6",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -81,6 +81,11 @@
|
|
|
81
81
|
"import": "./dist/defaults.mjs",
|
|
82
82
|
"require": "./dist/defaults.js"
|
|
83
83
|
},
|
|
84
|
+
"./presets": {
|
|
85
|
+
"types": "./dist/presets.d.ts",
|
|
86
|
+
"import": "./dist/presets.mjs",
|
|
87
|
+
"require": "./dist/presets.js"
|
|
88
|
+
},
|
|
84
89
|
"./css-macro/postcss": {
|
|
85
90
|
"types": "./dist/css-macro/postcss.d.ts",
|
|
86
91
|
"import": "./dist/css-macro/postcss.mjs",
|
|
@@ -107,6 +112,8 @@
|
|
|
107
112
|
"./utilities": "./utilities.css",
|
|
108
113
|
"./with-layer.css": "./with-layer.css",
|
|
109
114
|
"./with-layer": "./with-layer.css",
|
|
115
|
+
"./uni-app-x": "./uni-app-x.css",
|
|
116
|
+
"./uni-app-x.css": "./uni-app-x.css",
|
|
110
117
|
"./css": "./css/index.css",
|
|
111
118
|
"./*": "./*"
|
|
112
119
|
},
|
|
@@ -134,6 +141,7 @@
|
|
|
134
141
|
"index.css",
|
|
135
142
|
"preflight.css",
|
|
136
143
|
"theme.css",
|
|
144
|
+
"uni-app-x.css",
|
|
137
145
|
"utilities.css",
|
|
138
146
|
"with-layer.css"
|
|
139
147
|
],
|
|
@@ -158,11 +166,11 @@
|
|
|
158
166
|
"lru-cache": "10.4.3",
|
|
159
167
|
"magic-string": "0.30.17",
|
|
160
168
|
"semver": "~7.7.1",
|
|
161
|
-
"tailwindcss-patch": "~7.1.
|
|
169
|
+
"tailwindcss-patch": "~7.1.1",
|
|
162
170
|
"webpack-sources": "3.2.3",
|
|
163
171
|
"@weapp-tailwindcss/init": "1.0.2",
|
|
164
|
-
"@weapp-tailwindcss/logger": "1.0.1",
|
|
165
172
|
"@weapp-tailwindcss/mangle": "1.0.4",
|
|
173
|
+
"@weapp-tailwindcss/logger": "1.0.1",
|
|
166
174
|
"@weapp-tailwindcss/postcss": "1.0.11",
|
|
167
175
|
"@weapp-tailwindcss/shared": "1.0.2"
|
|
168
176
|
},
|
|
@@ -172,6 +180,7 @@
|
|
|
172
180
|
"build:tsc": "cross-env NODE_ENV=development tsc --build tsconfig.json",
|
|
173
181
|
"build:cli": "cd plugins/cli && pnpm run build",
|
|
174
182
|
"build:css": "tsx scripts/build-css.ts",
|
|
183
|
+
"build:weapp-theme": "tsx scripts/build-weapp-theme.ts",
|
|
175
184
|
"test": "npm run postinstall && vitest run",
|
|
176
185
|
"test:dev": "vitest",
|
|
177
186
|
"test:ui": "vitest --ui",
|
package/uni-app-x.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@theme default{--font-sans: ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; --font-serif: ui-serif,Georgia,Cambria,"Times New Roman",Times,serif; --font-mono: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; --color-red-50: oklch(97.1% .013 17.38); --color-red-100: oklch(93.6% .032 17.717); --color-red-200: oklch(88.5% .062 18.334); --color-red-300: oklch(80.8% .114 19.571); --color-red-400: oklch(70.4% .191 22.216); --color-red-500: oklch(63.7% .237 25.331); --color-red-600: oklch(57.7% .245 27.325); --color-red-700: oklch(50.5% .213 27.518); --color-red-800: oklch(44.4% .177 26.899); --color-red-900: oklch(39.6% .141 25.723); --color-red-950: oklch(25.8% .092 26.042); --color-orange-50: oklch(98% .016 73.684); --color-orange-100: oklch(95.4% .038 75.164); --color-orange-200: oklch(90.1% .076 70.697); --color-orange-300: oklch(83.7% .128 66.29); --color-orange-400: oklch(75% .183 55.934); --color-orange-500: oklch(70.5% .213 47.604); --color-orange-600: oklch(64.6% .222 41.116); --color-orange-700: oklch(55.3% .195 38.402); --color-orange-800: oklch(47% .157 37.304); --color-orange-900: oklch(40.8% .123 38.172); --color-orange-950: oklch(26.6% .079 36.259); --color-amber-50: oklch(98.7% .022 95.277); --color-amber-100: oklch(96.2% .059 95.617); --color-amber-200: oklch(92.4% .12 95.746); --color-amber-300: oklch(87.9% .169 91.605); --color-amber-400: oklch(82.8% .189 84.429); --color-amber-500: oklch(76.9% .188 70.08); --color-amber-600: oklch(66.6% .179 58.318); --color-amber-700: oklch(55.5% .163 48.998); --color-amber-800: oklch(47.3% .137 46.201); --color-amber-900: oklch(41.4% .112 45.904); --color-amber-950: oklch(27.9% .077 45.635); --color-yellow-50: oklch(98.7% .026 102.212); --color-yellow-100: oklch(97.3% .071 103.193); --color-yellow-200: oklch(94.5% .129 101.54); --color-yellow-300: oklch(90.5% .182 98.111); --color-yellow-400: oklch(85.2% .199 91.936); --color-yellow-500: oklch(79.5% .184 86.047); --color-yellow-600: oklch(68.1% .162 75.834); --color-yellow-700: oklch(55.4% .135 66.442); --color-yellow-800: oklch(47.6% .114 61.907); --color-yellow-900: oklch(42.1% .095 57.708); --color-yellow-950: oklch(28.6% .066 53.813); --color-lime-50: oklch(98.6% .031 120.757); --color-lime-100: oklch(96.7% .067 122.328); --color-lime-200: oklch(93.8% .127 124.321); --color-lime-300: oklch(89.7% .196 126.665); --color-lime-400: oklch(84.1% .238 128.85); --color-lime-500: oklch(76.8% .233 130.85); --color-lime-600: oklch(64.8% .2 131.684); --color-lime-700: oklch(53.2% .157 131.589); --color-lime-800: oklch(45.3% .124 130.933); --color-lime-900: oklch(40.5% .101 131.063); --color-lime-950: oklch(27.4% .072 132.109); --color-green-50: oklch(98.2% .018 155.826); --color-green-100: oklch(96.2% .044 156.743); --color-green-200: oklch(92.5% .084 155.995); --color-green-300: oklch(87.1% .15 154.449); --color-green-400: oklch(79.2% .209 151.711); --color-green-500: oklch(72.3% .219 149.579); --color-green-600: oklch(62.7% .194 149.214); --color-green-700: oklch(52.7% .154 150.069); --color-green-800: oklch(44.8% .119 151.328); --color-green-900: oklch(39.3% .095 152.535); --color-green-950: oklch(26.6% .065 152.934); --color-emerald-50: oklch(97.9% .021 166.113); --color-emerald-100: oklch(95% .052 163.051); --color-emerald-200: oklch(90.5% .093 164.15); --color-emerald-300: oklch(84.5% .143 164.978); --color-emerald-400: oklch(76.5% .177 163.223); --color-emerald-500: oklch(69.6% .17 162.48); --color-emerald-600: oklch(59.6% .145 163.225); --color-emerald-700: oklch(50.8% .118 165.612); --color-emerald-800: oklch(43.2% .095 166.913); --color-emerald-900: oklch(37.8% .077 168.94); --color-emerald-950: oklch(26.2% .051 172.552); --color-teal-50: oklch(98.4% .014 180.72); --color-teal-100: oklch(95.3% .051 180.801); --color-teal-200: oklch(91% .096 180.426); --color-teal-300: oklch(85.5% .138 181.071); --color-teal-400: oklch(77.7% .152 181.912); --color-teal-500: oklch(70.4% .14 182.503); --color-teal-600: oklch(60% .118 184.704); --color-teal-700: oklch(51.1% .096 186.391); --color-teal-800: oklch(43.7% .078 188.216); --color-teal-900: oklch(38.6% .063 188.416); --color-teal-950: oklch(27.7% .046 192.524); --color-cyan-50: oklch(98.4% .019 200.873); --color-cyan-100: oklch(95.6% .045 203.388); --color-cyan-200: oklch(91.7% .08 205.041); --color-cyan-300: oklch(86.5% .127 207.078); --color-cyan-400: oklch(78.9% .154 211.53); --color-cyan-500: oklch(71.5% .143 215.221); --color-cyan-600: oklch(60.9% .126 221.723); --color-cyan-700: oklch(52% .105 223.128); --color-cyan-800: oklch(45% .085 224.283); --color-cyan-900: oklch(39.8% .07 227.392); --color-cyan-950: oklch(30.2% .056 229.695); --color-sky-50: oklch(97.7% .013 236.62); --color-sky-100: oklch(95.1% .026 236.824); --color-sky-200: oklch(90.1% .058 230.902); --color-sky-300: oklch(82.8% .111 230.318); --color-sky-400: oklch(74.6% .16 232.661); --color-sky-500: oklch(68.5% .169 237.323); --color-sky-600: oklch(58.8% .158 241.966); --color-sky-700: oklch(50% .134 242.749); --color-sky-800: oklch(44.3% .11 240.79); --color-sky-900: oklch(39.1% .09 240.876); --color-sky-950: oklch(29.3% .066 243.157); --color-blue-50: oklch(97% .014 254.604); --color-blue-100: oklch(93.2% .032 255.585); --color-blue-200: oklch(88.2% .059 254.128); --color-blue-300: oklch(80.9% .105 251.813); --color-blue-400: oklch(70.7% .165 254.624); --color-blue-500: oklch(62.3% .214 259.815); --color-blue-600: oklch(54.6% .245 262.881); --color-blue-700: oklch(48.8% .243 264.376); --color-blue-800: oklch(42.4% .199 265.638); --color-blue-900: oklch(37.9% .146 265.522); --color-blue-950: oklch(28.2% .091 267.935); --color-indigo-50: oklch(96.2% .018 272.314); --color-indigo-100: oklch(93% .034 272.788); --color-indigo-200: oklch(87% .065 274.039); --color-indigo-300: oklch(78.5% .115 274.713); --color-indigo-400: oklch(67.3% .182 276.935); --color-indigo-500: oklch(58.5% .233 277.117); --color-indigo-600: oklch(51.1% .262 276.966); --color-indigo-700: oklch(45.7% .24 277.023); --color-indigo-800: oklch(39.8% .195 277.366); --color-indigo-900: oklch(35.9% .144 278.697); --color-indigo-950: oklch(25.7% .09 281.288); --color-violet-50: oklch(96.9% .016 293.756); --color-violet-100: oklch(94.3% .029 294.588); --color-violet-200: oklch(89.4% .057 293.283); --color-violet-300: oklch(81.1% .111 293.571); --color-violet-400: oklch(70.2% .183 293.541); --color-violet-500: oklch(60.6% .25 292.717); --color-violet-600: oklch(54.1% .281 293.009); --color-violet-700: oklch(49.1% .27 292.581); --color-violet-800: oklch(43.2% .232 292.759); --color-violet-900: oklch(38% .189 293.745); --color-violet-950: oklch(28.3% .141 291.089); --color-purple-50: oklch(97.7% .014 308.299); --color-purple-100: oklch(94.6% .033 307.174); --color-purple-200: oklch(90.2% .063 306.703); --color-purple-300: oklch(82.7% .119 306.383); --color-purple-400: oklch(71.4% .203 305.504); --color-purple-500: oklch(62.7% .265 303.9); --color-purple-600: oklch(55.8% .288 302.321); --color-purple-700: oklch(49.6% .265 301.924); --color-purple-800: oklch(43.8% .218 303.724); --color-purple-900: oklch(38.1% .176 304.987); --color-purple-950: oklch(29.1% .149 302.717); --color-fuchsia-50: oklch(97.7% .017 320.058); --color-fuchsia-100: oklch(95.2% .037 318.852); --color-fuchsia-200: oklch(90.3% .076 319.62); --color-fuchsia-300: oklch(83.3% .145 321.434); --color-fuchsia-400: oklch(74% .238 322.16); --color-fuchsia-500: oklch(66.7% .295 322.15); --color-fuchsia-600: oklch(59.1% .293 322.896); --color-fuchsia-700: oklch(51.8% .253 323.949); --color-fuchsia-800: oklch(45.2% .211 324.591); --color-fuchsia-900: oklch(40.1% .17 325.612); --color-fuchsia-950: oklch(29.3% .136 325.661); --color-pink-50: oklch(97.1% .014 343.198); --color-pink-100: oklch(94.8% .028 342.258); --color-pink-200: oklch(89.9% .061 343.231); --color-pink-300: oklch(82.3% .12 346.018); --color-pink-400: oklch(71.8% .202 349.761); --color-pink-500: oklch(65.6% .241 354.308); --color-pink-600: oklch(59.2% .249 .584); --color-pink-700: oklch(52.5% .223 3.958); --color-pink-800: oklch(45.9% .187 3.815); --color-pink-900: oklch(40.8% .153 2.432); --color-pink-950: oklch(28.4% .109 3.907); --color-rose-50: oklch(96.9% .015 12.422); --color-rose-100: oklch(94.1% .03 12.58); --color-rose-200: oklch(89.2% .058 10.001); --color-rose-300: oklch(81% .117 11.638); --color-rose-400: oklch(71.2% .194 13.428); --color-rose-500: oklch(64.5% .246 16.439); --color-rose-600: oklch(58.6% .253 17.585); --color-rose-700: oklch(51.4% .222 16.935); --color-rose-800: oklch(45.5% .188 13.697); --color-rose-900: oklch(41% .159 10.272); --color-rose-950: oklch(27.1% .105 12.094); --color-slate-50: oklch(98.4% .003 247.858); --color-slate-100: oklch(96.8% .007 247.896); --color-slate-200: oklch(92.9% .013 255.508); --color-slate-300: oklch(86.9% .022 252.894); --color-slate-400: oklch(70.4% .04 256.788); --color-slate-500: oklch(55.4% .046 257.417); --color-slate-600: oklch(44.6% .043 257.281); --color-slate-700: oklch(37.2% .044 257.287); --color-slate-800: oklch(27.9% .041 260.031); --color-slate-900: oklch(20.8% .042 265.755); --color-slate-950: oklch(12.9% .042 264.695); --color-gray-50: oklch(98.5% .002 247.839); --color-gray-100: oklch(96.7% .003 264.542); --color-gray-200: oklch(92.8% .006 264.531); --color-gray-300: oklch(87.2% .01 258.338); --color-gray-400: oklch(70.7% .022 261.325); --color-gray-500: oklch(55.1% .027 264.364); --color-gray-600: oklch(44.6% .03 256.802); --color-gray-700: oklch(37.3% .034 259.733); --color-gray-800: oklch(27.8% .033 256.848); --color-gray-900: oklch(21% .034 264.665); --color-gray-950: oklch(13% .028 261.692); --color-zinc-50: oklch(98.5% 0 0); --color-zinc-100: oklch(96.7% .001 286.375); --color-zinc-200: oklch(92% .004 286.32); --color-zinc-300: oklch(87.1% .006 286.286); --color-zinc-400: oklch(70.5% .015 286.067); --color-zinc-500: oklch(55.2% .016 285.938); --color-zinc-600: oklch(44.2% .017 285.786); --color-zinc-700: oklch(37% .013 285.805); --color-zinc-800: oklch(27.4% .006 286.033); --color-zinc-900: oklch(21% .006 285.885); --color-zinc-950: oklch(14.1% .005 285.823); --color-neutral-50: oklch(98.5% 0 0); --color-neutral-100: oklch(97% 0 0); --color-neutral-200: oklch(92.2% 0 0); --color-neutral-300: oklch(87% 0 0); --color-neutral-400: oklch(70.8% 0 0); --color-neutral-500: oklch(55.6% 0 0); --color-neutral-600: oklch(43.9% 0 0); --color-neutral-700: oklch(37.1% 0 0); --color-neutral-800: oklch(26.9% 0 0); --color-neutral-900: oklch(20.5% 0 0); --color-neutral-950: oklch(14.5% 0 0); --color-stone-50: oklch(98.5% .001 106.423); --color-stone-100: oklch(97% .001 106.424); --color-stone-200: oklch(92.3% .003 48.717); --color-stone-300: oklch(86.9% .005 56.366); --color-stone-400: oklch(70.9% .01 56.259); --color-stone-500: oklch(55.3% .013 58.071); --color-stone-600: oklch(44.4% .011 73.639); --color-stone-700: oklch(37.4% .01 67.558); --color-stone-800: oklch(26.8% .007 34.298); --color-stone-900: oklch(21.6% .006 56.043); --color-stone-950: oklch(14.7% .004 49.25); --color-black: #000; --color-white: #fff; --spacing: .25rem; --breakpoint-sm: 40rem; --breakpoint-md: 48rem; --breakpoint-lg: 64rem; --breakpoint-xl: 80rem; --breakpoint-2xl: 96rem; --container-3xs: 16rem; --container-2xs: 18rem; --container-xs: 20rem; --container-sm: 24rem; --container-md: 28rem; --container-lg: 32rem; --container-xl: 36rem; --container-2xl: 42rem; --container-3xl: 48rem; --container-4xl: 56rem; --container-5xl: 64rem; --container-6xl: 72rem; --container-7xl: 80rem; --text-xs: .75rem; --text-xs--line-height: calc(1/.75); --text-sm: .875rem; --text-sm--line-height: calc(1.25/.875); --text-base: 1rem; --text-base--line-height: calc(1.5/1); --text-lg: 1.125rem; --text-lg--line-height: calc(1.75/1.125); --text-xl: 1.25rem; --text-xl--line-height: calc(1.75/1.25); --text-2xl: 1.5rem; --text-2xl--line-height: calc(2/1.5); --text-3xl: 1.875rem; --text-3xl--line-height: calc(2.25/1.875); --text-4xl: 2.25rem; --text-4xl--line-height: calc(2.5/2.25); --text-5xl: 3rem; --text-5xl--line-height: 1; --text-6xl: 3.75rem; --text-6xl--line-height: 1; --text-7xl: 4.5rem; --text-7xl--line-height: 1; --text-8xl: 6rem; --text-8xl--line-height: 1; --text-9xl: 8rem; --text-9xl--line-height: 1; --font-weight-thin: 100; --font-weight-extralight: 200; --font-weight-light: 300; --font-weight-normal: 400; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; --font-weight-extrabold: 800; --font-weight-black: 900; --tracking-tighter: -.05em; --tracking-tight: -.025em; --tracking-normal: 0em; --tracking-wide: .025em; --tracking-wider: .05em; --tracking-widest: .1em; --leading-tight: 1.25; --leading-snug: 1.375; --leading-normal: 1.5; --leading-relaxed: 1.625; --leading-loose: 2; --radius-xs: .125rem; --radius-sm: .25rem; --radius-md: .375rem; --radius-lg: .5rem; --radius-xl: .75rem; --radius-2xl: 1rem; --radius-3xl: 1.5rem; --radius-4xl: 2rem; --shadow-2xs: 0 1px #0000000d; --shadow-xs: 0 1px 2px 0 #0000000d; --shadow-sm: 0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a; --shadow-md: 0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a; --shadow-lg: 0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a; --shadow-xl: 0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a; --shadow-2xl: 0 25px 50px -12px #00000040; --inset-shadow-2xs: inset 0 1px #0000000d; --inset-shadow-xs: inset 0 1px 1px #0000000d; --inset-shadow-sm: inset 0 2px 4px #0000000d; --drop-shadow-xs: 0 1px 1px #0000000d; --drop-shadow-sm: 0 1px 2px #00000026; --drop-shadow-md: 0 3px 3px #0000001f; --drop-shadow-lg: 0 4px 4px #00000026; --drop-shadow-xl: 0 9px 7px #0000001a; --drop-shadow-2xl: 0 25px 25px #00000026; --text-shadow-2xs: 0px 1px 0px #00000026; --text-shadow-xs: 0px 1px 1px #0003; --text-shadow-sm: 0px 1px 0px #00000013,0px 1px 1px #00000013,0px 2px 2px #00000013; --text-shadow-md: 0px 1px 1px #0000001a,0px 1px 2px #0000001a,0px 2px 4px #0000001a; --text-shadow-lg: 0px 1px 2px #0000001a,0px 3px 2px #0000001a,0px 4px 8px #0000001a; --ease-in: cubic-bezier(.4,0,1,1); --ease-out: cubic-bezier(0,0,.2,1); --ease-in-out: cubic-bezier(.4,0,.2,1); --animate-spin: spin 1s linear infinite; --animate-ping: ping 1s cubic-bezier(0,0,.2,1)infinite; --animate-pulse: pulse 2s cubic-bezier(.4,0,.6,1)infinite; --animate-bounce: bounce 1s infinite; @keyframes spin { to { transform: rotate(360deg); }}@keyframes ping { 75%,100% { transform: scale(2); opacity: 0; }}@keyframes pulse { 50% { opacity: .5; }}@keyframes bounce { 0%,100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8,0,1,1); }50% { transform: none; animation-timing-function: cubic-bezier(0,0,.2,1); }}--blur-xs: 4px; --blur-sm: 8px; --blur-md: 12px; --blur-lg: 16px; --blur-xl: 24px; --blur-2xl: 40px; --blur-3xl: 64px; --perspective-dramatic: 100px; --perspective-near: 300px; --perspective-normal: 500px; --perspective-midrange: 800px; --perspective-distant: 1200px; --aspect-video: 16/9; --default-transition-duration: .15s; --default-transition-timing-function: cubic-bezier(.4,0,.2,1); --default-font-family: --theme(--font-sans,initial); --default-font-feature-settings: --theme(--font-sans--font-feature-settings,initial); --default-font-variation-settings: --theme(--font-sans--font-variation-settings,initial); --default-mono-font-family: --theme(--font-mono,initial); --default-mono-font-feature-settings: --theme(--font-mono--font-feature-settings,initial); --default-mono-font-variation-settings: --theme(--font-mono--font-variation-settings,initial);}@theme default inline reference{--blur: 8px; --shadow: 0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a; --shadow-inner: inset 0 2px 4px 0 #0000000d; --drop-shadow: 0 1px 2px #0000001a,0 1px 1px #0000000f; --radius: .25rem; --max-width-prose: 65ch;}@theme{--color-red-50: #fef2f2; --color-red-100: #ffe2e2; --color-red-200: #ffc9c9; --color-red-300: #ffa2a2; --color-red-400: #ff6467; --color-red-500: #fb2c36; --color-red-600: #e7000b; --color-red-700: #c10007; --color-red-800: #9f0712; --color-red-900: #82181a; --color-red-950: #460809; --color-orange-50: #fff7ed; --color-orange-100: #ffedd4; --color-orange-200: #ffd6a7; --color-orange-300: #ffb86a; --color-orange-400: #ff8904; --color-orange-500: #ff6900; --color-orange-600: #f54900; --color-orange-700: #ca3500; --color-orange-800: #9f2d00; --color-orange-900: #7e2a0c; --color-orange-950: #441306; --color-amber-50: #fffbeb; --color-amber-100: #fef3c6; --color-amber-200: #fee685; --color-amber-300: #ffd230; --color-amber-400: #ffb900; --color-amber-500: #fe9a00; --color-amber-600: #e17100; --color-amber-700: #bb4d00; --color-amber-800: #973c00; --color-amber-900: #7b3306; --color-amber-950: #461901; --color-yellow-50: #fefce8; --color-yellow-100: #fef9c2; --color-yellow-200: #fff085; --color-yellow-300: #ffdf20; --color-yellow-400: #fdc700; --color-yellow-500: #f0b100; --color-yellow-600: #d08700; --color-yellow-700: #a65f00; --color-yellow-800: #894b00; --color-yellow-900: #733e0a; --color-yellow-950: #432004; --color-lime-50: #f7fee7; --color-lime-100: #ecfcca; --color-lime-200: #d8f999; --color-lime-300: #bbf451; --color-lime-400: #9ae600; --color-lime-500: #7ccf00; --color-lime-600: #5ea500; --color-lime-700: #497d00; --color-lime-800: #3c6300; --color-lime-900: #35530e; --color-lime-950: #192e03; --color-green-50: #f0fdf4; --color-green-100: #dcfce7; --color-green-200: #b9f8cf; --color-green-300: #7bf1a8; --color-green-400: #05df72; --color-green-500: #00c950; --color-green-600: #00a63e; --color-green-700: #008236; --color-green-800: #016630; --color-green-900: #0d542b; --color-green-950: #032e15; --color-emerald-50: #ecfdf5; --color-emerald-100: #d0fae5; --color-emerald-200: #a4f4cf; --color-emerald-300: #5ee9b5; --color-emerald-400: #00d492; --color-emerald-500: #00bc7d; --color-emerald-600: #096; --color-emerald-700: #007a55; --color-emerald-800: #006045; --color-emerald-900: #004f3b; --color-emerald-950: #002c22; --color-teal-50: #f0fdfa; --color-teal-100: #cbfbf1; --color-teal-200: #96f7e4; --color-teal-300: #46ecd5; --color-teal-400: #00d5be; --color-teal-500: #00bba7; --color-teal-600: #009689; --color-teal-700: #00786f; --color-teal-800: #005f5a; --color-teal-900: #0b4f4a; --color-teal-950: #022f2e; --color-cyan-50: #ecfeff; --color-cyan-100: #cefafe; --color-cyan-200: #a2f4fd; --color-cyan-300: #53eafd; --color-cyan-400: #00d3f2; --color-cyan-500: #00b8db; --color-cyan-600: #0092b8; --color-cyan-700: #007595; --color-cyan-800: #005f78; --color-cyan-900: #104e64; --color-cyan-950: #053345; --color-sky-50: #f0f9ff; --color-sky-100: #dff2fe; --color-sky-200: #b8e6fe; --color-sky-300: #74d4ff; --color-sky-400: #00bcff; --color-sky-500: #00a6f4; --color-sky-600: #0084d1; --color-sky-700: #0069a8; --color-sky-800: #00598a; --color-sky-900: #024a70; --color-sky-950: #052f4a; --color-blue-50: #eff6ff; --color-blue-100: #dbeafe; --color-blue-200: #bedbff; --color-blue-300: #8ec5ff; --color-blue-400: #51a2ff; --color-blue-500: #2b7fff; --color-blue-600: #155dfc; --color-blue-700: #1447e6; --color-blue-800: #193cb8; --color-blue-900: #1c398e; --color-blue-950: #162456; --color-indigo-50: #eef2ff; --color-indigo-100: #e0e7ff; --color-indigo-200: #c6d2ff; --color-indigo-300: #a3b3ff; --color-indigo-400: #7c86ff; --color-indigo-500: #615fff; --color-indigo-600: #4f39f6; --color-indigo-700: #432dd7; --color-indigo-800: #372aac; --color-indigo-900: #312c85; --color-indigo-950: #1e1a4d; --color-violet-50: #f5f3ff; --color-violet-100: #ede9fe; --color-violet-200: #ddd6ff; --color-violet-300: #c4b4ff; --color-violet-400: #a684ff; --color-violet-500: #8e51ff; --color-violet-600: #7f22fe; --color-violet-700: #7008e7; --color-violet-800: #5d0ec0; --color-violet-900: #4d179a; --color-violet-950: #2f0d68; --color-purple-50: #faf5ff; --color-purple-100: #f3e8ff; --color-purple-200: #e9d4ff; --color-purple-300: #dab2ff; --color-purple-400: #c27aff; --color-purple-500: #ad46ff; --color-purple-600: #9810fa; --color-purple-700: #8200db; --color-purple-800: #6e11b0; --color-purple-900: #59168b; --color-purple-950: #3c0366; --color-fuchsia-50: #fdf4ff; --color-fuchsia-100: #fae8ff; --color-fuchsia-200: #f6cfff; --color-fuchsia-300: #f4a8ff; --color-fuchsia-400: #ed6aff; --color-fuchsia-500: #e12afb; --color-fuchsia-600: #c800de; --color-fuchsia-700: #a800b7; --color-fuchsia-800: #8a0194; --color-fuchsia-900: #721378; --color-fuchsia-950: #4b004f; --color-pink-50: #fdf2f8; --color-pink-100: #fce7f3; --color-pink-200: #fccee8; --color-pink-300: #fda5d5; --color-pink-400: #fb64b6; --color-pink-500: #f6339a; --color-pink-600: #e60076; --color-pink-700: #c6005c; --color-pink-800: #a3004c; --color-pink-900: #861043; --color-pink-950: #510424; --color-rose-50: #fff1f2; --color-rose-100: #ffe4e6; --color-rose-200: #ffccd3; --color-rose-300: #ffa1ad; --color-rose-400: #ff637e; --color-rose-500: #ff2056; --color-rose-600: #ec003f; --color-rose-700: #c70036; --color-rose-800: #a50036; --color-rose-900: #8b0836; --color-rose-950: #4d0218; --color-slate-50: #f8fafc; --color-slate-100: #f1f5f9; --color-slate-200: #e2e8f0; --color-slate-300: #cad5e2; --color-slate-400: #90a1b9; --color-slate-500: #62748e; --color-slate-600: #45556c; --color-slate-700: #314158; --color-slate-800: #1d293d; --color-slate-900: #0f172b; --color-slate-950: #020618; --color-gray-50: #f9fafb; --color-gray-100: #f3f4f6; --color-gray-200: #e5e7eb; --color-gray-300: #d1d5dc; --color-gray-400: #99a1af; --color-gray-500: #6a7282; --color-gray-600: #4a5565; --color-gray-700: #364153; --color-gray-800: #1e2939; --color-gray-900: #101828; --color-gray-950: #030712; --color-zinc-50: #fafafa; --color-zinc-100: #f4f4f5; --color-zinc-200: #e4e4e7; --color-zinc-300: #d4d4d8; --color-zinc-400: #9f9fa9; --color-zinc-500: #71717b; --color-zinc-600: #52525c; --color-zinc-700: #3f3f46; --color-zinc-800: #27272a; --color-zinc-900: #18181b; --color-zinc-950: #09090b; --color-neutral-50: #fafafa; --color-neutral-100: #f5f5f5; --color-neutral-200: #e5e5e5; --color-neutral-300: #d4d4d4; --color-neutral-400: #a1a1a1; --color-neutral-500: #737373; --color-neutral-600: #525252; --color-neutral-700: #404040; --color-neutral-800: #262626; --color-neutral-900: #171717; --color-neutral-950: #0a0a0a; --color-stone-50: #fafaf9; --color-stone-100: #f5f5f4; --color-stone-200: #e7e5e4; --color-stone-300: #d6d3d1; --color-stone-400: #a6a09b; --color-stone-500: #79716b; --color-stone-600: #57534d; --color-stone-700: #44403b; --color-stone-800: #292524; --color-stone-900: #1c1917; --color-stone-950: #0c0a09; --color-black: #000; --color-white: #fff;}@tailwind utilities;
|
package/dist/chunk-3C5J2G6C.js
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkLSSLYD6Bjs = require('./chunk-LSSLYD6B.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkOGROHM4Ljs = require('./chunk-OGROHM4L.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkYOYWDNJIjs = require('./chunk-YOYWDNJI.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunkO335YLYHjs = require('./chunk-O335YLYH.js');
|
|
13
|
-
|
|
14
|
-
// src/bundlers/vite/index.ts
|
|
15
|
-
var debug = _chunkLSSLYD6Bjs.createDebug.call(void 0, );
|
|
16
|
-
function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
|
17
|
-
const opts = _chunkYOYWDNJIjs.getCompilerContext.call(void 0, options);
|
|
18
|
-
const {
|
|
19
|
-
disabled,
|
|
20
|
-
onEnd,
|
|
21
|
-
onLoad,
|
|
22
|
-
onStart,
|
|
23
|
-
onUpdate,
|
|
24
|
-
templateHandler,
|
|
25
|
-
styleHandler,
|
|
26
|
-
jsHandler,
|
|
27
|
-
mainCssChunkMatcher,
|
|
28
|
-
appType,
|
|
29
|
-
setMangleRuntimeSet,
|
|
30
|
-
cache,
|
|
31
|
-
twPatcher
|
|
32
|
-
} = opts;
|
|
33
|
-
if (disabled) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
twPatcher.patch();
|
|
37
|
-
onLoad();
|
|
38
|
-
return {
|
|
39
|
-
name: _chunkOGROHM4Ljs.vitePluginName,
|
|
40
|
-
enforce: "post",
|
|
41
|
-
async generateBundle(_opt, bundle) {
|
|
42
|
-
debug("start");
|
|
43
|
-
onStart();
|
|
44
|
-
const entries = Object.entries(bundle);
|
|
45
|
-
const groupedEntries = _chunkO335YLYHjs.getGroupedEntries.call(void 0, entries, opts);
|
|
46
|
-
const runtimeSet = await twPatcher.getClassSet();
|
|
47
|
-
setMangleRuntimeSet(runtimeSet);
|
|
48
|
-
debug("get runtimeSet, class count: %d", runtimeSet.size);
|
|
49
|
-
const promises = [];
|
|
50
|
-
if (Array.isArray(groupedEntries.html)) {
|
|
51
|
-
for (const element of groupedEntries.html) {
|
|
52
|
-
const [file, originalSource] = element;
|
|
53
|
-
const oldVal = originalSource.source.toString();
|
|
54
|
-
const hash = cache.computeHash(oldVal);
|
|
55
|
-
cache.calcHashValueChanged(file, hash);
|
|
56
|
-
promises.push(
|
|
57
|
-
cache.process(
|
|
58
|
-
file,
|
|
59
|
-
() => {
|
|
60
|
-
const source = cache.get(file);
|
|
61
|
-
if (source) {
|
|
62
|
-
originalSource.source = source;
|
|
63
|
-
debug("html cache hit: %s", file);
|
|
64
|
-
} else {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
async () => {
|
|
69
|
-
originalSource.source = await templateHandler(oldVal, {
|
|
70
|
-
runtimeSet
|
|
71
|
-
});
|
|
72
|
-
onUpdate(file, oldVal, originalSource.source);
|
|
73
|
-
debug("html handle: %s", file);
|
|
74
|
-
return {
|
|
75
|
-
key: file,
|
|
76
|
-
source: originalSource.source
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (Array.isArray(groupedEntries.js)) {
|
|
84
|
-
for (const element of groupedEntries.js.filter((x) => x[1].type === "chunk")) {
|
|
85
|
-
const [file, originalSource] = element;
|
|
86
|
-
const rawSource = originalSource.code;
|
|
87
|
-
const hash = cache.computeHash(rawSource);
|
|
88
|
-
cache.calcHashValueChanged(file, hash);
|
|
89
|
-
promises.push(
|
|
90
|
-
cache.process(
|
|
91
|
-
file,
|
|
92
|
-
() => {
|
|
93
|
-
const source = cache.get(file);
|
|
94
|
-
if (source) {
|
|
95
|
-
originalSource.code = source;
|
|
96
|
-
debug("js cache hit: %s", file);
|
|
97
|
-
} else {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
async () => {
|
|
102
|
-
const mapFilename = `${file}.map`;
|
|
103
|
-
const hasSourceMap = Boolean(bundle[mapFilename]);
|
|
104
|
-
const { code, map } = await jsHandler(rawSource, runtimeSet, {
|
|
105
|
-
generateMap: hasSourceMap
|
|
106
|
-
});
|
|
107
|
-
originalSource.code = code;
|
|
108
|
-
onUpdate(file, rawSource, code);
|
|
109
|
-
debug("js handle: %s", file);
|
|
110
|
-
if (hasSourceMap && map) {
|
|
111
|
-
;
|
|
112
|
-
bundle[mapFilename].source = map.toString();
|
|
113
|
-
}
|
|
114
|
-
return {
|
|
115
|
-
key: file,
|
|
116
|
-
source: code
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if (Array.isArray(groupedEntries.css)) {
|
|
124
|
-
for (const element of groupedEntries.css) {
|
|
125
|
-
const [file, originalSource] = element;
|
|
126
|
-
const rawSource = originalSource.source.toString();
|
|
127
|
-
const hash = cache.computeHash(rawSource);
|
|
128
|
-
cache.calcHashValueChanged(file, hash);
|
|
129
|
-
promises.push(
|
|
130
|
-
cache.process(
|
|
131
|
-
file,
|
|
132
|
-
() => {
|
|
133
|
-
const source = cache.get(file);
|
|
134
|
-
if (source) {
|
|
135
|
-
originalSource.source = source;
|
|
136
|
-
debug("css cache hit: %s", file);
|
|
137
|
-
} else {
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
async () => {
|
|
142
|
-
const { css } = await styleHandler(rawSource, {
|
|
143
|
-
isMainChunk: mainCssChunkMatcher(originalSource.fileName, appType),
|
|
144
|
-
postcssOptions: {
|
|
145
|
-
options: {
|
|
146
|
-
from: file
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
originalSource.source = css;
|
|
151
|
-
onUpdate(file, rawSource, css);
|
|
152
|
-
debug("css handle: %s", file);
|
|
153
|
-
return {
|
|
154
|
-
key: file,
|
|
155
|
-
source: css
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
)
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
await Promise.all(promises);
|
|
163
|
-
onEnd();
|
|
164
|
-
debug("end");
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
exports.UnifiedViteWeappTailwindcssPlugin = UnifiedViteWeappTailwindcssPlugin;
|
package/dist/chunk-DNHAKEMA.mjs
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createDebug
|
|
3
|
-
} from "./chunk-3AUX4FGE.mjs";
|
|
4
|
-
import {
|
|
5
|
-
vitePluginName
|
|
6
|
-
} from "./chunk-CMUA5KCO.mjs";
|
|
7
|
-
import {
|
|
8
|
-
getCompilerContext
|
|
9
|
-
} from "./chunk-XRPBGBW5.mjs";
|
|
10
|
-
import {
|
|
11
|
-
getGroupedEntries
|
|
12
|
-
} from "./chunk-JXBLHLFR.mjs";
|
|
13
|
-
|
|
14
|
-
// src/bundlers/vite/index.ts
|
|
15
|
-
var debug = createDebug();
|
|
16
|
-
function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
|
17
|
-
const opts = getCompilerContext(options);
|
|
18
|
-
const {
|
|
19
|
-
disabled,
|
|
20
|
-
onEnd,
|
|
21
|
-
onLoad,
|
|
22
|
-
onStart,
|
|
23
|
-
onUpdate,
|
|
24
|
-
templateHandler,
|
|
25
|
-
styleHandler,
|
|
26
|
-
jsHandler,
|
|
27
|
-
mainCssChunkMatcher,
|
|
28
|
-
appType,
|
|
29
|
-
setMangleRuntimeSet,
|
|
30
|
-
cache,
|
|
31
|
-
twPatcher
|
|
32
|
-
} = opts;
|
|
33
|
-
if (disabled) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
twPatcher.patch();
|
|
37
|
-
onLoad();
|
|
38
|
-
return {
|
|
39
|
-
name: vitePluginName,
|
|
40
|
-
enforce: "post",
|
|
41
|
-
async generateBundle(_opt, bundle) {
|
|
42
|
-
debug("start");
|
|
43
|
-
onStart();
|
|
44
|
-
const entries = Object.entries(bundle);
|
|
45
|
-
const groupedEntries = getGroupedEntries(entries, opts);
|
|
46
|
-
const runtimeSet = await twPatcher.getClassSet();
|
|
47
|
-
setMangleRuntimeSet(runtimeSet);
|
|
48
|
-
debug("get runtimeSet, class count: %d", runtimeSet.size);
|
|
49
|
-
const promises = [];
|
|
50
|
-
if (Array.isArray(groupedEntries.html)) {
|
|
51
|
-
for (const element of groupedEntries.html) {
|
|
52
|
-
const [file, originalSource] = element;
|
|
53
|
-
const oldVal = originalSource.source.toString();
|
|
54
|
-
const hash = cache.computeHash(oldVal);
|
|
55
|
-
cache.calcHashValueChanged(file, hash);
|
|
56
|
-
promises.push(
|
|
57
|
-
cache.process(
|
|
58
|
-
file,
|
|
59
|
-
() => {
|
|
60
|
-
const source = cache.get(file);
|
|
61
|
-
if (source) {
|
|
62
|
-
originalSource.source = source;
|
|
63
|
-
debug("html cache hit: %s", file);
|
|
64
|
-
} else {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
async () => {
|
|
69
|
-
originalSource.source = await templateHandler(oldVal, {
|
|
70
|
-
runtimeSet
|
|
71
|
-
});
|
|
72
|
-
onUpdate(file, oldVal, originalSource.source);
|
|
73
|
-
debug("html handle: %s", file);
|
|
74
|
-
return {
|
|
75
|
-
key: file,
|
|
76
|
-
source: originalSource.source
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (Array.isArray(groupedEntries.js)) {
|
|
84
|
-
for (const element of groupedEntries.js.filter((x) => x[1].type === "chunk")) {
|
|
85
|
-
const [file, originalSource] = element;
|
|
86
|
-
const rawSource = originalSource.code;
|
|
87
|
-
const hash = cache.computeHash(rawSource);
|
|
88
|
-
cache.calcHashValueChanged(file, hash);
|
|
89
|
-
promises.push(
|
|
90
|
-
cache.process(
|
|
91
|
-
file,
|
|
92
|
-
() => {
|
|
93
|
-
const source = cache.get(file);
|
|
94
|
-
if (source) {
|
|
95
|
-
originalSource.code = source;
|
|
96
|
-
debug("js cache hit: %s", file);
|
|
97
|
-
} else {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
async () => {
|
|
102
|
-
const mapFilename = `${file}.map`;
|
|
103
|
-
const hasSourceMap = Boolean(bundle[mapFilename]);
|
|
104
|
-
const { code, map } = await jsHandler(rawSource, runtimeSet, {
|
|
105
|
-
generateMap: hasSourceMap
|
|
106
|
-
});
|
|
107
|
-
originalSource.code = code;
|
|
108
|
-
onUpdate(file, rawSource, code);
|
|
109
|
-
debug("js handle: %s", file);
|
|
110
|
-
if (hasSourceMap && map) {
|
|
111
|
-
;
|
|
112
|
-
bundle[mapFilename].source = map.toString();
|
|
113
|
-
}
|
|
114
|
-
return {
|
|
115
|
-
key: file,
|
|
116
|
-
source: code
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if (Array.isArray(groupedEntries.css)) {
|
|
124
|
-
for (const element of groupedEntries.css) {
|
|
125
|
-
const [file, originalSource] = element;
|
|
126
|
-
const rawSource = originalSource.source.toString();
|
|
127
|
-
const hash = cache.computeHash(rawSource);
|
|
128
|
-
cache.calcHashValueChanged(file, hash);
|
|
129
|
-
promises.push(
|
|
130
|
-
cache.process(
|
|
131
|
-
file,
|
|
132
|
-
() => {
|
|
133
|
-
const source = cache.get(file);
|
|
134
|
-
if (source) {
|
|
135
|
-
originalSource.source = source;
|
|
136
|
-
debug("css cache hit: %s", file);
|
|
137
|
-
} else {
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
async () => {
|
|
142
|
-
const { css } = await styleHandler(rawSource, {
|
|
143
|
-
isMainChunk: mainCssChunkMatcher(originalSource.fileName, appType),
|
|
144
|
-
postcssOptions: {
|
|
145
|
-
options: {
|
|
146
|
-
from: file
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
originalSource.source = css;
|
|
151
|
-
onUpdate(file, rawSource, css);
|
|
152
|
-
debug("css handle: %s", file);
|
|
153
|
-
return {
|
|
154
|
-
key: file,
|
|
155
|
-
source: css
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
)
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
await Promise.all(promises);
|
|
163
|
-
onEnd();
|
|
164
|
-
debug("end");
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export {
|
|
170
|
-
UnifiedViteWeappTailwindcssPlugin
|
|
171
|
-
};
|