weapp-tailwindcss 4.9.0-alpha.0 → 4.9.1

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.
Files changed (40) hide show
  1. package/dist/{chunk-55DZTCIR.js → chunk-65CKEW6P.js} +24 -24
  2. package/dist/{chunk-I7OZD2MH.mjs → chunk-7JV2EGN7.mjs} +4 -4
  3. package/dist/{chunk-PT4IJT3Q.js → chunk-APJY6PQW.js} +2 -2
  4. package/dist/{chunk-GFC7MQHN.mjs → chunk-BC6TZREM.mjs} +2 -2
  5. package/dist/{chunk-KDURGAC7.js → chunk-BIFOYWIB.js} +80 -57
  6. package/dist/{chunk-OQ2K6ETP.js → chunk-CYKRAS6K.js} +14 -14
  7. package/dist/chunk-DYLQ6UOI.js +71 -0
  8. package/dist/{chunk-LUFUZYVB.js → chunk-F4HOQ6DE.js} +7 -7
  9. package/dist/{chunk-6R4BK6D6.js → chunk-FYYBY3VK.js} +5 -5
  10. package/dist/{chunk-SZOXLSNK.mjs → chunk-HEBIKTBC.mjs} +1 -1
  11. package/dist/{chunk-TFOTUR4L.mjs → chunk-HWF5U4CI.mjs} +1 -1
  12. package/dist/{chunk-ZQLZCQL3.mjs → chunk-J4FEPPRP.mjs} +60 -37
  13. package/dist/{chunk-2WMBYV66.mjs → chunk-O35YNDUX.mjs} +1 -1
  14. package/dist/{chunk-RR5HCKVQ.mjs → chunk-OOHJLO5M.mjs} +26 -0
  15. package/dist/{chunk-TRZWVCFI.mjs → chunk-VNGPHRAS.mjs} +2 -2
  16. package/dist/{chunk-TDU6NN6W.mjs → chunk-W33YZK2C.mjs} +4 -4
  17. package/dist/{chunk-BWNTLOVR.js → chunk-WOJCMQDF.js} +5 -5
  18. package/dist/{chunk-MJW6ZJID.js → chunk-YDM2M3NT.js} +3 -3
  19. package/dist/cli.js +40 -40
  20. package/dist/cli.mjs +4 -4
  21. package/dist/core.js +11 -11
  22. package/dist/core.mjs +5 -5
  23. package/dist/css-macro.js +2 -2
  24. package/dist/css-macro.mjs +1 -1
  25. package/dist/defaults.js +3 -3
  26. package/dist/defaults.mjs +2 -2
  27. package/dist/gulp.js +7 -7
  28. package/dist/gulp.mjs +6 -6
  29. package/dist/index.js +10 -10
  30. package/dist/index.mjs +9 -9
  31. package/dist/presets.js +12 -8
  32. package/dist/presets.mjs +8 -4
  33. package/dist/vite.js +7 -7
  34. package/dist/vite.mjs +6 -6
  35. package/dist/webpack.js +8 -8
  36. package/dist/webpack.mjs +7 -7
  37. package/dist/webpack4.js +27 -27
  38. package/dist/webpack4.mjs +6 -6
  39. package/package.json +1 -1
  40. package/dist/chunk-FMBPNII7.js +0 -45
@@ -0,0 +1,71 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }// src/utils/index.ts
2
+ var _shared = require('@weapp-tailwindcss/shared');
3
+
4
+ // src/utils/hbuilderx.ts
5
+ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
6
+ var _process = require('process'); var _process2 = _interopRequireDefault(_process);
7
+
8
+ // src/utils/uni-platform.ts
9
+
10
+ function normalizePlatform(value) {
11
+ return _optionalChain([value, 'optionalAccess', _ => _.trim, 'call', _2 => _2(), 'access', _3 => _3.toLowerCase, 'call', _4 => _4()]) || void 0;
12
+ }
13
+ function resolveUniUtsPlatform(value = _process2.default.env.UNI_UTS_PLATFORM) {
14
+ const normalized = normalizePlatform(value);
15
+ const isAppAndroid = normalized === "app-android";
16
+ const isAppIos = normalized === "app-ios";
17
+ const isAppHarmony = normalized === "app-harmony";
18
+ const isApp = _optionalChain([normalized, 'optionalAccess', _5 => _5.startsWith, 'call', _6 => _6("app-")]) === true || normalized === "app" || normalized === "app-plus";
19
+ const isMp = _optionalChain([normalized, 'optionalAccess', _7 => _7.startsWith, 'call', _8 => _8("mp-")]) === true;
20
+ const isWeb = _optionalChain([normalized, 'optionalAccess', _9 => _9.startsWith, 'call', _10 => _10("web")]) === true || normalized === "h5";
21
+ return {
22
+ raw: value,
23
+ normalized,
24
+ isApp,
25
+ isAppAndroid,
26
+ isAppHarmony,
27
+ isAppIos,
28
+ isMp,
29
+ isWeb
30
+ };
31
+ }
32
+
33
+ // src/utils/index.ts
34
+ function classifyEntry(filename, options) {
35
+ if (options.cssMatcher(filename)) {
36
+ return "css";
37
+ }
38
+ if (options.htmlMatcher(filename)) {
39
+ return "html";
40
+ }
41
+ if (options.jsMatcher(filename) || options.wxsMatcher(filename)) {
42
+ return "js";
43
+ }
44
+ return "other";
45
+ }
46
+ function createEmptyGroups() {
47
+ return {
48
+ css: [],
49
+ html: [],
50
+ js: [],
51
+ other: []
52
+ };
53
+ }
54
+ function getGroupedEntries(entries, options) {
55
+ const groups = createEmptyGroups();
56
+ for (const entry of entries) {
57
+ const [filename] = entry;
58
+ const group = classifyEntry(filename, options);
59
+ groups[group].push(entry);
60
+ }
61
+ return groups;
62
+ }
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ exports.resolveUniUtsPlatform = resolveUniUtsPlatform; exports.defu = _shared.defu; exports.defuOverrideArray = _shared.defuOverrideArray; exports.isMap = _shared.isMap; exports.noop = _shared.noop; exports.getGroupedEntries = getGroupedEntries;
@@ -3,13 +3,13 @@
3
3
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
4
4
 
5
5
 
6
- var _chunkBWNTLOVRjs = require('./chunk-BWNTLOVR.js');
6
+ var _chunkWOJCMQDFjs = require('./chunk-WOJCMQDF.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkOQ2K6ETPjs = require('./chunk-OQ2K6ETP.js');
12
+ var _chunkCYKRAS6Kjs = require('./chunk-CYKRAS6K.js');
13
13
 
14
14
  // src/bundlers/gulp/index.ts
15
15
  var _buffer = require('buffer');
@@ -17,12 +17,12 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
17
17
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
18
18
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
19
19
  var _stream = require('stream'); var _stream2 = _interopRequireDefault(_stream);
20
- var debug = _chunkOQ2K6ETPjs.createDebug.call(void 0, );
20
+ var debug = _chunkCYKRAS6Kjs.createDebug.call(void 0, );
21
21
  var Transform = _stream2.default.Transform;
22
22
  function createPlugins(options = {}) {
23
- const opts = _chunkOQ2K6ETPjs.getCompilerContext.call(void 0, options);
23
+ const opts = _chunkCYKRAS6Kjs.getCompilerContext.call(void 0, options);
24
24
  const { templateHandler, styleHandler, jsHandler, cache, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
25
- const patchRecorderState = _chunkBWNTLOVRjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
25
+ const patchRecorderState = _chunkWOJCMQDFjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
26
26
  source: "runtime",
27
27
  cwd: _nullishCoalesce(opts.tailwindcssBasedir, () => ( _process2.default.cwd()))
28
28
  });
@@ -36,7 +36,7 @@ function createPlugins(options = {}) {
36
36
  const MODULE_EXTENSIONS = [".js", ".mjs", ".cjs", ".ts", ".tsx", ".jsx"];
37
37
  let runtimeSetInitialized = false;
38
38
  async function refreshRuntimeState(force) {
39
- await _chunkOQ2K6ETPjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
39
+ await _chunkCYKRAS6Kjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
40
40
  }
41
41
  async function refreshRuntimeSet(force = false) {
42
42
  await refreshRuntimeState(force);
@@ -44,7 +44,7 @@ function createPlugins(options = {}) {
44
44
  if (!force && runtimeSetInitialized && runtimeSet.size > 0) {
45
45
  return runtimeSet;
46
46
  }
47
- runtimeSet = await _chunkOQ2K6ETPjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force, skipRefresh: force });
47
+ runtimeSet = await _chunkCYKRAS6Kjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force, skipRefresh: force });
48
48
  runtimeSetInitialized = true;
49
49
  return runtimeSet;
50
50
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkFMBPNII7js = require('./chunk-FMBPNII7.js');
3
+ var _chunkDYLQ6UOIjs = require('./chunk-DYLQ6UOI.js');
4
4
 
5
5
  // src/defaults.ts
6
6
  var _escape = require('@weapp-core/escape');
@@ -77,10 +77,10 @@ function getDefaultOptions() {
77
77
  "border-color": "currentColor"
78
78
  },
79
79
  disabled: false,
80
- onLoad: _chunkFMBPNII7js.noop,
81
- onStart: _chunkFMBPNII7js.noop,
82
- onEnd: _chunkFMBPNII7js.noop,
83
- onUpdate: _chunkFMBPNII7js.noop,
80
+ onLoad: _chunkDYLQ6UOIjs.noop,
81
+ onStart: _chunkDYLQ6UOIjs.noop,
82
+ onEnd: _chunkDYLQ6UOIjs.noop,
83
+ onUpdate: _chunkDYLQ6UOIjs.noop,
84
84
  customAttributes: {},
85
85
  customReplaceDictionary: _escape.MappingChars2String,
86
86
  appType: void 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defuOverrideArray
3
- } from "./chunk-RR5HCKVQ.mjs";
3
+ } from "./chunk-OOHJLO5M.mjs";
4
4
 
5
5
  // src/logger/index.ts
6
6
  import { logger } from "@weapp-tailwindcss/logger";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  noop
3
- } from "./chunk-RR5HCKVQ.mjs";
3
+ } from "./chunk-OOHJLO5M.mjs";
4
4
 
5
5
  // src/defaults.ts
6
6
  import { isAllowedClassName, MappingChars2String } from "@weapp-core/escape";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-RRHPTTCP.mjs";
13
13
  import {
14
14
  setupPatchRecorder
15
- } from "./chunk-GFC7MQHN.mjs";
15
+ } from "./chunk-BC6TZREM.mjs";
16
16
  import {
17
17
  collectRuntimeClassSet,
18
18
  createAttributeMatcher,
@@ -23,10 +23,11 @@ import {
23
23
  replaceWxml,
24
24
  toCustomAttributesEntities,
25
25
  vitePluginName
26
- } from "./chunk-TDU6NN6W.mjs";
26
+ } from "./chunk-W33YZK2C.mjs";
27
27
  import {
28
- getGroupedEntries
29
- } from "./chunk-RR5HCKVQ.mjs";
28
+ getGroupedEntries,
29
+ resolveUniUtsPlatform
30
+ } from "./chunk-OOHJLO5M.mjs";
30
31
 
31
32
  // src/bundlers/vite/index.ts
32
33
  import { Buffer } from "buffer";
@@ -227,16 +228,22 @@ async function formatPostcssSourceMap(rawMap, file) {
227
228
  // src/uni-app-x/vite.ts
228
229
  var preprocessorLangs = /* @__PURE__ */ new Set(["scss", "sass", "less", "styl", "stylus"]);
229
230
  function isPreprocessorRequest(id, lang) {
230
- if (lang && preprocessorLangs.has(lang)) {
231
+ const normalizedLang = lang?.toLowerCase();
232
+ if (normalizedLang && preprocessorLangs.has(normalizedLang)) {
231
233
  return true;
232
234
  }
233
- return /\.(?:scss|sass|less|styl|stylus)(?:\?|$)/.test(id);
235
+ const inlineLangMatch = id.match(/lang\.([a-z]+)/i);
236
+ if (inlineLangMatch && preprocessorLangs.has(inlineLangMatch[1].toLowerCase())) {
237
+ return true;
238
+ }
239
+ return /\.(?:scss|sass|less|styl|stylus)(?:\?|$)/i.test(id);
234
240
  }
235
241
  function createUniAppXPlugins(options) {
236
242
  const {
237
243
  appType,
238
244
  customAttributesEntities,
239
245
  disabledDefaultTemplateHandler,
246
+ isIosPlatform: providedIosPlatform,
240
247
  mainCssChunkMatcher,
241
248
  runtimeState,
242
249
  styleHandler,
@@ -244,44 +251,57 @@ function createUniAppXPlugins(options) {
244
251
  ensureRuntimeClassSet,
245
252
  getResolvedConfig
246
253
  } = options;
247
- const cssPlugins = [void 0, "pre"].map((enforce) => ({
248
- name: `weapp-tailwindcss:uni-app-x:css${enforce ? `:${enforce}` : ""}`,
249
- enforce,
254
+ const isIosPlatform = providedIosPlatform ?? resolveUniUtsPlatform().isAppIos;
255
+ async function transformStyle(code, id, query) {
256
+ const parsed = query ?? parseVueRequest(id).query;
257
+ if (isCSSRequest(id) || parsed.vue && parsed.type === "style") {
258
+ const postcssResult = await styleHandler(code, {
259
+ isMainChunk: mainCssChunkMatcher(id, appType),
260
+ postcssOptions: {
261
+ options: {
262
+ from: id,
263
+ map: {
264
+ inline: false,
265
+ annotation: false,
266
+ // PostCSS 可能返回虚拟文件,因此需要启用这一项以获取源内容
267
+ sourcesContent: true
268
+ // 若上游预处理器已经生成 source map,sources 中可能出现重复条目
269
+ }
270
+ }
271
+ }
272
+ });
273
+ const rawPostcssMap = postcssResult.map.toJSON();
274
+ const postcssMap = await formatPostcssSourceMap(
275
+ rawPostcssMap,
276
+ cleanUrl(id)
277
+ );
278
+ return {
279
+ code: postcssResult.css,
280
+ map: postcssMap
281
+ };
282
+ }
283
+ }
284
+ const cssPrePlugin = {
285
+ name: "weapp-tailwindcss:uni-app-x:css:pre",
286
+ enforce: "pre",
250
287
  async transform(code, id) {
251
288
  await runtimeState.patchPromise;
252
289
  const { query } = parseVueRequest(id);
253
290
  const lang = query.lang;
254
- if (enforce === "pre" && isPreprocessorRequest(id, lang)) {
291
+ if (isIosPlatform && isPreprocessorRequest(id, lang)) {
255
292
  return;
256
293
  }
257
- if (isCSSRequest(id) || query.vue && query.type === "style") {
258
- const postcssResult = await styleHandler(code, {
259
- isMainChunk: mainCssChunkMatcher(id, appType),
260
- postcssOptions: {
261
- options: {
262
- from: id,
263
- map: {
264
- inline: false,
265
- annotation: false,
266
- // PostCSS 可能返回虚拟文件,因此需要启用这一项以获取源内容
267
- sourcesContent: true
268
- // 若上游预处理器已经生成 source map,sources 中可能出现重复条目
269
- }
270
- }
271
- }
272
- });
273
- const rawPostcssMap = postcssResult.map.toJSON();
274
- const postcssMap = await formatPostcssSourceMap(
275
- rawPostcssMap,
276
- cleanUrl(id)
277
- );
278
- return {
279
- code: postcssResult.css,
280
- map: postcssMap
281
- };
282
- }
294
+ return transformStyle(code, id, query);
283
295
  }
284
- }));
296
+ };
297
+ const cssPlugin = {
298
+ name: "weapp-tailwindcss:uni-app-x:css",
299
+ async transform(code, id) {
300
+ await runtimeState.patchPromise;
301
+ return transformStyle(code, id);
302
+ }
303
+ };
304
+ const cssPlugins = [cssPlugin, cssPrePlugin];
285
305
  const nvuePlugin = {
286
306
  name: "weapp-tailwindcss:uni-app-x:nvue",
287
307
  enforce: "pre",
@@ -574,10 +594,13 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
574
594
  }
575
595
  onLoad();
576
596
  const getResolvedConfig = () => resolvedConfig;
597
+ const utsPlatform = resolveUniUtsPlatform();
598
+ const isIosPlatform = utsPlatform.isAppIos;
577
599
  const uniAppXPlugins = uniAppX ? createUniAppXPlugins({
578
600
  appType,
579
601
  customAttributesEntities,
580
602
  disabledDefaultTemplateHandler,
603
+ isIosPlatform,
581
604
  mainCssChunkMatcher,
582
605
  runtimeState,
583
606
  styleHandler,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-3SKEY32E.mjs";
4
4
  import {
5
5
  pluginName
6
- } from "./chunk-TDU6NN6W.mjs";
6
+ } from "./chunk-W33YZK2C.mjs";
7
7
 
8
8
  // src/shared/mpx.ts
9
9
  import path2 from "path";
@@ -5,6 +5,31 @@ import { defu, defuOverrideArray, groupBy, isMap, isRegexp, noop, regExpTest, re
5
5
  import path from "path";
6
6
  import process from "process";
7
7
 
8
+ // src/utils/uni-platform.ts
9
+ import process2 from "process";
10
+ function normalizePlatform(value) {
11
+ return value?.trim().toLowerCase() || void 0;
12
+ }
13
+ function resolveUniUtsPlatform(value = process2.env.UNI_UTS_PLATFORM) {
14
+ const normalized = normalizePlatform(value);
15
+ const isAppAndroid = normalized === "app-android";
16
+ const isAppIos = normalized === "app-ios";
17
+ const isAppHarmony = normalized === "app-harmony";
18
+ const isApp = normalized?.startsWith("app-") === true || normalized === "app" || normalized === "app-plus";
19
+ const isMp = normalized?.startsWith("mp-") === true;
20
+ const isWeb = normalized?.startsWith("web") === true || normalized === "h5";
21
+ return {
22
+ raw: value,
23
+ normalized,
24
+ isApp,
25
+ isAppAndroid,
26
+ isAppHarmony,
27
+ isAppIos,
28
+ isMp,
29
+ isWeb
30
+ };
31
+ }
32
+
8
33
  // src/utils/index.ts
9
34
  function classifyEntry(filename, options) {
10
35
  if (options.cssMatcher(filename)) {
@@ -37,6 +62,7 @@ function getGroupedEntries(entries, options) {
37
62
  }
38
63
 
39
64
  export {
65
+ resolveUniUtsPlatform,
40
66
  defu,
41
67
  defuOverrideArray,
42
68
  isMap,
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-RRHPTTCP.mjs";
4
4
  import {
5
5
  setupPatchRecorder
6
- } from "./chunk-GFC7MQHN.mjs";
6
+ } from "./chunk-BC6TZREM.mjs";
7
7
  import {
8
8
  collectRuntimeClassSet,
9
9
  createDebug,
10
10
  getCompilerContext,
11
11
  refreshTailwindRuntimeState
12
- } from "./chunk-TDU6NN6W.mjs";
12
+ } from "./chunk-W33YZK2C.mjs";
13
13
 
14
14
  // src/bundlers/gulp/index.ts
15
15
  import { Buffer } from "buffer";
@@ -3,14 +3,14 @@ import {
3
3
  createTailwindcssPatcherFromContext,
4
4
  findNearestPackageRoot,
5
5
  warnMissingCssEntries
6
- } from "./chunk-SZOXLSNK.mjs";
6
+ } from "./chunk-HEBIKTBC.mjs";
7
7
  import {
8
8
  getDefaultOptions
9
- } from "./chunk-TFOTUR4L.mjs";
9
+ } from "./chunk-HWF5U4CI.mjs";
10
10
  import {
11
11
  defuOverrideArray,
12
12
  isMap
13
- } from "./chunk-RR5HCKVQ.mjs";
13
+ } from "./chunk-OOHJLO5M.mjs";
14
14
 
15
15
  // src/tailwindcss/runtime.ts
16
16
  import { statSync } from "fs";
@@ -187,7 +187,7 @@ async function collectRuntimeClassSet(twPatcher, options = {}) {
187
187
  // package.json
188
188
  var package_default = {
189
189
  name: "weapp-tailwindcss",
190
- version: "4.9.0-alpha.0",
190
+ version: "4.9.1",
191
191
  description: "\u628A tailwindcss \u539F\u5B50\u5316\u6837\u5F0F\u601D\u60F3\uFF0C\u5E26\u7ED9\u5C0F\u7A0B\u5E8F\u5F00\u53D1\u8005\u4EEC! bring tailwindcss to miniprogram developers!",
192
192
  author: "ice breaker <1324318532@qq.com>",
193
193
  license: "MIT",
@@ -1,22 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
3
 
4
- var _chunkOQ2K6ETPjs = require('./chunk-OQ2K6ETP.js');
4
+ var _chunkCYKRAS6Kjs = require('./chunk-CYKRAS6K.js');
5
5
 
6
6
 
7
- var _chunkPT4IJT3Qjs = require('./chunk-PT4IJT3Q.js');
7
+ var _chunkAPJY6PQWjs = require('./chunk-APJY6PQW.js');
8
8
 
9
9
  // src/tailwindcss/recorder.ts
10
10
  function setupPatchRecorder(patcher, baseDir, options) {
11
- const recorder = _chunkOQ2K6ETPjs.createPatchTargetRecorder.call(void 0, baseDir, patcher, options);
11
+ const recorder = _chunkCYKRAS6Kjs.createPatchTargetRecorder.call(void 0, baseDir, patcher, options);
12
12
  if (_optionalChain([recorder, 'optionalAccess', _ => _.message]) && _optionalChain([options, 'optionalAccess', _2 => _2.logMessage]) !== false) {
13
13
  const prefix = _optionalChain([options, 'optionalAccess', _3 => _3.messagePrefix]) ? `${options.messagePrefix} ` : "";
14
- _chunkPT4IJT3Qjs.logger.info("%s%s", prefix, recorder.message);
14
+ _chunkAPJY6PQWjs.logger.info("%s%s", prefix, recorder.message);
15
15
  }
16
16
  const onPatchCompleted = _optionalChain([recorder, 'optionalAccess', _4 => _4.onPatched]) ? async () => {
17
17
  await recorder.onPatched();
18
18
  } : void 0;
19
- const patchPromise = patcher ? _chunkOQ2K6ETPjs.createTailwindPatchPromise.call(void 0, patcher, onPatchCompleted) : Promise.resolve();
19
+ const patchPromise = patcher ? _chunkCYKRAS6Kjs.createTailwindPatchPromise.call(void 0, patcher, onPatchCompleted) : Promise.resolve();
20
20
  return {
21
21
  recorder,
22
22
  patchPromise,
@@ -3,7 +3,7 @@
3
3
  var _chunkORSWL3MIjs = require('./chunk-ORSWL3MI.js');
4
4
 
5
5
 
6
- var _chunkOQ2K6ETPjs = require('./chunk-OQ2K6ETP.js');
6
+ var _chunkCYKRAS6Kjs = require('./chunk-CYKRAS6K.js');
7
7
 
8
8
  // src/shared/mpx.ts
9
9
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
@@ -154,8 +154,8 @@ function applyTailwindcssCssImportRewrite(compiler, options) {
154
154
  if (!options.enabled) {
155
155
  return;
156
156
  }
157
- compiler.hooks.normalModuleFactory.tap(_chunkOQ2K6ETPjs.pluginName, (factory) => {
158
- factory.hooks.beforeResolve.tap(_chunkOQ2K6ETPjs.pluginName, (data) => {
157
+ compiler.hooks.normalModuleFactory.tap(_chunkCYKRAS6Kjs.pluginName, (factory) => {
158
+ factory.hooks.beforeResolve.tap(_chunkCYKRAS6Kjs.pluginName, (data) => {
159
159
  rewriteTailwindcssRequestForCss(data, options.pkgDir, options.appType);
160
160
  });
161
161
  });