weapp-tailwindcss 4.11.0-alpha.4 → 4.11.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-GCZ7ZE7V.js → chunk-4BHL5BDO.js} +31 -31
- package/dist/{chunk-N3RT3VZH.js → chunk-DO6MQ3YF.js} +364 -74
- package/dist/{chunk-JKK5KZCN.js → chunk-KWG7VWW5.js} +3 -3
- package/dist/{chunk-TDHY27WS.mjs → chunk-LYANBRNN.mjs} +1 -1
- package/dist/{chunk-3V52XTPJ.mjs → chunk-OMARW5NC.mjs} +50 -0
- package/dist/{chunk-FI75TLOQ.js → chunk-QK6VNNNL.js} +51 -1
- package/dist/{chunk-NYZTRTBM.mjs → chunk-RQLIVYJZ.mjs} +331 -41
- package/dist/{chunk-ZPGT5C7G.mjs → chunk-TSRWDW6S.mjs} +1 -1
- package/dist/{chunk-JOT24YET.mjs → chunk-VMKFA54Q.mjs} +10 -4
- package/dist/{chunk-VHUV7ZDB.js → chunk-VO5STL3U.js} +6 -6
- package/dist/{chunk-VO2ZPNCW.js → chunk-WPH7LL5V.js} +23 -17
- package/dist/{chunk-6R2OVCLW.mjs → chunk-ZMQZ667Q.mjs} +3 -3
- package/dist/cli.js +2 -1
- package/dist/cli.mjs +2 -1
- package/dist/core.d.mts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +7 -7
- package/dist/core.mjs +2 -2
- 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 +4 -4
- package/dist/gulp.mjs +3 -3
- package/dist/{index-BMwzhITq.d.mts → index-D8E0GGqB.d.mts} +28 -2
- package/dist/{index-BMwzhITq.d.ts → index-D8E0GGqB.d.ts} +28 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/index.mjs +6 -6
- package/dist/presets.d.mts +36 -1
- package/dist/presets.d.ts +36 -1
- package/dist/presets.js +14 -5
- package/dist/presets.mjs +12 -3
- 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 +4 -4
- package/dist/vite.mjs +3 -3
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +5 -5
- package/dist/webpack.mjs +4 -4
- package/dist/webpack4.d.mts +1 -1
- package/dist/webpack4.d.ts +1 -1
- package/dist/webpack4.js +26 -26
- package/dist/webpack4.mjs +3 -3
- package/package.json +2 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunk7LKMJZD2js = require('./chunk-7LKMJZD2.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWPH7LL5Vjs = require('./chunk-WPH7LL5V.js');
|
|
7
7
|
|
|
8
8
|
// src/shared/mpx.ts
|
|
9
9
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
@@ -155,8 +155,8 @@ function applyTailwindcssCssImportRewrite(compiler, options) {
|
|
|
155
155
|
if (!options.enabled) {
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
|
-
compiler.hooks.normalModuleFactory.tap(
|
|
159
|
-
factory.hooks.beforeResolve.tap(
|
|
158
|
+
compiler.hooks.normalModuleFactory.tap(_chunkWPH7LL5Vjs.pluginName, (factory) => {
|
|
159
|
+
factory.hooks.beforeResolve.tap(_chunkWPH7LL5Vjs.pluginName, (data) => {
|
|
160
160
|
rewriteTailwindcssRequestForCss(data, options.pkgDir, options.appType);
|
|
161
161
|
});
|
|
162
162
|
});
|
|
@@ -1156,6 +1156,54 @@ function tryCreateMultiTailwindcssPatcher(groups, options) {
|
|
|
1156
1156
|
return createMultiTailwindcssPatcher(patchers);
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
|
+
// src/uni-app-x/options.ts
|
|
1160
|
+
function resolveComponentLocalStyles(option) {
|
|
1161
|
+
if (option === false) {
|
|
1162
|
+
return {
|
|
1163
|
+
enabled: false,
|
|
1164
|
+
onlyWhenStyleIsolationVersion2: true
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
if (option === true || option === void 0) {
|
|
1168
|
+
return {
|
|
1169
|
+
enabled: false,
|
|
1170
|
+
onlyWhenStyleIsolationVersion2: true
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
const componentLocalStyles = option.componentLocalStyles;
|
|
1174
|
+
if (componentLocalStyles === false) {
|
|
1175
|
+
return {
|
|
1176
|
+
enabled: false,
|
|
1177
|
+
onlyWhenStyleIsolationVersion2: true
|
|
1178
|
+
};
|
|
1179
|
+
}
|
|
1180
|
+
if (componentLocalStyles === true || componentLocalStyles === void 0) {
|
|
1181
|
+
return {
|
|
1182
|
+
enabled: true,
|
|
1183
|
+
onlyWhenStyleIsolationVersion2: true
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
return {
|
|
1187
|
+
enabled: componentLocalStyles.enabled !== false,
|
|
1188
|
+
onlyWhenStyleIsolationVersion2: componentLocalStyles.onlyWhenStyleIsolationVersion2 !== false
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
function resolveUniAppXOptions(option) {
|
|
1192
|
+
if (typeof option === "object" && option) {
|
|
1193
|
+
return {
|
|
1194
|
+
enabled: option.enabled !== false,
|
|
1195
|
+
componentLocalStyles: resolveComponentLocalStyles(option)
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
return {
|
|
1199
|
+
enabled: Boolean(option),
|
|
1200
|
+
componentLocalStyles: resolveComponentLocalStyles(option)
|
|
1201
|
+
};
|
|
1202
|
+
}
|
|
1203
|
+
function isUniAppXEnabled(option) {
|
|
1204
|
+
return resolveUniAppXOptions(option).enabled;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1159
1207
|
// src/context/tailwindcss/basedir.ts
|
|
1160
1208
|
import { createRequire as createRequire2 } from "module";
|
|
1161
1209
|
import path5 from "path";
|
|
@@ -1450,6 +1498,8 @@ export {
|
|
|
1450
1498
|
warnMissingCssEntries,
|
|
1451
1499
|
applyV4CssCalcDefaults,
|
|
1452
1500
|
findTailwindConfig,
|
|
1501
|
+
resolveUniAppXOptions,
|
|
1502
|
+
isUniAppXEnabled,
|
|
1453
1503
|
resolveTailwindcssBasedir,
|
|
1454
1504
|
createTailwindcssPatcherFromContext,
|
|
1455
1505
|
logger6 as logger
|
|
@@ -1159,6 +1159,54 @@ function tryCreateMultiTailwindcssPatcher(groups, options) {
|
|
|
1159
1159
|
return createMultiTailwindcssPatcher(patchers);
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
|
+
// src/uni-app-x/options.ts
|
|
1163
|
+
function resolveComponentLocalStyles(option) {
|
|
1164
|
+
if (option === false) {
|
|
1165
|
+
return {
|
|
1166
|
+
enabled: false,
|
|
1167
|
+
onlyWhenStyleIsolationVersion2: true
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
if (option === true || option === void 0) {
|
|
1171
|
+
return {
|
|
1172
|
+
enabled: false,
|
|
1173
|
+
onlyWhenStyleIsolationVersion2: true
|
|
1174
|
+
};
|
|
1175
|
+
}
|
|
1176
|
+
const componentLocalStyles = option.componentLocalStyles;
|
|
1177
|
+
if (componentLocalStyles === false) {
|
|
1178
|
+
return {
|
|
1179
|
+
enabled: false,
|
|
1180
|
+
onlyWhenStyleIsolationVersion2: true
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
if (componentLocalStyles === true || componentLocalStyles === void 0) {
|
|
1184
|
+
return {
|
|
1185
|
+
enabled: true,
|
|
1186
|
+
onlyWhenStyleIsolationVersion2: true
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
return {
|
|
1190
|
+
enabled: componentLocalStyles.enabled !== false,
|
|
1191
|
+
onlyWhenStyleIsolationVersion2: componentLocalStyles.onlyWhenStyleIsolationVersion2 !== false
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
function resolveUniAppXOptions(option) {
|
|
1195
|
+
if (typeof option === "object" && option) {
|
|
1196
|
+
return {
|
|
1197
|
+
enabled: option.enabled !== false,
|
|
1198
|
+
componentLocalStyles: resolveComponentLocalStyles(option)
|
|
1199
|
+
};
|
|
1200
|
+
}
|
|
1201
|
+
return {
|
|
1202
|
+
enabled: Boolean(option),
|
|
1203
|
+
componentLocalStyles: resolveComponentLocalStyles(option)
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
function isUniAppXEnabled(option) {
|
|
1207
|
+
return resolveUniAppXOptions(option).enabled;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1162
1210
|
// src/context/tailwindcss/basedir.ts
|
|
1163
1211
|
|
|
1164
1212
|
|
|
@@ -1456,4 +1504,6 @@ function createTailwindcssPatcherFromContext(ctx) {
|
|
|
1456
1504
|
|
|
1457
1505
|
|
|
1458
1506
|
|
|
1459
|
-
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
exports.resolveTailwindcssOptions = resolveTailwindcssOptions; exports.invalidateRuntimeClassSet = invalidateRuntimeClassSet; exports.getRuntimeClassSetCacheEntry = getRuntimeClassSetCacheEntry; exports.getRuntimeClassSetSignature = getRuntimeClassSetSignature; exports.findNearestPackageRoot = findNearestPackageRoot; exports.warnMissingCssEntries = warnMissingCssEntries; exports.applyV4CssCalcDefaults = applyV4CssCalcDefaults; exports.findTailwindConfig = findTailwindConfig; exports.resolveUniAppXOptions = resolveUniAppXOptions; exports.isUniAppXEnabled = isUniAppXEnabled; exports.resolveTailwindcssBasedir = resolveTailwindcssBasedir; exports.createTailwindcssPatcherFromContext = createTailwindcssPatcherFromContext; exports.logger = _logger.logger;
|