weapp-tailwindcss 4.2.6-alpha.2 → 4.2.7
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-GDMKZK55.js → chunk-3LPTUN7V.js} +3 -1
- package/dist/{chunk-ABB7LXDE.mjs → chunk-K7GEG3DZ.mjs} +3 -1
- package/dist/{chunk-NBTVVOR5.js → chunk-KGHX7ZQZ.js} +7 -19
- package/dist/{chunk-UOYKKILL.mjs → chunk-KMY5AD4Z.mjs} +1 -1
- package/dist/{chunk-ZEVV4WMC.mjs → chunk-KQMAGU6F.mjs} +4 -10
- package/dist/{chunk-ETUFVDS5.js → chunk-NOYNSDAR.js} +2 -2
- package/dist/{chunk-BIEOQSOC.mjs → chunk-RWYOX2HB.mjs} +5 -17
- package/dist/{chunk-YUMMB2DF.js → chunk-S2RVVSDE.js} +5 -11
- package/dist/{chunk-WIR5Y7VY.js → chunk-UO4UABZN.js} +2 -2
- package/dist/{chunk-SI3HIQ7D.mjs → chunk-XQOJUEYG.mjs} +1 -1
- package/dist/cli.js +3 -3
- package/dist/cli.mjs +2 -2
- package/dist/core.js +3 -3
- package/dist/core.mjs +2 -2
- package/dist/defaults.js +2 -2
- package/dist/defaults.mjs +1 -1
- package/dist/gulp.js +4 -4
- package/dist/gulp.mjs +3 -3
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/vite.js +4 -4
- package/dist/vite.mjs +3 -3
- package/dist/webpack.js +4 -4
- package/dist/webpack.mjs +3 -3
- package/dist/webpack4.js +5 -11
- package/dist/webpack4.mjs +5 -11
- package/package.json +7 -7
|
@@ -107,7 +107,9 @@ function getDefaultOptions() {
|
|
|
107
107
|
cache: true
|
|
108
108
|
},
|
|
109
109
|
postcssOptions: {},
|
|
110
|
-
|
|
110
|
+
// 开发版本微信小程序工具和小米13手机上 @property 是有效果的
|
|
111
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/@property
|
|
112
|
+
cssRemoveProperty: false,
|
|
111
113
|
cssRemoveHoverPseudoClass: true,
|
|
112
114
|
ignoreCallExpressionIdentifiers: _localpkg.isPackageExists.call(void 0, "@weapp-tailwindcss/merge") ? ["twMerge", "twJoin", "cva", "tv"] : [],
|
|
113
115
|
ignoreTaggedTemplateExpressionIdentifiers: ["weappTwIgnore"],
|
|
@@ -107,7 +107,9 @@ function getDefaultOptions() {
|
|
|
107
107
|
cache: true
|
|
108
108
|
},
|
|
109
109
|
postcssOptions: {},
|
|
110
|
-
|
|
110
|
+
// 开发版本微信小程序工具和小米13手机上 @property 是有效果的
|
|
111
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/@property
|
|
112
|
+
cssRemoveProperty: false,
|
|
111
113
|
cssRemoveHoverPseudoClass: true,
|
|
112
114
|
ignoreCallExpressionIdentifiers: isPackageExists("@weapp-tailwindcss/merge") ? ["twMerge", "twJoin", "cva", "tv"] : [],
|
|
113
115
|
ignoreTaggedTemplateExpressionIdentifiers: ["weappTwIgnore"],
|
|
@@ -7,7 +7,7 @@ var _chunkOGROHM4Ljs = require('./chunk-OGROHM4L.js');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkNOYNSDARjs = require('./chunk-NOYNSDAR.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkPLMJW644js = require('./chunk-PLMJW644.js');
|
|
@@ -51,7 +51,7 @@ function transformUVue(code, id, jsHandler, runtimeSet) {
|
|
|
51
51
|
}
|
|
52
52
|
if (prop.type === _compilerdom.NodeTypes.DIRECTIVE && prop.name === "bind" && _optionalChain([prop, 'access', _ => _.arg, 'optionalAccess', _2 => _2.type]) === _compilerdom.NodeTypes.SIMPLE_EXPRESSION && prop.arg.content === "class") {
|
|
53
53
|
if (_optionalChain([prop, 'access', _3 => _3.exp, 'optionalAccess', _4 => _4.type]) === _compilerdom.NodeTypes.SIMPLE_EXPRESSION) {
|
|
54
|
-
const code2 =
|
|
54
|
+
const code2 = _chunkNOYNSDARjs.generateCode.call(void 0, prop.exp.content, {
|
|
55
55
|
jsHandler,
|
|
56
56
|
runtimeSet
|
|
57
57
|
});
|
|
@@ -148,7 +148,7 @@ async function formatPostcssSourceMap(rawMap, file) {
|
|
|
148
148
|
// src/bundlers/vite/index.ts
|
|
149
149
|
var debug = _chunkLSSLYD6Bjs.createDebug.call(void 0, );
|
|
150
150
|
function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
|
151
|
-
const opts =
|
|
151
|
+
const opts = _chunkNOYNSDARjs.getCompilerContext.call(void 0, options);
|
|
152
152
|
const {
|
|
153
153
|
disabled,
|
|
154
154
|
onEnd,
|
|
@@ -252,18 +252,12 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
254
|
async () => {
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
const { code, map } = await jsHandler(rawSource, runtimeSet, {
|
|
258
|
-
generateMap: hasSourceMap
|
|
255
|
+
const { code } = await jsHandler(rawSource, runtimeSet, {
|
|
256
|
+
// generateMap: hasSourceMap,
|
|
259
257
|
});
|
|
260
258
|
originalSource.code = code;
|
|
261
259
|
onUpdate(file, rawSource, code);
|
|
262
260
|
debug("js handle: %s", file);
|
|
263
|
-
if (hasSourceMap && map) {
|
|
264
|
-
;
|
|
265
|
-
bundle[mapFilename].source = map.toString();
|
|
266
|
-
}
|
|
267
261
|
return {
|
|
268
262
|
key: file,
|
|
269
263
|
source: code
|
|
@@ -291,10 +285,8 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
|
|
291
285
|
}
|
|
292
286
|
},
|
|
293
287
|
async () => {
|
|
294
|
-
const
|
|
295
|
-
|
|
296
|
-
const { code, map } = await jsHandler(rawSource, runtimeSet, {
|
|
297
|
-
generateMap: hasSourceMap,
|
|
288
|
+
const { code } = await jsHandler(rawSource, runtimeSet, {
|
|
289
|
+
// generateMap: hasSourceMap,
|
|
298
290
|
uniAppX,
|
|
299
291
|
babelParserOptions: {
|
|
300
292
|
plugins: [
|
|
@@ -306,10 +298,6 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
|
|
306
298
|
originalSource.source = code;
|
|
307
299
|
onUpdate(file, rawSource, code);
|
|
308
300
|
debug("js handle: %s", file);
|
|
309
|
-
if (hasSourceMap && map) {
|
|
310
|
-
;
|
|
311
|
-
bundle[mapFilename].source = map.toString();
|
|
312
|
-
}
|
|
313
301
|
return {
|
|
314
302
|
key: file,
|
|
315
303
|
source: code
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-CMUA5KCO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getCompilerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XQOJUEYG.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getGroupedEntries,
|
|
12
12
|
removeExt
|
|
@@ -45,7 +45,7 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
45
45
|
}
|
|
46
46
|
twPatcher.patch();
|
|
47
47
|
const { Compilation, sources, NormalModule } = compiler.webpack;
|
|
48
|
-
const { ConcatSource
|
|
48
|
+
const { ConcatSource } = sources;
|
|
49
49
|
function getClassSetInLoader() {
|
|
50
50
|
if (twPatcher.majorVersion !== 4) {
|
|
51
51
|
return twPatcher.getClassSetV3();
|
|
@@ -144,19 +144,13 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
144
144
|
},
|
|
145
145
|
async () => {
|
|
146
146
|
const rawSource = originalSource.source().toString();
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
const { code, map } = await jsHandler(rawSource, runtimeSet, {
|
|
150
|
-
generateMap: hasMap
|
|
147
|
+
const { code } = await jsHandler(rawSource, runtimeSet, {
|
|
148
|
+
// generateMap: hasMap,
|
|
151
149
|
});
|
|
152
150
|
const source = new ConcatSource(code);
|
|
153
151
|
compilation.updateAsset(file, source);
|
|
154
152
|
onUpdate(file, rawSource, code);
|
|
155
153
|
debug("js handle: %s", file);
|
|
156
|
-
if (hasMap && map) {
|
|
157
|
-
const source2 = new RawSource(map.toString());
|
|
158
|
-
compilation.updateAsset(mapFilename, source2);
|
|
159
|
-
}
|
|
160
154
|
return {
|
|
161
155
|
key: cacheKey,
|
|
162
156
|
source
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkPLMJW644js = require('./chunk-PLMJW644.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3LPTUN7Vjs = require('./chunk-3LPTUN7V.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -998,7 +998,7 @@ function createTemplateHandler(options = {}) {
|
|
|
998
998
|
function getCompilerContext(opts) {
|
|
999
999
|
const ctx = _chunkO335YLYHjs.defuOverrideArray.call(void 0,
|
|
1000
1000
|
opts,
|
|
1001
|
-
|
|
1001
|
+
_chunk3LPTUN7Vjs.getDefaultOptions.call(void 0, ),
|
|
1002
1002
|
{}
|
|
1003
1003
|
);
|
|
1004
1004
|
ctx.escapeMap = ctx.customReplaceDictionary;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
generateCode,
|
|
9
9
|
getCompilerContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XQOJUEYG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
replaceWxml
|
|
13
13
|
} from "./chunk-Q67IXIAH.mjs";
|
|
@@ -252,18 +252,12 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
254
|
async () => {
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
const { code, map } = await jsHandler(rawSource, runtimeSet, {
|
|
258
|
-
generateMap: hasSourceMap
|
|
255
|
+
const { code } = await jsHandler(rawSource, runtimeSet, {
|
|
256
|
+
// generateMap: hasSourceMap,
|
|
259
257
|
});
|
|
260
258
|
originalSource.code = code;
|
|
261
259
|
onUpdate(file, rawSource, code);
|
|
262
260
|
debug("js handle: %s", file);
|
|
263
|
-
if (hasSourceMap && map) {
|
|
264
|
-
;
|
|
265
|
-
bundle[mapFilename].source = map.toString();
|
|
266
|
-
}
|
|
267
261
|
return {
|
|
268
262
|
key: file,
|
|
269
263
|
source: code
|
|
@@ -291,10 +285,8 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
|
|
291
285
|
}
|
|
292
286
|
},
|
|
293
287
|
async () => {
|
|
294
|
-
const
|
|
295
|
-
|
|
296
|
-
const { code, map } = await jsHandler(rawSource, runtimeSet, {
|
|
297
|
-
generateMap: hasSourceMap,
|
|
288
|
+
const { code } = await jsHandler(rawSource, runtimeSet, {
|
|
289
|
+
// generateMap: hasSourceMap,
|
|
298
290
|
uniAppX,
|
|
299
291
|
babelParserOptions: {
|
|
300
292
|
plugins: [
|
|
@@ -306,10 +298,6 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
|
|
306
298
|
originalSource.source = code;
|
|
307
299
|
onUpdate(file, rawSource, code);
|
|
308
300
|
debug("js handle: %s", file);
|
|
309
|
-
if (hasSourceMap && map) {
|
|
310
|
-
;
|
|
311
|
-
bundle[mapFilename].source = map.toString();
|
|
312
|
-
}
|
|
313
301
|
return {
|
|
314
302
|
key: file,
|
|
315
303
|
source: code
|
|
@@ -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 _chunkNOYNSDARjs = require('./chunk-NOYNSDAR.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
|
18
18
|
var debug = _chunkLSSLYD6Bjs.createDebug.call(void 0, );
|
|
19
19
|
var UnifiedWebpackPluginV5 = class {
|
|
20
20
|
constructor(options = {}) {
|
|
21
|
-
this.options =
|
|
21
|
+
this.options = _chunkNOYNSDARjs.getCompilerContext.call(void 0, options);
|
|
22
22
|
this.appType = this.options.appType;
|
|
23
23
|
}
|
|
24
24
|
apply(compiler) {
|
|
@@ -42,7 +42,7 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
42
42
|
}
|
|
43
43
|
twPatcher.patch();
|
|
44
44
|
const { Compilation, sources, NormalModule } = compiler.webpack;
|
|
45
|
-
const { ConcatSource
|
|
45
|
+
const { ConcatSource } = sources;
|
|
46
46
|
function getClassSetInLoader() {
|
|
47
47
|
if (twPatcher.majorVersion !== 4) {
|
|
48
48
|
return twPatcher.getClassSetV3();
|
|
@@ -141,19 +141,13 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
141
141
|
},
|
|
142
142
|
async () => {
|
|
143
143
|
const rawSource = originalSource.source().toString();
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
const { code, map } = await jsHandler(rawSource, runtimeSet, {
|
|
147
|
-
generateMap: hasMap
|
|
144
|
+
const { code } = await jsHandler(rawSource, runtimeSet, {
|
|
145
|
+
// generateMap: hasMap,
|
|
148
146
|
});
|
|
149
147
|
const source = new ConcatSource(code);
|
|
150
148
|
compilation.updateAsset(file, source);
|
|
151
149
|
onUpdate(file, rawSource, code);
|
|
152
150
|
debug("js handle: %s", file);
|
|
153
|
-
if (hasMap && map) {
|
|
154
|
-
const source2 = new RawSource(map.toString());
|
|
155
|
-
compilation.updateAsset(mapFilename, source2);
|
|
156
|
-
}
|
|
157
151
|
return {
|
|
158
152
|
key: cacheKey,
|
|
159
153
|
source
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkLSSLYD6Bjs = require('./chunk-LSSLYD6B.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNOYNSDARjs = require('./chunk-NOYNSDAR.js');
|
|
7
7
|
|
|
8
8
|
// src/bundlers/gulp/index.ts
|
|
9
9
|
var _buffer = require('buffer');
|
|
@@ -11,7 +11,7 @@ var _stream = require('stream'); var _stream2 = _interopRequireDefault(_stream);
|
|
|
11
11
|
var debug = _chunkLSSLYD6Bjs.createDebug.call(void 0, );
|
|
12
12
|
var Transform = _stream2.default.Transform;
|
|
13
13
|
function createPlugins(options = {}) {
|
|
14
|
-
const opts =
|
|
14
|
+
const opts = _chunkNOYNSDARjs.getCompilerContext.call(void 0, options);
|
|
15
15
|
const { templateHandler, styleHandler, jsHandler, setMangleRuntimeSet, cache, twPatcher } = opts;
|
|
16
16
|
let runtimeSet = /* @__PURE__ */ new Set();
|
|
17
17
|
twPatcher.patch();
|
package/dist/cli.js
CHANGED
|
@@ -6,9 +6,9 @@ var _chunkOXASK55Qjs = require('./chunk-OXASK55Q.js');
|
|
|
6
6
|
var _chunkOGROHM4Ljs = require('./chunk-OGROHM4L.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkNOYNSDARjs = require('./chunk-NOYNSDAR.js');
|
|
10
10
|
require('./chunk-PLMJW644.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-3LPTUN7V.js');
|
|
12
12
|
require('./chunk-O335YLYH.js');
|
|
13
13
|
require('./chunk-R43CVBSH.js');
|
|
14
14
|
|
|
@@ -25,7 +25,7 @@ if (_semver2.default.lt(_process2.default.versions.node, _chunkOGROHM4Ljs.WEAPP_
|
|
|
25
25
|
}
|
|
26
26
|
var command = args[0];
|
|
27
27
|
if (command === "patch") {
|
|
28
|
-
const ctx =
|
|
28
|
+
const ctx = _chunkNOYNSDARjs.getCompilerContext.call(void 0, );
|
|
29
29
|
ctx.twPatcher.patch();
|
|
30
30
|
} else if (command === "init") {
|
|
31
31
|
_init.init.call(void 0, );
|
package/dist/cli.mjs
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
} from "./chunk-CMUA5KCO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getCompilerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XQOJUEYG.mjs";
|
|
10
10
|
import "./chunk-Q67IXIAH.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-K7GEG3DZ.mjs";
|
|
12
12
|
import "./chunk-JXBLHLFR.mjs";
|
|
13
13
|
import "./chunk-N445HFX3.mjs";
|
|
14
14
|
|
package/dist/core.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNOYNSDARjs = require('./chunk-NOYNSDAR.js');
|
|
4
4
|
require('./chunk-PLMJW644.js');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-3LPTUN7V.js');
|
|
6
6
|
require('./chunk-O335YLYH.js');
|
|
7
7
|
require('./chunk-R43CVBSH.js');
|
|
8
8
|
|
|
9
9
|
// src/core.ts
|
|
10
10
|
var _shared = require('@weapp-tailwindcss/shared');
|
|
11
11
|
function createContext(options = {}) {
|
|
12
|
-
const opts =
|
|
12
|
+
const opts = _chunkNOYNSDARjs.getCompilerContext.call(void 0, options);
|
|
13
13
|
const { templateHandler, styleHandler, jsHandler, twPatcher } = opts;
|
|
14
14
|
let runtimeSet = /* @__PURE__ */ new Set();
|
|
15
15
|
twPatcher.patch();
|
package/dist/core.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCompilerContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XQOJUEYG.mjs";
|
|
4
4
|
import "./chunk-Q67IXIAH.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-K7GEG3DZ.mjs";
|
|
6
6
|
import "./chunk-JXBLHLFR.mjs";
|
|
7
7
|
import "./chunk-N445HFX3.mjs";
|
|
8
8
|
|
package/dist/defaults.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3LPTUN7Vjs = require('./chunk-3LPTUN7V.js');
|
|
4
4
|
require('./chunk-O335YLYH.js');
|
|
5
5
|
require('./chunk-R43CVBSH.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.getDefaultOptions =
|
|
8
|
+
exports.getDefaultOptions = _chunk3LPTUN7Vjs.getDefaultOptions;
|
package/dist/defaults.mjs
CHANGED
package/dist/gulp.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUO4UABZNjs = require('./chunk-UO4UABZN.js');
|
|
4
4
|
require('./chunk-LSSLYD6B.js');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-NOYNSDAR.js');
|
|
6
6
|
require('./chunk-PLMJW644.js');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-3LPTUN7V.js');
|
|
8
8
|
require('./chunk-O335YLYH.js');
|
|
9
9
|
require('./chunk-R43CVBSH.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.createPlugins =
|
|
12
|
+
exports.createPlugins = _chunkUO4UABZNjs.createPlugins;
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPlugins
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KMY5AD4Z.mjs";
|
|
4
4
|
import "./chunk-3AUX4FGE.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-XQOJUEYG.mjs";
|
|
6
6
|
import "./chunk-Q67IXIAH.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-K7GEG3DZ.mjs";
|
|
8
8
|
import "./chunk-JXBLHLFR.mjs";
|
|
9
9
|
import "./chunk-N445HFX3.mjs";
|
|
10
10
|
export {
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-O2IOQ3BD.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkS2RVVSDEjs = require('./chunk-S2RVVSDE.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUO4UABZNjs = require('./chunk-UO4UABZN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKGHX7ZQZjs = require('./chunk-KGHX7ZQZ.js');
|
|
11
11
|
require('./chunk-LSSLYD6B.js');
|
|
12
12
|
require('./chunk-OGROHM4L.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-NOYNSDAR.js');
|
|
14
14
|
require('./chunk-PLMJW644.js');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-3LPTUN7V.js');
|
|
16
16
|
require('./chunk-O335YLYH.js');
|
|
17
17
|
require('./chunk-R43CVBSH.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
22
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunkKGHX7ZQZjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkS2RVVSDEjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkUO4UABZNjs.createPlugins;
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "./chunk-YAN7TO2B.mjs";
|
|
2
2
|
import {
|
|
3
3
|
UnifiedWebpackPluginV5
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KQMAGU6F.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KMY5AD4Z.mjs";
|
|
8
8
|
import {
|
|
9
9
|
UnifiedViteWeappTailwindcssPlugin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RWYOX2HB.mjs";
|
|
11
11
|
import "./chunk-3AUX4FGE.mjs";
|
|
12
12
|
import "./chunk-CMUA5KCO.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-XQOJUEYG.mjs";
|
|
14
14
|
import "./chunk-Q67IXIAH.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-K7GEG3DZ.mjs";
|
|
16
16
|
import "./chunk-JXBLHLFR.mjs";
|
|
17
17
|
import "./chunk-N445HFX3.mjs";
|
|
18
18
|
export {
|
package/dist/types.d.mts
CHANGED
|
@@ -426,7 +426,7 @@ interface UserDefinedOptions {
|
|
|
426
426
|
* @version `^4.1.2`
|
|
427
427
|
* @group 3.一般配置
|
|
428
428
|
* @default `true`
|
|
429
|
-
* @description 是否删除 `@property` 选择器节点,默认为 `
|
|
429
|
+
* @description 是否删除 `@property` 选择器节点,默认为 `false`, 原因在于,现在部分小程序的 `@property` 是生效的,即使不生效生成后也不会有什么影响。
|
|
430
430
|
*/
|
|
431
431
|
cssRemoveProperty?: boolean;
|
|
432
432
|
/**
|
package/dist/types.d.ts
CHANGED
|
@@ -426,7 +426,7 @@ interface UserDefinedOptions {
|
|
|
426
426
|
* @version `^4.1.2`
|
|
427
427
|
* @group 3.一般配置
|
|
428
428
|
* @default `true`
|
|
429
|
-
* @description 是否删除 `@property` 选择器节点,默认为 `
|
|
429
|
+
* @description 是否删除 `@property` 选择器节点,默认为 `false`, 原因在于,现在部分小程序的 `@property` 是生效的,即使不生效生成后也不会有什么影响。
|
|
430
430
|
*/
|
|
431
431
|
cssRemoveProperty?: boolean;
|
|
432
432
|
/**
|
package/dist/vite.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKGHX7ZQZjs = require('./chunk-KGHX7ZQZ.js');
|
|
4
4
|
require('./chunk-LSSLYD6B.js');
|
|
5
5
|
require('./chunk-OGROHM4L.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-NOYNSDAR.js');
|
|
7
7
|
require('./chunk-PLMJW644.js');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-3LPTUN7V.js');
|
|
9
9
|
require('./chunk-O335YLYH.js');
|
|
10
10
|
require('./chunk-R43CVBSH.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
13
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunkKGHX7ZQZjs.UnifiedViteWeappTailwindcssPlugin;
|
package/dist/vite.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedViteWeappTailwindcssPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RWYOX2HB.mjs";
|
|
4
4
|
import "./chunk-3AUX4FGE.mjs";
|
|
5
5
|
import "./chunk-CMUA5KCO.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-XQOJUEYG.mjs";
|
|
7
7
|
import "./chunk-Q67IXIAH.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-K7GEG3DZ.mjs";
|
|
9
9
|
import "./chunk-JXBLHLFR.mjs";
|
|
10
10
|
import "./chunk-N445HFX3.mjs";
|
|
11
11
|
export {
|
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 _chunkS2RVVSDEjs = require('./chunk-S2RVVSDE.js');
|
|
4
4
|
require('./chunk-LSSLYD6B.js');
|
|
5
5
|
require('./chunk-OGROHM4L.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-NOYNSDAR.js');
|
|
7
7
|
require('./chunk-PLMJW644.js');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-3LPTUN7V.js');
|
|
9
9
|
require('./chunk-O335YLYH.js');
|
|
10
10
|
require('./chunk-R43CVBSH.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.UnifiedWebpackPluginV5 =
|
|
13
|
+
exports.UnifiedWebpackPluginV5 = _chunkS2RVVSDEjs.UnifiedWebpackPluginV5;
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedWebpackPluginV5
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KQMAGU6F.mjs";
|
|
4
4
|
import "./chunk-3AUX4FGE.mjs";
|
|
5
5
|
import "./chunk-CMUA5KCO.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-XQOJUEYG.mjs";
|
|
7
7
|
import "./chunk-Q67IXIAH.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-K7GEG3DZ.mjs";
|
|
9
9
|
import "./chunk-JXBLHLFR.mjs";
|
|
10
10
|
import "./chunk-N445HFX3.mjs";
|
|
11
11
|
export {
|
package/dist/webpack4.js
CHANGED
|
@@ -6,9 +6,9 @@ var _chunkLSSLYD6Bjs = require('./chunk-LSSLYD6B.js');
|
|
|
6
6
|
var _chunkOGROHM4Ljs = require('./chunk-OGROHM4L.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkNOYNSDARjs = require('./chunk-NOYNSDAR.js');
|
|
10
10
|
require('./chunk-PLMJW644.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-3LPTUN7V.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -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 = _chunkNOYNSDARjs.getCompilerContext.call(void 0, options);
|
|
26
26
|
this.appType = this.options.appType;
|
|
27
27
|
}
|
|
28
28
|
apply(compiler) {
|
|
@@ -142,19 +142,13 @@ var UnifiedWebpackPluginV4 = class {
|
|
|
142
142
|
// @ts-ignore
|
|
143
143
|
async () => {
|
|
144
144
|
const rawSource = originalSource.source().toString();
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
const { code, map } = await jsHandler(rawSource, runtimeSet, {
|
|
148
|
-
generateMap: hasMap
|
|
145
|
+
const { code } = await jsHandler(rawSource, runtimeSet, {
|
|
146
|
+
// generateMap: hasMap,
|
|
149
147
|
});
|
|
150
148
|
const source = new (0, _webpacksources.ConcatSource)(code);
|
|
151
149
|
compilation.updateAsset(file, source);
|
|
152
150
|
onUpdate(file, rawSource, code);
|
|
153
151
|
debug("js handle: %s", file);
|
|
154
|
-
if (hasMap && map) {
|
|
155
|
-
const source2 = new (0, _webpacksources.RawSource)(map.toString());
|
|
156
|
-
compilation.updateAsset(mapFilename, source2);
|
|
157
|
-
}
|
|
158
152
|
return {
|
|
159
153
|
key: cacheKey,
|
|
160
154
|
source
|
package/dist/webpack4.mjs
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
} from "./chunk-CMUA5KCO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getCompilerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XQOJUEYG.mjs";
|
|
10
10
|
import "./chunk-Q67IXIAH.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-K7GEG3DZ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getGroupedEntries,
|
|
14
14
|
removeExt
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
// src/bundlers/webpack/BaseUnifiedPlugin/v4.ts
|
|
21
21
|
import fs from "fs";
|
|
22
22
|
import path from "path";
|
|
23
|
-
import { ConcatSource
|
|
23
|
+
import { ConcatSource } from "webpack-sources";
|
|
24
24
|
var debug = createDebug();
|
|
25
25
|
var UnifiedWebpackPluginV4 = class {
|
|
26
26
|
constructor(options = {}) {
|
|
@@ -144,19 +144,13 @@ var UnifiedWebpackPluginV4 = class {
|
|
|
144
144
|
// @ts-ignore
|
|
145
145
|
async () => {
|
|
146
146
|
const rawSource = originalSource.source().toString();
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
const { code, map } = await jsHandler(rawSource, runtimeSet, {
|
|
150
|
-
generateMap: hasMap
|
|
147
|
+
const { code } = await jsHandler(rawSource, runtimeSet, {
|
|
148
|
+
// generateMap: hasMap,
|
|
151
149
|
});
|
|
152
150
|
const source = new ConcatSource(code);
|
|
153
151
|
compilation.updateAsset(file, source);
|
|
154
152
|
onUpdate(file, rawSource, code);
|
|
155
153
|
debug("js handle: %s", file);
|
|
156
|
-
if (hasMap && map) {
|
|
157
|
-
const source2 = new RawSource(map.toString());
|
|
158
|
-
compilation.updateAsset(mapFilename, source2);
|
|
159
|
-
}
|
|
160
154
|
return {
|
|
161
155
|
key: cacheKey,
|
|
162
156
|
source
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.7",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"@babel/parser": "~7.28.3",
|
|
163
163
|
"@babel/traverse": "~7.28.3",
|
|
164
164
|
"@babel/types": "~7.28.2",
|
|
165
|
-
"@vue/compiler-dom": "^3.5.
|
|
165
|
+
"@vue/compiler-dom": "^3.5.21",
|
|
166
166
|
"@weapp-core/escape": "~4.0.1",
|
|
167
167
|
"@weapp-core/regex": "~1.0.1",
|
|
168
168
|
"debug": "~4.4.1",
|
|
@@ -173,13 +173,13 @@
|
|
|
173
173
|
"magic-string": "0.30.18",
|
|
174
174
|
"semver": "~7.7.2",
|
|
175
175
|
"tailwindcss-patch": "~7.1.4",
|
|
176
|
-
"vue": "^3.5.
|
|
176
|
+
"vue": "^3.5.21",
|
|
177
177
|
"webpack-sources": "3.3.3",
|
|
178
|
-
"@weapp-tailwindcss/init": "1.0.5
|
|
179
|
-
"@weapp-tailwindcss/logger": "1.0.2",
|
|
178
|
+
"@weapp-tailwindcss/init": "1.0.5",
|
|
180
179
|
"@weapp-tailwindcss/mangle": "1.0.5",
|
|
181
|
-
"@weapp-tailwindcss/
|
|
182
|
-
"@weapp-tailwindcss/shared": "1.0.3"
|
|
180
|
+
"@weapp-tailwindcss/logger": "1.0.2",
|
|
181
|
+
"@weapp-tailwindcss/shared": "1.0.3",
|
|
182
|
+
"@weapp-tailwindcss/postcss": "1.1.0"
|
|
183
183
|
},
|
|
184
184
|
"scripts": {
|
|
185
185
|
"dev": "tsup --watch --sourcemap",
|