weapp-tailwindcss 4.10.0-beta.2 → 4.10.0-beta.3
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-GFJYJ6WV.js → chunk-2BHX22WT.js} +27 -27
- package/dist/{chunk-D3I6GQUV.mjs → chunk-2VVKFR3W.mjs} +13 -3
- package/dist/{chunk-YS2V3XY2.js → chunk-4EMVQ5H2.js} +15 -15
- package/dist/{chunk-3RGU475C.js → chunk-5APD2MNV.js} +163 -77
- package/dist/{chunk-UCDOKKRH.js → chunk-AAVDJYEE.js} +24 -14
- package/dist/{chunk-F7FBGRWS.js → chunk-NDRBH7DO.js} +7 -7
- package/dist/{chunk-AGF55OIE.mjs → chunk-PBA2SZ3H.mjs} +2 -2
- package/dist/{chunk-FIJF6OL7.mjs → chunk-Q6NT6TZQ.mjs} +2 -2
- package/dist/{chunk-7D27E7TU.mjs → chunk-QOTLDKI4.mjs} +131 -45
- package/dist/{chunk-QOWSZHYT.js → chunk-RHQJLGBF.js} +3 -3
- package/dist/{chunk-2KAM7AAG.mjs → chunk-SLXV5ZYJ.mjs} +2 -2
- package/dist/{chunk-Q7TIBSU2.mjs → chunk-TIZBA67F.mjs} +1 -1
- package/dist/{chunk-7ATL22KK.mjs → chunk-TYYAOYEJ.mjs} +3 -3
- package/dist/{chunk-FLJBD5TW.js → chunk-VEJYEJ4V.js} +5 -5
- package/dist/cli.js +45 -45
- package/dist/cli.mjs +9 -9
- package/dist/core.d.mts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +8 -8
- package/dist/core.mjs +3 -3
- package/dist/defaults.d.mts +1 -1
- package/dist/defaults.d.ts +1 -1
- package/dist/gulp.d.mts +1 -1
- package/dist/gulp.d.ts +1 -1
- package/dist/gulp.js +5 -5
- package/dist/gulp.mjs +4 -4
- package/dist/{index-vGuAfNvT.d.mts → index-v0opId0x.d.mts} +1 -1
- package/dist/{index-vGuAfNvT.d.ts → index-v0opId0x.d.ts} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/presets.d.mts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +8 -8
- package/dist/presets.mjs +5 -5
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +5 -5
- package/dist/vite.mjs +4 -4
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +6 -6
- package/dist/webpack.mjs +5 -5
- package/dist/webpack4.d.mts +1 -1
- package/dist/webpack4.d.ts +1 -1
- package/dist/webpack4.js +27 -27
- package/dist/webpack4.mjs +4 -4
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
clearTailwindcssPatcherCache,
|
|
4
4
|
createPatchTargetRecorder,
|
|
5
5
|
logTailwindcssTarget
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2VVKFR3W.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
logger
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QOTLDKI4.mjs";
|
|
11
11
|
import "./chunk-EGOFMIDI.mjs";
|
|
12
12
|
import "./chunk-OOHJLO5M.mjs";
|
|
13
13
|
import "./chunk-HT76VHOV.mjs";
|
|
@@ -225,12 +225,12 @@ var DEFAULT_EXTEND_LENGTH_UNITS_FEATURE = {
|
|
|
225
225
|
};
|
|
226
226
|
function withDefaultExtendLengthUnits(options) {
|
|
227
227
|
const normalized = options ?? {};
|
|
228
|
-
const extendLengthUnits = normalized.
|
|
228
|
+
const extendLengthUnits = normalized.apply?.extendLengthUnits;
|
|
229
229
|
if (extendLengthUnits == null) {
|
|
230
230
|
return {
|
|
231
231
|
...normalized,
|
|
232
|
-
|
|
233
|
-
...normalized.
|
|
232
|
+
apply: {
|
|
233
|
+
...normalized.apply ?? {},
|
|
234
234
|
extendLengthUnits: DEFAULT_EXTEND_LENGTH_UNITS_FEATURE
|
|
235
235
|
}
|
|
236
236
|
};
|
|
@@ -238,11 +238,11 @@ function withDefaultExtendLengthUnits(options) {
|
|
|
238
238
|
return normalized;
|
|
239
239
|
}
|
|
240
240
|
function buildExtendLengthUnitsOverride(options) {
|
|
241
|
-
const extendLengthUnits = options?.
|
|
241
|
+
const extendLengthUnits = options?.apply?.extendLengthUnits;
|
|
242
242
|
if (extendLengthUnits == null) {
|
|
243
243
|
return {
|
|
244
|
-
|
|
245
|
-
...options?.
|
|
244
|
+
apply: {
|
|
245
|
+
...options?.apply ?? {},
|
|
246
246
|
extendLengthUnits: DEFAULT_EXTEND_LENGTH_UNITS_FEATURE
|
|
247
247
|
}
|
|
248
248
|
};
|
|
@@ -384,7 +384,7 @@ function summarizeWorkspaceResults(results) {
|
|
|
384
384
|
function createWorkspacePatcher(cwd) {
|
|
385
385
|
const normalized = normalizeOptions(
|
|
386
386
|
withDefaultExtendLengthUnits({
|
|
387
|
-
cwd
|
|
387
|
+
projectRoot: cwd
|
|
388
388
|
})
|
|
389
389
|
);
|
|
390
390
|
return new TailwindcssPatcher(normalized);
|
package/dist/core.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITemplateHandlerOptions, CreateJsHandlerOptions, JsHandlerResult } from './types.mjs';
|
|
2
2
|
import * as postcss from 'postcss';
|
|
3
|
-
import { U as UserDefinedOptions } from './index-
|
|
3
|
+
import { U as UserDefinedOptions } from './index-v0opId0x.mjs';
|
|
4
4
|
import { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
|
5
5
|
import '@babel/parser';
|
|
6
6
|
import 'magic-string';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITemplateHandlerOptions, CreateJsHandlerOptions, JsHandlerResult } from './types.js';
|
|
2
2
|
import * as postcss from 'postcss';
|
|
3
|
-
import { U as UserDefinedOptions } from './index-
|
|
3
|
+
import { U as UserDefinedOptions } from './index-v0opId0x.js';
|
|
4
4
|
import { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
|
5
5
|
import '@babel/parser';
|
|
6
6
|
import 'magic-string';
|
package/dist/core.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVEJYEJ4Vjs = require('./chunk-VEJYEJ4V.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkAAVDJYEEjs = require('./chunk-AAVDJYEE.js');
|
|
8
|
+
require('./chunk-5APD2MNV.js');
|
|
9
9
|
require('./chunk-LBZCKOMT.js');
|
|
10
10
|
require('./chunk-DYLQ6UOI.js');
|
|
11
11
|
require('./chunk-DBAAU4LK.js');
|
|
@@ -14,9 +14,9 @@ require('./chunk-DBAAU4LK.js');
|
|
|
14
14
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
15
15
|
var _shared = require('@weapp-tailwindcss/shared');
|
|
16
16
|
function createContext(options = {}) {
|
|
17
|
-
const opts =
|
|
17
|
+
const opts = _chunkAAVDJYEEjs.getCompilerContext.call(void 0, options);
|
|
18
18
|
const { templateHandler, styleHandler, jsHandler, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
|
|
19
|
-
const patchRecorderState =
|
|
19
|
+
const patchRecorderState = _chunkVEJYEJ4Vjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
|
|
20
20
|
source: "runtime",
|
|
21
21
|
cwd: _nullishCoalesce(opts.tailwindcssBasedir, () => ( _process2.default.cwd()))
|
|
22
22
|
});
|
|
@@ -32,7 +32,7 @@ function createContext(options = {}) {
|
|
|
32
32
|
const result = await styleHandler(rawCss, _shared.defuOverrideArray.call(void 0, options2, {
|
|
33
33
|
isMainChunk: true
|
|
34
34
|
}));
|
|
35
|
-
runtimeSet = await
|
|
35
|
+
runtimeSet = await _chunkAAVDJYEEjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
|
|
36
36
|
forceRefresh: true,
|
|
37
37
|
forceCollect: true
|
|
38
38
|
});
|
|
@@ -43,7 +43,7 @@ function createContext(options = {}) {
|
|
|
43
43
|
if (_optionalChain([options2, 'optionalAccess', _ => _.runtimeSet])) {
|
|
44
44
|
runtimeSet = options2.runtimeSet;
|
|
45
45
|
} else if (runtimeSet.size === 0) {
|
|
46
|
-
runtimeSet = await
|
|
46
|
+
runtimeSet = await _chunkAAVDJYEEjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
|
|
47
47
|
forceCollect: true
|
|
48
48
|
});
|
|
49
49
|
}
|
|
@@ -55,7 +55,7 @@ function createContext(options = {}) {
|
|
|
55
55
|
async function transformWxml(rawWxml, options2) {
|
|
56
56
|
await runtimeState.patchPromise;
|
|
57
57
|
if (!_optionalChain([options2, 'optionalAccess', _2 => _2.runtimeSet]) && runtimeSet.size === 0) {
|
|
58
|
-
runtimeSet = await
|
|
58
|
+
runtimeSet = await _chunkAAVDJYEEjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
|
|
59
59
|
forceCollect: true
|
|
60
60
|
});
|
|
61
61
|
}
|
package/dist/core.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setupPatchRecorder
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PBA2SZ3H.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ensureRuntimeClassSet,
|
|
6
6
|
getCompilerContext
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-2VVKFR3W.mjs";
|
|
8
|
+
import "./chunk-QOTLDKI4.mjs";
|
|
9
9
|
import "./chunk-EGOFMIDI.mjs";
|
|
10
10
|
import "./chunk-OOHJLO5M.mjs";
|
|
11
11
|
import "./chunk-HT76VHOV.mjs";
|
package/dist/defaults.d.mts
CHANGED
package/dist/defaults.d.ts
CHANGED
package/dist/gulp.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITemplateHandlerOptions, CreateJsHandlerOptions } from './types.mjs';
|
|
2
2
|
import stream from 'node:stream';
|
|
3
|
-
import { U as UserDefinedOptions } from './index-
|
|
3
|
+
import { U as UserDefinedOptions } from './index-v0opId0x.mjs';
|
|
4
4
|
import { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
|
5
5
|
import '@babel/parser';
|
|
6
6
|
import 'magic-string';
|
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-v0opId0x.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 _chunkNDRBH7DOjs = require('./chunk-NDRBH7DO.js');
|
|
4
4
|
require('./chunk-LTJQUORK.js');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-VEJYEJ4V.js');
|
|
6
|
+
require('./chunk-AAVDJYEE.js');
|
|
7
|
+
require('./chunk-5APD2MNV.js');
|
|
8
8
|
require('./chunk-LBZCKOMT.js');
|
|
9
9
|
require('./chunk-DYLQ6UOI.js');
|
|
10
10
|
require('./chunk-DBAAU4LK.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.createPlugins =
|
|
13
|
+
exports.createPlugins = _chunkNDRBH7DOjs.createPlugins;
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPlugins
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q6NT6TZQ.mjs";
|
|
4
4
|
import "./chunk-RRHPTTCP.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-PBA2SZ3H.mjs";
|
|
6
|
+
import "./chunk-2VVKFR3W.mjs";
|
|
7
|
+
import "./chunk-QOTLDKI4.mjs";
|
|
8
8
|
import "./chunk-EGOFMIDI.mjs";
|
|
9
9
|
import "./chunk-OOHJLO5M.mjs";
|
|
10
10
|
import "./chunk-HT76VHOV.mjs";
|
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-v0opId0x.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-v0opId0x.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,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk2BHX22WTjs = require('./chunk-2BHX22WT.js');
|
|
5
|
+
require('./chunk-RHQJLGBF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNDRBH7DOjs = require('./chunk-NDRBH7DO.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk4EMVQ5H2js = require('./chunk-4EMVQ5H2.js');
|
|
12
12
|
require('./chunk-IIDSY4XZ.js');
|
|
13
13
|
require('./chunk-LTJQUORK.js');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-VEJYEJ4V.js');
|
|
15
|
+
require('./chunk-AAVDJYEE.js');
|
|
16
|
+
require('./chunk-5APD2MNV.js');
|
|
17
17
|
require('./chunk-LBZCKOMT.js');
|
|
18
18
|
require('./chunk-DYLQ6UOI.js');
|
|
19
19
|
require('./chunk-DBAAU4LK.js');
|
|
@@ -22,4 +22,4 @@ require('./chunk-DBAAU4LK.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
25
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunk4EMVQ5H2js.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunk2BHX22WTjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkNDRBH7DOjs.createPlugins; exports.weappTailwindcssPackageDir = _chunk2BHX22WTjs.weappTailwindcssPackageDir;
|
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedWebpackPluginV5,
|
|
3
3
|
weappTailwindcssPackageDir
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TYYAOYEJ.mjs";
|
|
5
|
+
import "./chunk-TIZBA67F.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createPlugins
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Q6NT6TZQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
UnifiedViteWeappTailwindcssPlugin
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SLXV5ZYJ.mjs";
|
|
12
12
|
import "./chunk-F2CKKG6Q.mjs";
|
|
13
13
|
import "./chunk-RRHPTTCP.mjs";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-PBA2SZ3H.mjs";
|
|
15
|
+
import "./chunk-2VVKFR3W.mjs";
|
|
16
|
+
import "./chunk-QOTLDKI4.mjs";
|
|
17
17
|
import "./chunk-EGOFMIDI.mjs";
|
|
18
18
|
import "./chunk-OOHJLO5M.mjs";
|
|
19
19
|
import "./chunk-HT76VHOV.mjs";
|
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-v0opId0x.mjs';
|
|
3
3
|
import '@babel/parser';
|
|
4
4
|
import '@weapp-tailwindcss/postcss';
|
|
5
5
|
import 'tailwindcss-patch';
|
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-v0opId0x.js';
|
|
3
3
|
import '@babel/parser';
|
|
4
4
|
import '@weapp-tailwindcss/postcss';
|
|
5
5
|
import 'tailwindcss-patch';
|
package/dist/presets.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunk5APD2MNVjs = require('./chunk-5APD2MNV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -24,7 +24,7 @@ function createBasePreset(options = {}) {
|
|
|
24
24
|
rawOptions,
|
|
25
25
|
...userOptions
|
|
26
26
|
} = options;
|
|
27
|
-
const baseDir =
|
|
27
|
+
const baseDir = _chunk5APD2MNVjs.resolveTailwindcssBasedir.call(void 0, base);
|
|
28
28
|
const normalizedCssEntries = normalizeCssEntries(cssEntries);
|
|
29
29
|
const tailwindConfig = {
|
|
30
30
|
v2: { cwd: baseDir },
|
|
@@ -45,8 +45,8 @@ function createBasePreset(options = {}) {
|
|
|
45
45
|
tailwindcssBasedir: baseDir,
|
|
46
46
|
tailwindcss: tailwindConfig,
|
|
47
47
|
tailwindcssPatcherOptions: {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
projectRoot: baseDir,
|
|
49
|
+
tailwindcss: patchTailwindConfig
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
const mergedUserOptions = _chunkDYLQ6UOIjs.defuOverrideArray.call(void 0, userOptions, _nullishCoalesce(rawOptions, () => ( {})));
|
|
@@ -70,10 +70,10 @@ function uniApp(options = {}) {
|
|
|
70
70
|
// src/presets/uni-app-x.ts
|
|
71
71
|
|
|
72
72
|
function uniAppX(options) {
|
|
73
|
-
|
|
73
|
+
_chunk5APD2MNVjs.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
|
+
_chunk5APD2MNVjs.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,
|
|
@@ -84,8 +84,8 @@ function uniAppX(options) {
|
|
|
84
84
|
unitsToPx: options.unitsToPx,
|
|
85
85
|
tailwindcssBasedir: options.base,
|
|
86
86
|
tailwindcssPatcherOptions: {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
projectRoot: options.base,
|
|
88
|
+
tailwindcss: {
|
|
89
89
|
cwd: options.base,
|
|
90
90
|
resolve: options.resolve,
|
|
91
91
|
v3: {
|
package/dist/presets.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logger,
|
|
3
3
|
resolveTailwindcssBasedir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QOTLDKI4.mjs";
|
|
5
5
|
import {
|
|
6
6
|
defuOverrideArray,
|
|
7
7
|
resolveUniUtsPlatform
|
|
@@ -45,8 +45,8 @@ function createBasePreset(options = {}) {
|
|
|
45
45
|
tailwindcssBasedir: baseDir,
|
|
46
46
|
tailwindcss: tailwindConfig,
|
|
47
47
|
tailwindcssPatcherOptions: {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
projectRoot: baseDir,
|
|
49
|
+
tailwindcss: patchTailwindConfig
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
const mergedUserOptions = defuOverrideArray(userOptions, rawOptions ?? {});
|
|
@@ -84,8 +84,8 @@ function uniAppX(options) {
|
|
|
84
84
|
unitsToPx: options.unitsToPx,
|
|
85
85
|
tailwindcssBasedir: options.base,
|
|
86
86
|
tailwindcssPatcherOptions: {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
projectRoot: options.base,
|
|
88
|
+
tailwindcss: {
|
|
89
89
|
cwd: options.base,
|
|
90
90
|
resolve: options.resolve,
|
|
91
91
|
v3: {
|
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-v0opId0x.mjs';
|
|
8
|
+
export { D as DisabledOptions, a as ICustomAttributes, c as ItemOrItemArray } from './index-v0opId0x.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-v0opId0x.js';
|
|
8
|
+
export { D as DisabledOptions, a as ICustomAttributes, c as ItemOrItemArray } from './index-v0opId0x.js';
|
|
9
9
|
import 'node:buffer';
|
|
10
10
|
import 'webpack';
|
|
11
11
|
import 'lru-cache';
|
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
|
|
3
|
+
var _chunk4EMVQ5H2js = require('./chunk-4EMVQ5H2.js');
|
|
4
4
|
require('./chunk-IIDSY4XZ.js');
|
|
5
5
|
require('./chunk-LTJQUORK.js');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-VEJYEJ4V.js');
|
|
7
|
+
require('./chunk-AAVDJYEE.js');
|
|
8
|
+
require('./chunk-5APD2MNV.js');
|
|
9
9
|
require('./chunk-LBZCKOMT.js');
|
|
10
10
|
require('./chunk-DYLQ6UOI.js');
|
|
11
11
|
require('./chunk-DBAAU4LK.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
14
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunk4EMVQ5H2js.UnifiedViteWeappTailwindcssPlugin;
|
package/dist/vite.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedViteWeappTailwindcssPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SLXV5ZYJ.mjs";
|
|
4
4
|
import "./chunk-F2CKKG6Q.mjs";
|
|
5
5
|
import "./chunk-RRHPTTCP.mjs";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-PBA2SZ3H.mjs";
|
|
7
|
+
import "./chunk-2VVKFR3W.mjs";
|
|
8
|
+
import "./chunk-QOTLDKI4.mjs";
|
|
9
9
|
import "./chunk-EGOFMIDI.mjs";
|
|
10
10
|
import "./chunk-OOHJLO5M.mjs";
|
|
11
11
|
import "./chunk-HT76VHOV.mjs";
|
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-v0opId0x.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-v0opId0x.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-
|
|
4
|
+
var _chunk2BHX22WTjs = require('./chunk-2BHX22WT.js');
|
|
5
|
+
require('./chunk-RHQJLGBF.js');
|
|
6
6
|
require('./chunk-IIDSY4XZ.js');
|
|
7
7
|
require('./chunk-LTJQUORK.js');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-VEJYEJ4V.js');
|
|
9
|
+
require('./chunk-AAVDJYEE.js');
|
|
10
|
+
require('./chunk-5APD2MNV.js');
|
|
11
11
|
require('./chunk-LBZCKOMT.js');
|
|
12
12
|
require('./chunk-DYLQ6UOI.js');
|
|
13
13
|
require('./chunk-DBAAU4LK.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.UnifiedWebpackPluginV5 =
|
|
17
|
+
exports.UnifiedWebpackPluginV5 = _chunk2BHX22WTjs.UnifiedWebpackPluginV5; exports.weappTailwindcssPackageDir = _chunk2BHX22WTjs.weappTailwindcssPackageDir;
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedWebpackPluginV5,
|
|
3
3
|
weappTailwindcssPackageDir
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TYYAOYEJ.mjs";
|
|
5
|
+
import "./chunk-TIZBA67F.mjs";
|
|
6
6
|
import "./chunk-F2CKKG6Q.mjs";
|
|
7
7
|
import "./chunk-RRHPTTCP.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-PBA2SZ3H.mjs";
|
|
9
|
+
import "./chunk-2VVKFR3W.mjs";
|
|
10
|
+
import "./chunk-QOTLDKI4.mjs";
|
|
11
11
|
import "./chunk-EGOFMIDI.mjs";
|
|
12
12
|
import "./chunk-OOHJLO5M.mjs";
|
|
13
13
|
import "./chunk-HT76VHOV.mjs";
|
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-v0opId0x.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-v0opId0x.js';
|
|
4
4
|
import '@babel/parser';
|
|
5
5
|
import '@weapp-tailwindcss/postcss';
|
|
6
6
|
import 'magic-string';
|