weapp-tailwindcss 3.4.1-alpha.0 → 3.5.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/cli.js +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +12 -19
- package/dist/core.mjs +11 -18
- package/dist/gulp.js +2 -2
- package/dist/gulp.mjs +2 -2
- package/dist/{index-D2vCnq0L.js → index-B8Pxc74h.js} +4 -4
- package/dist/{index-BzBpgIQC.mjs → index-ClzClhjc.mjs} +2 -2
- package/dist/{index-CfNmAVCN.js → index-Ddev8wez.js} +2 -2
- package/dist/{index-CMr_nMSt.mjs → index-rwuSO4cM.mjs} +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{options-BM7Vlsxa.mjs → options-BT2K7ro6.mjs} +9 -8
- package/dist/{options-DZMpMNHN.js → options-BjD225Hm.js} +9 -8
- package/dist/postcss/index.d.ts +3 -2
- package/dist/types.d.ts +3 -3
- package/dist/{v5-BlJBEoqt.js → v5-_VYyLdJC.js} +2 -2
- package/dist/{v5-C49txkAQ.mjs → v5-vdra_05U.mjs} +2 -2
- package/dist/vite.js +2 -2
- package/dist/vite.mjs +2 -2
- package/dist/webpack.js +2 -2
- package/dist/webpack.mjs +2 -2
- package/dist/webpack4.js +2 -2
- package/dist/webpack4.mjs +2 -2
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var process = require('node:process');
|
|
4
4
|
var semver = require('semver');
|
|
5
|
-
var options = require('./options-
|
|
5
|
+
var options = require('./options-BjD225Hm.js');
|
|
6
6
|
var index = require('./index-CCbEWRGc.js');
|
|
7
7
|
require('magic-string');
|
|
8
8
|
require('@babel/generator');
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import semver from 'semver';
|
|
3
|
-
import { g as getOptions } from './options-
|
|
3
|
+
import { g as getOptions } from './options-BT2K7ro6.mjs';
|
|
4
4
|
import { W as WEAPP_TW_REQUIRED_NODE_VERSION } from './index-szMvMylQ.mjs';
|
|
5
5
|
import 'magic-string';
|
|
6
6
|
import '@babel/generator';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, UserDefinedOptions } from './types';
|
|
2
2
|
export declare function createContext(options?: UserDefinedOptions): {
|
|
3
|
-
transformWxss: (rawCss: string, options?: Partial<IStyleHandlerOptions>) => Promise<
|
|
3
|
+
transformWxss: (rawCss: string, options?: Partial<IStyleHandlerOptions>) => Promise<import("postcss").Result<import("postcss").Document | import("postcss").Root>>;
|
|
4
4
|
transformWxml: (rawWxml: string, options?: ITemplateHandlerOptions) => Promise<string>;
|
|
5
5
|
transformJs: (rawJs: string, options?: {
|
|
6
6
|
runtimeSet?: Set<string>;
|
|
7
|
-
} & CreateJsHandlerOptions) => Promise<
|
|
7
|
+
} & CreateJsHandlerOptions) => import("./types").JsHandlerResult | Promise<import("./types").JsHandlerResult>;
|
|
8
8
|
};
|
package/dist/core.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
5
|
+
var options = require('./options-BjD225Hm.js');
|
|
6
6
|
require('magic-string');
|
|
7
7
|
require('@babel/generator');
|
|
8
8
|
require('@babel/traverse');
|
|
@@ -33,29 +33,22 @@ function createContext(options$1 = {}) {
|
|
|
33
33
|
const { templateHandler, styleHandler, patch, jsHandler, twPatcher } = opts;
|
|
34
34
|
let runtimeSet = new Set();
|
|
35
35
|
patch === null || patch === void 0 ? void 0 : patch();
|
|
36
|
-
function transformWxss(rawCss, options
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, options$1));
|
|
41
|
-
return code;
|
|
42
|
-
});
|
|
36
|
+
function transformWxss(rawCss, options) {
|
|
37
|
+
return styleHandler(rawCss, Object.assign({
|
|
38
|
+
isMainChunk: true,
|
|
39
|
+
}, options));
|
|
43
40
|
}
|
|
44
|
-
function transformJs(
|
|
45
|
-
|
|
46
|
-
runtimeSet
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const { code } = yield jsHandler(rawJs, runtimeSet, options);
|
|
51
|
-
return code;
|
|
52
|
-
});
|
|
41
|
+
function transformJs(rawJs, options = {}) {
|
|
42
|
+
runtimeSet
|
|
43
|
+
= options && options.runtimeSet
|
|
44
|
+
? options.runtimeSet
|
|
45
|
+
: twPatcher.getClassSet();
|
|
46
|
+
return jsHandler(rawJs, runtimeSet, options);
|
|
53
47
|
}
|
|
54
48
|
function transformWxml(rawWxml, options) {
|
|
55
|
-
|
|
49
|
+
return templateHandler(rawWxml, Object.assign({
|
|
56
50
|
runtimeSet,
|
|
57
51
|
}, options));
|
|
58
|
-
return code;
|
|
59
52
|
}
|
|
60
53
|
return {
|
|
61
54
|
transformWxss,
|
package/dist/core.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions
|
|
1
|
+
import { g as getOptions } from './options-BT2K7ro6.mjs';
|
|
2
2
|
import 'magic-string';
|
|
3
3
|
import '@babel/generator';
|
|
4
4
|
import '@babel/traverse';
|
|
@@ -30,28 +30,21 @@ function createContext(options = {}) {
|
|
|
30
30
|
let runtimeSet = new Set();
|
|
31
31
|
patch === null || patch === void 0 ? void 0 : patch();
|
|
32
32
|
function transformWxss(rawCss, options) {
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, options));
|
|
37
|
-
return code;
|
|
38
|
-
});
|
|
33
|
+
return styleHandler(rawCss, Object.assign({
|
|
34
|
+
isMainChunk: true,
|
|
35
|
+
}, options));
|
|
39
36
|
}
|
|
40
|
-
function transformJs(
|
|
41
|
-
|
|
42
|
-
runtimeSet
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const { code } = yield jsHandler(rawJs, runtimeSet, options);
|
|
47
|
-
return code;
|
|
48
|
-
});
|
|
37
|
+
function transformJs(rawJs, options = {}) {
|
|
38
|
+
runtimeSet
|
|
39
|
+
= options && options.runtimeSet
|
|
40
|
+
? options.runtimeSet
|
|
41
|
+
: twPatcher.getClassSet();
|
|
42
|
+
return jsHandler(rawJs, runtimeSet, options);
|
|
49
43
|
}
|
|
50
44
|
function transformWxml(rawWxml, options) {
|
|
51
|
-
|
|
45
|
+
return templateHandler(rawWxml, Object.assign({
|
|
52
46
|
runtimeSet,
|
|
53
47
|
}, options));
|
|
54
|
-
return code;
|
|
55
48
|
}
|
|
56
49
|
return {
|
|
57
50
|
transformWxss,
|
package/dist/gulp.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
require('./options-
|
|
5
|
+
var index = require('./index-B8Pxc74h.js');
|
|
6
|
+
require('./options-BjD225Hm.js');
|
|
7
7
|
require('magic-string');
|
|
8
8
|
require('@babel/generator');
|
|
9
9
|
require('@babel/traverse');
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { c as createPlugins } from './index-
|
|
2
|
-
import './options-
|
|
1
|
+
export { c as createPlugins } from './index-rwuSO4cM.mjs';
|
|
2
|
+
import './options-BT2K7ro6.mjs';
|
|
3
3
|
import 'magic-string';
|
|
4
4
|
import '@babel/generator';
|
|
5
5
|
import '@babel/traverse';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var options = require('./options-
|
|
3
|
+
var options = require('./options-BjD225Hm.js');
|
|
4
4
|
var stream = require('node:stream');
|
|
5
5
|
var node_buffer = require('node:buffer');
|
|
6
6
|
var index = require('./index-HC-Qkn0i.js');
|
|
@@ -38,12 +38,12 @@ function createPlugins(options$1 = {}) {
|
|
|
38
38
|
return false;
|
|
39
39
|
}
|
|
40
40
|
}, () => options.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const
|
|
42
|
-
file.contents = node_buffer.Buffer.from(
|
|
41
|
+
const { css } = yield styleHandler(rawSource, Object.assign({ isMainChunk: true }, options$1));
|
|
42
|
+
file.contents = node_buffer.Buffer.from(css);
|
|
43
43
|
debug('css handle: %s', file.path);
|
|
44
44
|
return {
|
|
45
45
|
key: file.path,
|
|
46
|
-
source:
|
|
46
|
+
source: css,
|
|
47
47
|
};
|
|
48
48
|
}));
|
|
49
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, _ as __awaiter } from './options-BT2K7ro6.mjs';
|
|
2
2
|
import { v as vitePluginName } from './index-szMvMylQ.mjs';
|
|
3
3
|
import { g as getGroupedEntries } from './defaults-w3rlKQwe.mjs';
|
|
4
4
|
import { c as createDebug } from './index-BEIjgKpF.mjs';
|
|
@@ -109,7 +109,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
|
|
109
109
|
return false;
|
|
110
110
|
}
|
|
111
111
|
}, () => __awaiter(this, void 0, void 0, function* () {
|
|
112
|
-
const css = yield styleHandler(rawSource, {
|
|
112
|
+
const { css } = yield styleHandler(rawSource, {
|
|
113
113
|
isMainChunk: mainCssChunkMatcher(originalSource.fileName, appType),
|
|
114
114
|
});
|
|
115
115
|
originalSource.source = css;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var options = require('./options-
|
|
3
|
+
var options = require('./options-BjD225Hm.js');
|
|
4
4
|
var index = require('./index-CCbEWRGc.js');
|
|
5
5
|
var defaults = require('./defaults-DW-EahCC.js');
|
|
6
6
|
var index$1 = require('./index-HC-Qkn0i.js');
|
|
@@ -111,7 +111,7 @@ function UnifiedViteWeappTailwindcssPlugin(options$1 = {}) {
|
|
|
111
111
|
return false;
|
|
112
112
|
}
|
|
113
113
|
}, () => options.__awaiter(this, void 0, void 0, function* () {
|
|
114
|
-
const css = yield styleHandler(rawSource, {
|
|
114
|
+
const { css } = yield styleHandler(rawSource, {
|
|
115
115
|
isMainChunk: mainCssChunkMatcher(originalSource.fileName, appType),
|
|
116
116
|
});
|
|
117
117
|
originalSource.source = css;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, _ as __awaiter } from './options-BT2K7ro6.mjs';
|
|
2
2
|
import stream from 'node:stream';
|
|
3
3
|
import { Buffer } from 'node:buffer';
|
|
4
4
|
import { c as createDebug } from './index-BEIjgKpF.mjs';
|
|
@@ -32,12 +32,12 @@ function createPlugins(options = {}) {
|
|
|
32
32
|
return false;
|
|
33
33
|
}
|
|
34
34
|
}, () => __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
const
|
|
36
|
-
file.contents = Buffer.from(
|
|
35
|
+
const { css } = yield styleHandler(rawSource, Object.assign({ isMainChunk: true }, options));
|
|
36
|
+
file.contents = Buffer.from(css);
|
|
37
37
|
debug('css handle: %s', file.path);
|
|
38
38
|
return {
|
|
39
39
|
key: file.path,
|
|
40
|
-
source:
|
|
40
|
+
source: css,
|
|
41
41
|
};
|
|
42
42
|
}));
|
|
43
43
|
}
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var v5 = require('./v5-
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var index$1 = require('./index-
|
|
8
|
-
require('./options-
|
|
5
|
+
var v5 = require('./v5-_VYyLdJC.js');
|
|
6
|
+
var index = require('./index-Ddev8wez.js');
|
|
7
|
+
var index$1 = require('./index-B8Pxc74h.js');
|
|
8
|
+
require('./options-BjD225Hm.js');
|
|
9
9
|
require('magic-string');
|
|
10
10
|
require('@babel/generator');
|
|
11
11
|
require('@babel/traverse');
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { U as UnifiedWebpackPluginV5 } from './v5-
|
|
2
|
-
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-
|
|
3
|
-
export { c as createPlugins } from './index-
|
|
4
|
-
import './options-
|
|
1
|
+
export { U as UnifiedWebpackPluginV5 } from './v5-vdra_05U.mjs';
|
|
2
|
+
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-ClzClhjc.mjs';
|
|
3
|
+
export { c as createPlugins } from './index-rwuSO4cM.mjs';
|
|
4
|
+
import './options-BT2K7ro6.mjs';
|
|
5
5
|
import 'magic-string';
|
|
6
6
|
import '@babel/generator';
|
|
7
7
|
import '@babel/traverse';
|
|
@@ -233,6 +233,9 @@ function jsHandler(rawSource, options) {
|
|
|
233
233
|
traverse(ast, traverseOptions);
|
|
234
234
|
return {
|
|
235
235
|
code: ms.toString(),
|
|
236
|
+
get map() {
|
|
237
|
+
return ms.generateMap();
|
|
238
|
+
},
|
|
236
239
|
};
|
|
237
240
|
}
|
|
238
241
|
function jsHandlerAsync(rawSource, options) {
|
|
@@ -431,14 +434,12 @@ function createCache(options) {
|
|
|
431
434
|
}
|
|
432
435
|
|
|
433
436
|
function styleHandler(rawSource, options) {
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
.async()).css;
|
|
441
|
-
});
|
|
437
|
+
var _a, _b;
|
|
438
|
+
return postcss(getPlugins(options))
|
|
439
|
+
.process(rawSource, (_b = (_a = options.postcssOptions) === null || _a === void 0 ? void 0 : _a.options) !== null && _b !== void 0 ? _b : {
|
|
440
|
+
from: undefined,
|
|
441
|
+
})
|
|
442
|
+
.async();
|
|
442
443
|
}
|
|
443
444
|
function createStyleHandler(options) {
|
|
444
445
|
return (rawSource, opt) => {
|
|
@@ -264,6 +264,9 @@ function jsHandler(rawSource, options) {
|
|
|
264
264
|
traverse(ast, traverseOptions);
|
|
265
265
|
return {
|
|
266
266
|
code: ms.toString(),
|
|
267
|
+
get map() {
|
|
268
|
+
return ms.generateMap();
|
|
269
|
+
},
|
|
267
270
|
};
|
|
268
271
|
}
|
|
269
272
|
function jsHandlerAsync(rawSource, options) {
|
|
@@ -462,14 +465,12 @@ function createCache(options) {
|
|
|
462
465
|
}
|
|
463
466
|
|
|
464
467
|
function styleHandler(rawSource, options) {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
.async()).css;
|
|
472
|
-
});
|
|
468
|
+
var _a, _b;
|
|
469
|
+
return postcss__default["default"](index.getPlugins(options))
|
|
470
|
+
.process(rawSource, (_b = (_a = options.postcssOptions) === null || _a === void 0 ? void 0 : _a.options) !== null && _b !== void 0 ? _b : {
|
|
471
|
+
from: undefined,
|
|
472
|
+
})
|
|
473
|
+
.async();
|
|
473
474
|
}
|
|
474
475
|
function createStyleHandler(options) {
|
|
475
476
|
return (rawSource, opt) => {
|
package/dist/postcss/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import postcss from 'postcss';
|
|
1
2
|
import type { IStyleHandlerOptions } from '../types';
|
|
2
|
-
export declare function styleHandler(rawSource: string, options: IStyleHandlerOptions): Promise<
|
|
3
|
-
export declare function createStyleHandler(options: Partial<IStyleHandlerOptions>): (rawSource: string, opt?: Partial<IStyleHandlerOptions>) => Promise<
|
|
3
|
+
export declare function styleHandler(rawSource: string, options: IStyleHandlerOptions): Promise<postcss.Result<postcss.Document | postcss.Root>>;
|
|
4
|
+
export declare function createStyleHandler(options: Partial<IStyleHandlerOptions>): (rawSource: string, opt?: Partial<IStyleHandlerOptions>) => Promise<postcss.Result<postcss.Document | postcss.Root>>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Rule } from 'postcss';
|
|
1
|
+
import type { Document, Result as PostcssResult, Root, Rule } from 'postcss';
|
|
2
2
|
import type { ClassGenerator, IClassGeneratorOptions } from '@tailwindcss-mangle/shared';
|
|
3
3
|
import type { SourceMap } from 'magic-string';
|
|
4
4
|
import type { GeneratorResult } from '@babel/generator';
|
|
@@ -21,7 +21,7 @@ export type CssPreflightOptions = {
|
|
|
21
21
|
[key: CssPresetProps]: string | number | boolean;
|
|
22
22
|
} | false;
|
|
23
23
|
export type RequiredStyleHandlerOptions = {
|
|
24
|
-
isMainChunk
|
|
24
|
+
isMainChunk?: boolean;
|
|
25
25
|
cssInjectPreflight?: InjectPreflight;
|
|
26
26
|
escapeMap?: Record<string, string>;
|
|
27
27
|
} & Pick<UserDefinedOptions, 'cssPreflightRange' | 'cssChildCombinatorReplaceValue' | 'injectAdditionalCssVarScope' | 'cssSelectorReplacement' | 'rem2rpx'>;
|
|
@@ -141,7 +141,7 @@ export interface ITemplateHandlerOptions extends ICommonReplaceOptions {
|
|
|
141
141
|
export type InternalUserDefinedOptions = Required<Omit<UserDefinedOptions, 'supportCustomLengthUnitsPatch' | 'customReplaceDictionary' | 'cache'> & {
|
|
142
142
|
supportCustomLengthUnitsPatch: ILengthUnitsPatchOptions | boolean;
|
|
143
143
|
templateHandler: (rawSource: string, options?: ITemplateHandlerOptions) => Promise<string>;
|
|
144
|
-
styleHandler: (rawSource: string, options
|
|
144
|
+
styleHandler: (rawSource: string, options?: IStyleHandlerOptions) => Promise<PostcssResult<Root | Document>>;
|
|
145
145
|
jsHandler: JsHandler;
|
|
146
146
|
escapeMap: Record<string, string>;
|
|
147
147
|
patch: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var options = require('./options-
|
|
3
|
+
var options = require('./options-BjD225Hm.js');
|
|
4
4
|
var path = require('node:path');
|
|
5
5
|
var fs = require('node:fs');
|
|
6
6
|
var index = require('./index-CCbEWRGc.js');
|
|
@@ -155,7 +155,7 @@ class UnifiedWebpackPluginV5 {
|
|
|
155
155
|
return false;
|
|
156
156
|
}
|
|
157
157
|
}, () => options.__awaiter(this, void 0, void 0, function* () {
|
|
158
|
-
const css = yield styleHandler(rawSource, {
|
|
158
|
+
const { css } = yield styleHandler(rawSource, {
|
|
159
159
|
isMainChunk: mainCssChunkMatcher(file, this.appType),
|
|
160
160
|
});
|
|
161
161
|
const source = new ConcatSource(css);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, _ as __awaiter } from './options-BT2K7ro6.mjs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
4
|
import { b as pluginName } from './index-szMvMylQ.mjs';
|
|
@@ -148,7 +148,7 @@ class UnifiedWebpackPluginV5 {
|
|
|
148
148
|
return false;
|
|
149
149
|
}
|
|
150
150
|
}, () => __awaiter(this, void 0, void 0, function* () {
|
|
151
|
-
const css = yield styleHandler(rawSource, {
|
|
151
|
+
const { css } = yield styleHandler(rawSource, {
|
|
152
152
|
isMainChunk: mainCssChunkMatcher(file, this.appType),
|
|
153
153
|
});
|
|
154
154
|
const source = new ConcatSource(css);
|
package/dist/vite.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
require('./options-
|
|
5
|
+
var index = require('./index-Ddev8wez.js');
|
|
6
|
+
require('./options-BjD225Hm.js');
|
|
7
7
|
require('magic-string');
|
|
8
8
|
require('@babel/generator');
|
|
9
9
|
require('@babel/traverse');
|
package/dist/vite.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-
|
|
2
|
-
import './options-
|
|
1
|
+
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-ClzClhjc.mjs';
|
|
2
|
+
import './options-BT2K7ro6.mjs';
|
|
3
3
|
import 'magic-string';
|
|
4
4
|
import '@babel/generator';
|
|
5
5
|
import '@babel/traverse';
|
package/dist/webpack.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var v5 = require('./v5-
|
|
6
|
-
require('./options-
|
|
5
|
+
var v5 = require('./v5-_VYyLdJC.js');
|
|
6
|
+
require('./options-BjD225Hm.js');
|
|
7
7
|
require('magic-string');
|
|
8
8
|
require('@babel/generator');
|
|
9
9
|
require('@babel/traverse');
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { U as UnifiedWebpackPluginV5 } from './v5-
|
|
2
|
-
import './options-
|
|
1
|
+
export { U as UnifiedWebpackPluginV5 } from './v5-vdra_05U.mjs';
|
|
2
|
+
import './options-BT2K7ro6.mjs';
|
|
3
3
|
import 'magic-string';
|
|
4
4
|
import '@babel/generator';
|
|
5
5
|
import '@babel/traverse';
|
package/dist/webpack4.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
5
|
+
var options = require('./options-BjD225Hm.js');
|
|
6
6
|
var path = require('node:path');
|
|
7
7
|
var fs = require('node:fs');
|
|
8
8
|
var webpackSources = require('webpack-sources');
|
|
@@ -177,7 +177,7 @@ class UnifiedWebpackPluginV4 {
|
|
|
177
177
|
return false;
|
|
178
178
|
}
|
|
179
179
|
}, () => options.__awaiter(this, void 0, void 0, function* () {
|
|
180
|
-
const css = yield styleHandler(rawSource, {
|
|
180
|
+
const { css } = yield styleHandler(rawSource, {
|
|
181
181
|
isMainChunk: mainCssChunkMatcher(file, this.appType),
|
|
182
182
|
});
|
|
183
183
|
const source = new webpackSources.ConcatSource(css);
|
package/dist/webpack4.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, _ as __awaiter } from './options-BT2K7ro6.mjs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
4
|
import { ConcatSource, RawSource } from 'webpack-sources';
|
|
@@ -168,7 +168,7 @@ class UnifiedWebpackPluginV4 {
|
|
|
168
168
|
return false;
|
|
169
169
|
}
|
|
170
170
|
}, () => __awaiter(this, void 0, void 0, function* () {
|
|
171
|
-
const css = yield styleHandler(rawSource, {
|
|
171
|
+
const { css } = yield styleHandler(rawSource, {
|
|
172
172
|
isMainChunk: mainCssChunkMatcher(file, this.appType),
|
|
173
173
|
});
|
|
174
174
|
const source = new ConcatSource(css);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "SonOfMagic <qq1324318532@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"md5": "2.3.0",
|
|
143
143
|
"postcss": "~8.4.41",
|
|
144
144
|
"postcss-rem-to-responsive-pixel": "~6.0.1",
|
|
145
|
-
"postcss-selector-parser": "~6.1.
|
|
145
|
+
"postcss-selector-parser": "~6.1.2",
|
|
146
146
|
"semver": "~7.6.2",
|
|
147
147
|
"tailwindcss-patch": "~4.0.0",
|
|
148
148
|
"webpack-sources": "3.2.3"
|