weapp-tailwindcss 4.9.6 → 4.9.8-alpha.0
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/{chunk-6HOJUSTX.mjs → chunk-2HORYQCB.mjs} +1 -1
- package/dist/{chunk-56QWZ2UM.js → chunk-35WZBSR2.js} +5 -5
- package/dist/{chunk-SPH6SCTM.mjs → chunk-47TVJCQM.mjs} +1 -1
- package/dist/{chunk-XD5AWWTB.mjs → chunk-5VEPZUTO.mjs} +4 -4
- package/dist/{chunk-W7ETGQW7.mjs → chunk-B76ICULV.mjs} +1 -1
- package/dist/{chunk-VPHA77FH.js → chunk-DOX3RXJ2.js} +2 -2
- package/dist/{chunk-HWF5U4CI.mjs → chunk-EGOFMIDI.mjs} +1 -1
- package/dist/{chunk-PUUBR36U.mjs → chunk-FY4CU2TB.mjs} +8 -6
- package/dist/{chunk-Y6F6NBA7.js → chunk-HAM3JEU2.js} +1 -1
- package/dist/{chunk-R3IC273Z.mjs → chunk-IPXH3S3C.mjs} +2 -2
- package/dist/{chunk-3J6TSML5.js → chunk-KBLYUEKE.js} +31 -31
- package/dist/{chunk-VI5WDH6L.js → chunk-KTUGHGKO.js} +7 -7
- package/dist/{chunk-COWTRJLM.js → chunk-KUFBWA2F.js} +15 -13
- package/dist/{chunk-GHWN5Y7Z.mjs → chunk-LACRPTD6.mjs} +2 -2
- package/dist/{chunk-FYYBY3VK.js → chunk-LBZCKOMT.js} +1 -1
- package/dist/{chunk-4RUFPPI6.js → chunk-PO3CCFU7.js} +4 -4
- package/dist/{chunk-FQUFI6M7.js → chunk-WRVALWQL.js} +23 -23
- package/dist/{chunk-F345SX2I.js → chunk-WVE6IP6G.js} +5 -5
- package/dist/cli.js +40 -40
- package/dist/cli.mjs +3 -3
- package/dist/core.d.mts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +11 -11
- package/dist/core.mjs +4 -4
- package/dist/css-macro/postcss.js +1 -1
- package/dist/css-macro/postcss.mjs +1 -1
- package/dist/css-macro.js +1 -1
- package/dist/css-macro.mjs +1 -1
- package/dist/defaults.d.mts +1 -1
- package/dist/defaults.d.ts +1 -1
- package/dist/defaults.js +3 -3
- package/dist/defaults.mjs +2 -2
- package/dist/gulp.d.mts +1 -1
- package/dist/gulp.d.ts +1 -1
- package/dist/gulp.js +7 -7
- package/dist/gulp.mjs +5 -5
- package/dist/{index-D4tYbWC6.d.ts → index-vGuAfNvT.d.mts} +12 -3
- package/dist/{index-D4tYbWC6.d.mts → index-vGuAfNvT.d.ts} +12 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -11
- package/dist/index.mjs +8 -8
- package/dist/postcss-html-transform.js +1 -1
- package/dist/postcss-html-transform.mjs +1 -1
- package/dist/presets.d.mts +2 -1
- package/dist/presets.d.ts +2 -1
- package/dist/presets.js +6 -5
- package/dist/presets.mjs +2 -1
- package/dist/reset.js +1 -1
- package/dist/reset.mjs +1 -1
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/types.js +1 -1
- package/dist/types.mjs +1 -1
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +8 -8
- package/dist/vite.mjs +5 -5
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +9 -9
- package/dist/webpack.mjs +6 -6
- package/dist/webpack4.d.mts +1 -1
- package/dist/webpack4.d.ts +1 -1
- package/dist/webpack4.js +34 -34
- package/dist/webpack4.mjs +5 -5
- package/package.json +5 -5
package/dist/gulp.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITemplateHandlerOptions, CreateJsHandlerOptions } from './types.js';
|
|
2
2
|
import stream from 'node:stream';
|
|
3
|
-
import { U as UserDefinedOptions } from './index-
|
|
3
|
+
import { U as UserDefinedOptions } from './index-vGuAfNvT.js';
|
|
4
4
|
import { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
|
5
5
|
import '@babel/parser';
|
|
6
6
|
import 'magic-string';
|
package/dist/gulp.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKTUGHGKOjs = require('./chunk-KTUGHGKO.js');
|
|
4
4
|
require('./chunk-LTJQUORK.js');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-WVE6IP6G.js');
|
|
6
|
+
require('./chunk-KUFBWA2F.js');
|
|
7
|
+
require('./chunk-PO3CCFU7.js');
|
|
8
|
+
require('./chunk-LBZCKOMT.js');
|
|
9
9
|
require('./chunk-DYLQ6UOI.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-HAM3JEU2.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.createPlugins =
|
|
13
|
+
exports.createPlugins = _chunkKTUGHGKOjs.createPlugins;
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPlugins
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IPXH3S3C.mjs";
|
|
4
4
|
import "./chunk-RRHPTTCP.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-B76ICULV.mjs";
|
|
6
|
+
import "./chunk-FY4CU2TB.mjs";
|
|
7
7
|
import "./chunk-7D27E7TU.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-EGOFMIDI.mjs";
|
|
9
9
|
import "./chunk-OOHJLO5M.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-47TVJCQM.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createPlugins
|
|
13
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ParserOptions } from '@babel/parser';
|
|
2
|
-
import { LoadedPostcssOptions, CssPreflightOptions, CssCalcOptions, Rem2rpxOptions, Px2rpxOptions, PresetEnvOptions } from '@weapp-tailwindcss/postcss';
|
|
2
|
+
import { LoadedPostcssOptions, CssPreflightOptions, CssCalcOptions, Rem2rpxOptions, Px2rpxOptions, UnitsToPxOptions, PresetEnvOptions } from '@weapp-tailwindcss/postcss';
|
|
3
3
|
import { ILengthUnitsPatchOptions, TailwindcssPatchOptions } from 'tailwindcss-patch';
|
|
4
4
|
import { Buffer } from 'node:buffer';
|
|
5
5
|
import { sources } from 'webpack';
|
|
@@ -417,11 +417,11 @@ interface UserDefinedOptionsImportantPart {
|
|
|
417
417
|
/**
|
|
418
418
|
* 将全局选择器 `:root` 替换为指定值。
|
|
419
419
|
*
|
|
420
|
-
* @default `'page'` <br/>
|
|
420
|
+
* @default `['page','.tw-root','wx-root-portal-content']` <br/>
|
|
421
421
|
* @remarks
|
|
422
422
|
* 设置为 `false` 时不再替换,可根据宿主环境(例如 RootPortal)传入数组值。
|
|
423
423
|
* @example
|
|
424
|
-
* root: ['page', 'wx-root-content']
|
|
424
|
+
* root: ['page', '.tw-root', 'wx-root-portal-content']
|
|
425
425
|
*/
|
|
426
426
|
root?: string | string[] | false;
|
|
427
427
|
/**
|
|
@@ -459,6 +459,15 @@ interface UserDefinedOptionsImportantPart {
|
|
|
459
459
|
* 传入 `true` 启用默认映射(`1px = 1rpx`),或通过对象自定义更多行为。
|
|
460
460
|
*/
|
|
461
461
|
px2rpx?: boolean | Px2rpxOptions;
|
|
462
|
+
/**
|
|
463
|
+
* 多单位转 px 的转换配置。
|
|
464
|
+
*
|
|
465
|
+
* @group 0.重要配置
|
|
466
|
+
* @remarks
|
|
467
|
+
* 传入 `true` 启用默认映射(postcss-units-to-px 默认单位表),或通过对象自定义行为。
|
|
468
|
+
* 默认关闭。
|
|
469
|
+
*/
|
|
470
|
+
unitsToPx?: boolean | UnitsToPxOptions;
|
|
462
471
|
/**
|
|
463
472
|
* `postcss-preset-env` 的配置项。
|
|
464
473
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ParserOptions } from '@babel/parser';
|
|
2
|
-
import { LoadedPostcssOptions, CssPreflightOptions, CssCalcOptions, Rem2rpxOptions, Px2rpxOptions, PresetEnvOptions } from '@weapp-tailwindcss/postcss';
|
|
2
|
+
import { LoadedPostcssOptions, CssPreflightOptions, CssCalcOptions, Rem2rpxOptions, Px2rpxOptions, UnitsToPxOptions, PresetEnvOptions } from '@weapp-tailwindcss/postcss';
|
|
3
3
|
import { ILengthUnitsPatchOptions, TailwindcssPatchOptions } from 'tailwindcss-patch';
|
|
4
4
|
import { Buffer } from 'node:buffer';
|
|
5
5
|
import { sources } from 'webpack';
|
|
@@ -417,11 +417,11 @@ interface UserDefinedOptionsImportantPart {
|
|
|
417
417
|
/**
|
|
418
418
|
* 将全局选择器 `:root` 替换为指定值。
|
|
419
419
|
*
|
|
420
|
-
* @default `'page'` <br/>
|
|
420
|
+
* @default `['page','.tw-root','wx-root-portal-content']` <br/>
|
|
421
421
|
* @remarks
|
|
422
422
|
* 设置为 `false` 时不再替换,可根据宿主环境(例如 RootPortal)传入数组值。
|
|
423
423
|
* @example
|
|
424
|
-
* root: ['page', 'wx-root-content']
|
|
424
|
+
* root: ['page', '.tw-root', 'wx-root-portal-content']
|
|
425
425
|
*/
|
|
426
426
|
root?: string | string[] | false;
|
|
427
427
|
/**
|
|
@@ -459,6 +459,15 @@ interface UserDefinedOptionsImportantPart {
|
|
|
459
459
|
* 传入 `true` 启用默认映射(`1px = 1rpx`),或通过对象自定义更多行为。
|
|
460
460
|
*/
|
|
461
461
|
px2rpx?: boolean | Px2rpxOptions;
|
|
462
|
+
/**
|
|
463
|
+
* 多单位转 px 的转换配置。
|
|
464
|
+
*
|
|
465
|
+
* @group 0.重要配置
|
|
466
|
+
* @remarks
|
|
467
|
+
* 传入 `true` 启用默认映射(postcss-units-to-px 默认单位表),或通过对象自定义行为。
|
|
468
|
+
* 默认关闭。
|
|
469
|
+
*/
|
|
470
|
+
unitsToPx?: boolean | UnitsToPxOptions;
|
|
462
471
|
/**
|
|
463
472
|
* `postcss-preset-env` 的配置项。
|
|
464
473
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ export { createPlugins } from './gulp.mjs';
|
|
|
2
2
|
export { CreateJsHandlerOptions, IBaseWebpackPlugin, ICommonReplaceOptions, IJsHandlerOptions, ITemplateHandlerOptions, InternalPatchResult, InternalPostcssOptions, InternalUserDefinedOptions, JsHandler, JsHandlerResult, JsModuleGraphOptions, LinkedJsModuleResult, RefreshTailwindcssPatcherOptions, TailwindcssPatcherLike } from './types.mjs';
|
|
3
3
|
export { UnifiedViteWeappTailwindcssPlugin } from './vite.mjs';
|
|
4
4
|
export { UnifiedWebpackPluginV5, weappTailwindcssPackageDir } from './webpack.mjs';
|
|
5
|
-
export { A as AppType, D as DisabledOptions, I as IArbitraryValues, a as ICustomAttributes, b as ICustomAttributesEntities, c as ItemOrItemArray, U as UserDefinedOptions } from './index-
|
|
5
|
+
export { A as AppType, D as DisabledOptions, I as IArbitraryValues, a as ICustomAttributes, b as ICustomAttributesEntities, c as ItemOrItemArray, U as UserDefinedOptions } from './index-vGuAfNvT.mjs';
|
|
6
6
|
export { CssPreflightOptions, IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
|
7
7
|
import 'node:stream';
|
|
8
8
|
import '@babel/parser';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { createPlugins } from './gulp.js';
|
|
|
2
2
|
export { CreateJsHandlerOptions, IBaseWebpackPlugin, ICommonReplaceOptions, IJsHandlerOptions, ITemplateHandlerOptions, InternalPatchResult, InternalPostcssOptions, InternalUserDefinedOptions, JsHandler, JsHandlerResult, JsModuleGraphOptions, LinkedJsModuleResult, RefreshTailwindcssPatcherOptions, TailwindcssPatcherLike } from './types.js';
|
|
3
3
|
export { UnifiedViteWeappTailwindcssPlugin } from './vite.js';
|
|
4
4
|
export { UnifiedWebpackPluginV5, weappTailwindcssPackageDir } from './webpack.js';
|
|
5
|
-
export { A as AppType, D as DisabledOptions, I as IArbitraryValues, a as ICustomAttributes, b as ICustomAttributesEntities, c as ItemOrItemArray, U as UserDefinedOptions } from './index-
|
|
5
|
+
export { A as AppType, D as DisabledOptions, I as IArbitraryValues, a as ICustomAttributes, b as ICustomAttributesEntities, c as ItemOrItemArray, U as UserDefinedOptions } from './index-vGuAfNvT.js';
|
|
6
6
|
export { CssPreflightOptions, IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
|
7
7
|
import 'node:stream';
|
|
8
8
|
import '@babel/parser';
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkKBLYUEKEjs = require('./chunk-KBLYUEKE.js');
|
|
5
|
+
require('./chunk-35WZBSR2.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkKTUGHGKOjs = require('./chunk-KTUGHGKO.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
11
|
+
var _chunkWRVALWQLjs = require('./chunk-WRVALWQL.js');
|
|
12
|
+
require('./chunk-DOX3RXJ2.js');
|
|
13
13
|
require('./chunk-LTJQUORK.js');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-WVE6IP6G.js');
|
|
15
|
+
require('./chunk-KUFBWA2F.js');
|
|
16
|
+
require('./chunk-PO3CCFU7.js');
|
|
17
|
+
require('./chunk-LBZCKOMT.js');
|
|
18
18
|
require('./chunk-DYLQ6UOI.js');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-HAM3JEU2.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
25
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunkWRVALWQLjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkKBLYUEKEjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkKTUGHGKOjs.createPlugins; exports.weappTailwindcssPackageDir = _chunkKBLYUEKEjs.weappTailwindcssPackageDir;
|
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedWebpackPluginV5,
|
|
3
3
|
weappTailwindcssPackageDir
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-5VEPZUTO.mjs";
|
|
5
|
+
import "./chunk-2HORYQCB.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createPlugins
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IPXH3S3C.mjs";
|
|
9
9
|
import {
|
|
10
10
|
UnifiedViteWeappTailwindcssPlugin
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LACRPTD6.mjs";
|
|
12
12
|
import "./chunk-F2CKKG6Q.mjs";
|
|
13
13
|
import "./chunk-RRHPTTCP.mjs";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-B76ICULV.mjs";
|
|
15
|
+
import "./chunk-FY4CU2TB.mjs";
|
|
16
16
|
import "./chunk-7D27E7TU.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-EGOFMIDI.mjs";
|
|
18
18
|
import "./chunk-OOHJLO5M.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-47TVJCQM.mjs";
|
|
20
20
|
export {
|
|
21
21
|
UnifiedViteWeappTailwindcssPlugin,
|
|
22
22
|
UnifiedWebpackPluginV5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-HAM3JEU2.js');
|
|
2
2
|
|
|
3
3
|
// src/postcss-html-transform.ts
|
|
4
4
|
var _htmltransform = require('@weapp-tailwindcss/postcss/html-transform'); var _htmltransform2 = _interopRequireDefault(_htmltransform);
|
package/dist/presets.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PackageResolvingOptions } from 'local-pkg';
|
|
2
|
-
import { U as UserDefinedOptions } from './index-
|
|
2
|
+
import { U as UserDefinedOptions } from './index-vGuAfNvT.mjs';
|
|
3
3
|
import '@babel/parser';
|
|
4
4
|
import '@weapp-tailwindcss/postcss';
|
|
5
5
|
import 'tailwindcss-patch';
|
|
@@ -24,6 +24,7 @@ interface UniAppXOptions {
|
|
|
24
24
|
base: string;
|
|
25
25
|
cssEntries?: string[];
|
|
26
26
|
rem2rpx?: UserDefinedOptions['rem2rpx'];
|
|
27
|
+
unitsToPx?: UserDefinedOptions['unitsToPx'];
|
|
27
28
|
rawOptions?: UserDefinedOptions;
|
|
28
29
|
resolve?: PackageResolvingOptions;
|
|
29
30
|
customAttributes?: UserDefinedOptions['customAttributes'];
|
package/dist/presets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PackageResolvingOptions } from 'local-pkg';
|
|
2
|
-
import { U as UserDefinedOptions } from './index-
|
|
2
|
+
import { U as UserDefinedOptions } from './index-vGuAfNvT.js';
|
|
3
3
|
import '@babel/parser';
|
|
4
4
|
import '@weapp-tailwindcss/postcss';
|
|
5
5
|
import 'tailwindcss-patch';
|
|
@@ -24,6 +24,7 @@ interface UniAppXOptions {
|
|
|
24
24
|
base: string;
|
|
25
25
|
cssEntries?: string[];
|
|
26
26
|
rem2rpx?: UserDefinedOptions['rem2rpx'];
|
|
27
|
+
unitsToPx?: UserDefinedOptions['unitsToPx'];
|
|
27
28
|
rawOptions?: UserDefinedOptions;
|
|
28
29
|
resolve?: PackageResolvingOptions;
|
|
29
30
|
customAttributes?: UserDefinedOptions['customAttributes'];
|
package/dist/presets.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPO3CCFU7js = require('./chunk-PO3CCFU7.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkDYLQ6UOIjs = require('./chunk-DYLQ6UOI.js');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-HAM3JEU2.js');
|
|
10
10
|
|
|
11
11
|
// src/presets/shared.ts
|
|
12
12
|
function normalizeCssEntries(entries) {
|
|
@@ -24,7 +24,7 @@ function createBasePreset(options = {}) {
|
|
|
24
24
|
rawOptions,
|
|
25
25
|
...userOptions
|
|
26
26
|
} = options;
|
|
27
|
-
const baseDir =
|
|
27
|
+
const baseDir = _chunkPO3CCFU7js.resolveTailwindcssBasedir.call(void 0, base);
|
|
28
28
|
const normalizedCssEntries = normalizeCssEntries(cssEntries);
|
|
29
29
|
const tailwindConfig = {
|
|
30
30
|
v2: { cwd: baseDir },
|
|
@@ -70,10 +70,10 @@ function uniApp(options = {}) {
|
|
|
70
70
|
// src/presets/uni-app-x.ts
|
|
71
71
|
|
|
72
72
|
function uniAppX(options) {
|
|
73
|
-
|
|
73
|
+
_chunkPO3CCFU7js.logger.info(`UNI_PLATFORM: ${_process2.default.env.UNI_PLATFORM}`);
|
|
74
74
|
const utsPlatform = _chunkDYLQ6UOIjs.resolveUniUtsPlatform.call(void 0, );
|
|
75
75
|
const uniPlatform = _chunkDYLQ6UOIjs.resolveUniUtsPlatform.call(void 0, _process2.default.env.UNI_PLATFORM);
|
|
76
|
-
|
|
76
|
+
_chunkPO3CCFU7js.logger.info(`UNI_UTS_PLATFORM: ${_nullishCoalesce(utsPlatform.raw, () => ( "undefined"))}`);
|
|
77
77
|
const isApp = utsPlatform.isApp || uniPlatform.isApp;
|
|
78
78
|
const cssEntries = normalizeCssEntries(options.cssEntries);
|
|
79
79
|
return _chunkDYLQ6UOIjs.defuOverrideArray.call(void 0,
|
|
@@ -81,6 +81,7 @@ function uniAppX(options) {
|
|
|
81
81
|
{
|
|
82
82
|
uniAppX: isApp,
|
|
83
83
|
rem2rpx: options.rem2rpx,
|
|
84
|
+
unitsToPx: options.unitsToPx,
|
|
84
85
|
tailwindcssBasedir: options.base,
|
|
85
86
|
tailwindcssPatcherOptions: {
|
|
86
87
|
cwd: options.base,
|
package/dist/presets.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
defuOverrideArray,
|
|
7
7
|
resolveUniUtsPlatform
|
|
8
8
|
} from "./chunk-OOHJLO5M.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-47TVJCQM.mjs";
|
|
10
10
|
|
|
11
11
|
// src/presets/shared.ts
|
|
12
12
|
function normalizeCssEntries(entries) {
|
|
@@ -81,6 +81,7 @@ function uniAppX(options) {
|
|
|
81
81
|
{
|
|
82
82
|
uniAppX: isApp,
|
|
83
83
|
rem2rpx: options.rem2rpx,
|
|
84
|
+
unitsToPx: options.unitsToPx,
|
|
84
85
|
tailwindcssBasedir: options.base,
|
|
85
86
|
tailwindcssPatcherOptions: {
|
|
86
87
|
cwd: options.base,
|
package/dist/reset.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('./chunk-HAM3JEU2.js');
|
|
2
2
|
|
|
3
3
|
// src/reset/index.ts
|
|
4
4
|
var _plugin = require('tailwindcss/plugin'); var _plugin2 = _interopRequireDefault(_plugin);
|
package/dist/reset.mjs
CHANGED
package/dist/types.d.mts
CHANGED
|
@@ -4,8 +4,8 @@ export { CssPreflightOptions, IStyleHandlerOptions } from '@weapp-tailwindcss/po
|
|
|
4
4
|
import { SourceMap } from 'magic-string';
|
|
5
5
|
import { Result, Root, Document } from 'postcss';
|
|
6
6
|
import { ILengthUnitsPatchOptions, TailwindcssPatcher } from 'tailwindcss-patch';
|
|
7
|
-
import { I as IArbitraryValues, U as UserDefinedOptions, b as ICustomAttributesEntities, d as ICreateCacheReturnType, A as AppType } from './index-
|
|
8
|
-
export { D as DisabledOptions, a as ICustomAttributes, c as ItemOrItemArray } from './index-
|
|
7
|
+
import { I as IArbitraryValues, U as UserDefinedOptions, b as ICustomAttributesEntities, d as ICreateCacheReturnType, A as AppType } from './index-vGuAfNvT.mjs';
|
|
8
|
+
export { D as DisabledOptions, a as ICustomAttributes, c as ItemOrItemArray } from './index-vGuAfNvT.mjs';
|
|
9
9
|
import 'node:buffer';
|
|
10
10
|
import 'webpack';
|
|
11
11
|
import 'lru-cache';
|
package/dist/types.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export { CssPreflightOptions, IStyleHandlerOptions } from '@weapp-tailwindcss/po
|
|
|
4
4
|
import { SourceMap } from 'magic-string';
|
|
5
5
|
import { Result, Root, Document } from 'postcss';
|
|
6
6
|
import { ILengthUnitsPatchOptions, TailwindcssPatcher } from 'tailwindcss-patch';
|
|
7
|
-
import { I as IArbitraryValues, U as UserDefinedOptions, b as ICustomAttributesEntities, d as ICreateCacheReturnType, A as AppType } from './index-
|
|
8
|
-
export { D as DisabledOptions, a as ICustomAttributes, c as ItemOrItemArray } from './index-
|
|
7
|
+
import { I as IArbitraryValues, U as UserDefinedOptions, b as ICustomAttributesEntities, d as ICreateCacheReturnType, A as AppType } from './index-vGuAfNvT.js';
|
|
8
|
+
export { D as DisabledOptions, a as ICustomAttributes, c as ItemOrItemArray } from './index-vGuAfNvT.js';
|
|
9
9
|
import 'node:buffer';
|
|
10
10
|
import 'webpack';
|
|
11
11
|
import 'lru-cache';
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./chunk-
|
|
1
|
+
"use strict";require('./chunk-HAM3JEU2.js');
|
package/dist/types.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-47TVJCQM.mjs";
|
package/dist/vite.d.mts
CHANGED
package/dist/vite.d.ts
CHANGED
package/dist/vite.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkWRVALWQLjs = require('./chunk-WRVALWQL.js');
|
|
4
|
+
require('./chunk-DOX3RXJ2.js');
|
|
5
5
|
require('./chunk-LTJQUORK.js');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-WVE6IP6G.js');
|
|
7
|
+
require('./chunk-KUFBWA2F.js');
|
|
8
|
+
require('./chunk-PO3CCFU7.js');
|
|
9
|
+
require('./chunk-LBZCKOMT.js');
|
|
10
10
|
require('./chunk-DYLQ6UOI.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-HAM3JEU2.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
14
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunkWRVALWQLjs.UnifiedViteWeappTailwindcssPlugin;
|
package/dist/vite.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedViteWeappTailwindcssPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LACRPTD6.mjs";
|
|
4
4
|
import "./chunk-F2CKKG6Q.mjs";
|
|
5
5
|
import "./chunk-RRHPTTCP.mjs";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-B76ICULV.mjs";
|
|
7
|
+
import "./chunk-FY4CU2TB.mjs";
|
|
8
8
|
import "./chunk-7D27E7TU.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-EGOFMIDI.mjs";
|
|
10
10
|
import "./chunk-OOHJLO5M.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-47TVJCQM.mjs";
|
|
12
12
|
export {
|
|
13
13
|
UnifiedViteWeappTailwindcssPlugin
|
|
14
14
|
};
|
package/dist/webpack.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Compiler } from 'webpack';
|
|
2
2
|
import { IBaseWebpackPlugin, InternalUserDefinedOptions } from './types.mjs';
|
|
3
|
-
import { A as AppType, U as UserDefinedOptions } from './index-
|
|
3
|
+
import { A as AppType, U as UserDefinedOptions } from './index-vGuAfNvT.mjs';
|
|
4
4
|
import '@babel/parser';
|
|
5
5
|
import '@weapp-tailwindcss/postcss';
|
|
6
6
|
import 'magic-string';
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Compiler } from 'webpack';
|
|
2
2
|
import { IBaseWebpackPlugin, InternalUserDefinedOptions } from './types.js';
|
|
3
|
-
import { A as AppType, U as UserDefinedOptions } from './index-
|
|
3
|
+
import { A as AppType, U as UserDefinedOptions } from './index-vGuAfNvT.js';
|
|
4
4
|
import '@babel/parser';
|
|
5
5
|
import '@weapp-tailwindcss/postcss';
|
|
6
6
|
import 'magic-string';
|
package/dist/webpack.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkKBLYUEKEjs = require('./chunk-KBLYUEKE.js');
|
|
5
|
+
require('./chunk-35WZBSR2.js');
|
|
6
|
+
require('./chunk-DOX3RXJ2.js');
|
|
7
7
|
require('./chunk-LTJQUORK.js');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-WVE6IP6G.js');
|
|
9
|
+
require('./chunk-KUFBWA2F.js');
|
|
10
|
+
require('./chunk-PO3CCFU7.js');
|
|
11
|
+
require('./chunk-LBZCKOMT.js');
|
|
12
12
|
require('./chunk-DYLQ6UOI.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-HAM3JEU2.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.UnifiedWebpackPluginV5 =
|
|
17
|
+
exports.UnifiedWebpackPluginV5 = _chunkKBLYUEKEjs.UnifiedWebpackPluginV5; exports.weappTailwindcssPackageDir = _chunkKBLYUEKEjs.weappTailwindcssPackageDir;
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedWebpackPluginV5,
|
|
3
3
|
weappTailwindcssPackageDir
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-5VEPZUTO.mjs";
|
|
5
|
+
import "./chunk-2HORYQCB.mjs";
|
|
6
6
|
import "./chunk-F2CKKG6Q.mjs";
|
|
7
7
|
import "./chunk-RRHPTTCP.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-B76ICULV.mjs";
|
|
9
|
+
import "./chunk-FY4CU2TB.mjs";
|
|
10
10
|
import "./chunk-7D27E7TU.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-EGOFMIDI.mjs";
|
|
12
12
|
import "./chunk-OOHJLO5M.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-47TVJCQM.mjs";
|
|
14
14
|
export {
|
|
15
15
|
UnifiedWebpackPluginV5,
|
|
16
16
|
weappTailwindcssPackageDir
|
package/dist/webpack4.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Compiler } from 'webpack4';
|
|
2
2
|
import { IBaseWebpackPlugin, InternalUserDefinedOptions } from './types.mjs';
|
|
3
|
-
import { A as AppType, U as UserDefinedOptions } from './index-
|
|
3
|
+
import { A as AppType, U as UserDefinedOptions } from './index-vGuAfNvT.mjs';
|
|
4
4
|
import '@babel/parser';
|
|
5
5
|
import '@weapp-tailwindcss/postcss';
|
|
6
6
|
import 'magic-string';
|
package/dist/webpack4.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Compiler } from 'webpack4';
|
|
2
2
|
import { IBaseWebpackPlugin, InternalUserDefinedOptions } from './types.js';
|
|
3
|
-
import { A as AppType, U as UserDefinedOptions } from './index-
|
|
3
|
+
import { A as AppType, U as UserDefinedOptions } from './index-vGuAfNvT.js';
|
|
4
4
|
import '@babel/parser';
|
|
5
5
|
import '@weapp-tailwindcss/postcss';
|
|
6
6
|
import 'magic-string';
|