weapp-tailwindcss 4.10.0-beta.5 → 4.10.0-beta.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.
@@ -1,14 +1,14 @@
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 _chunkDFA5DHMZjs = require('./chunk-DFA5DHMZ.js');
4
+ var _chunkKMARMYILjs = require('./chunk-KMARMYIL.js');
5
5
 
6
6
 
7
7
  var _chunk5APD2MNVjs = require('./chunk-5APD2MNV.js');
8
8
 
9
9
  // src/tailwindcss/recorder.ts
10
10
  function setupPatchRecorder(patcher, baseDir, options) {
11
- const recorder = _chunkDFA5DHMZjs.createPatchTargetRecorder.call(void 0, baseDir, patcher, options);
11
+ const recorder = _chunkKMARMYILjs.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
14
  _chunk5APD2MNVjs.logger.info("%s%s", prefix, recorder.message);
@@ -16,7 +16,7 @@ function setupPatchRecorder(patcher, baseDir, options) {
16
16
  const onPatchCompleted = _optionalChain([recorder, 'optionalAccess', _4 => _4.onPatched]) ? async () => {
17
17
  await recorder.onPatched();
18
18
  } : void 0;
19
- const patchPromise = patcher ? _chunkDFA5DHMZjs.createTailwindPatchPromise.call(void 0, patcher, onPatchCompleted) : Promise.resolve();
19
+ const patchPromise = patcher ? _chunkKMARMYILjs.createTailwindPatchPromise.call(void 0, patcher, onPatchCompleted) : Promise.resolve();
20
20
  return {
21
21
  recorder,
22
22
  patchPromise,
@@ -285,7 +285,7 @@ async function collectRuntimeClassSet(twPatcher, options = {}) {
285
285
  // package.json
286
286
  var package_default = {
287
287
  name: "weapp-tailwindcss",
288
- version: "4.10.0-beta.5",
288
+ version: "4.10.0-beta.7",
289
289
  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!",
290
290
  author: "ice breaker <1324318532@qq.com>",
291
291
  license: "MIT",
@@ -469,7 +469,7 @@ var package_default = {
469
469
  "lint:fix": "eslint ./src --fix",
470
470
  postinstall: "node bin/weapp-tailwindcss.js patch",
471
471
  "bench:vite-dev-hmr": "tsx scripts/vite-dev-hmr-bench.ts",
472
- "test:watch-hmr": "tsx scripts/watch-hmr-regression.ts"
472
+ "test:watch-hmr": "tsx scripts/watch-hmr-regression/index.ts"
473
473
  },
474
474
  publishConfig: {
475
475
  access: "public",
@@ -12,7 +12,7 @@ var _chunkIIDSY4XZjs = require('./chunk-IIDSY4XZ.js');
12
12
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
13
13
 
14
14
 
15
- var _chunkFVUZDDYHjs = require('./chunk-FVUZDDYH.js');
15
+ var _chunk3MQ44KFFjs = require('./chunk-3MQ44KFF.js');
16
16
 
17
17
 
18
18
 
@@ -24,7 +24,7 @@ var _chunkFVUZDDYHjs = require('./chunk-FVUZDDYH.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkDFA5DHMZjs = require('./chunk-DFA5DHMZ.js');
27
+ var _chunkKMARMYILjs = require('./chunk-KMARMYIL.js');
28
28
 
29
29
 
30
30
  var _chunkDYLQ6UOIjs = require('./chunk-DYLQ6UOI.js');
@@ -54,7 +54,7 @@ function updateStaticAttribute(ms, prop) {
54
54
  const start = prop.value.loc.start.offset + 1;
55
55
  const end = prop.value.loc.end.offset - 1;
56
56
  if (start < end) {
57
- ms.update(start, end, _chunkDFA5DHMZjs.replaceWxml.call(void 0, prop.value.content));
57
+ ms.update(start, end, _chunkKMARMYILjs.replaceWxml.call(void 0, prop.value.content));
58
58
  }
59
59
  }
60
60
  function updateDirectiveExpression(ms, prop, jsHandler, runtimeSet) {
@@ -66,7 +66,7 @@ function updateDirectiveExpression(ms, prop, jsHandler, runtimeSet) {
66
66
  if (start >= end) {
67
67
  return;
68
68
  }
69
- const generated = _chunkDFA5DHMZjs.generateCode.call(void 0, prop.exp.content, {
69
+ const generated = _chunkKMARMYILjs.generateCode.call(void 0, prop.exp.content, {
70
70
  jsHandler,
71
71
  runtimeSet,
72
72
  wrapExpression: true
@@ -95,7 +95,7 @@ function transformUVue(code, id, jsHandler, runtimeSet, options = {}) {
95
95
  return;
96
96
  }
97
97
  const { customAttributesEntities, disabledDefaultTemplateHandler = false } = options;
98
- const matchCustomAttribute = _chunkDFA5DHMZjs.createAttributeMatcher.call(void 0, customAttributesEntities);
98
+ const matchCustomAttribute = _chunkKMARMYILjs.createAttributeMatcher.call(void 0, customAttributesEntities);
99
99
  const ms = new (0, _magicstring2.default)(code);
100
100
  const { descriptor, errors } = _compilersfc.parse.call(void 0, code);
101
101
  if (errors.length === 0) {
@@ -584,8 +584,10 @@ function buildProcessSets(entries, opts, changedByType, previousLinkedByEntry, f
584
584
  linkedImpactsByEntry
585
585
  };
586
586
  }
587
- for (const file of changedByType.html) {
588
- processFiles.html.add(file);
587
+ for (const [file] of entries) {
588
+ if (classifyEntry(file, opts) === "html") {
589
+ processFiles.html.add(file);
590
+ }
589
591
  }
590
592
  for (const file of changedByType.css) {
591
593
  processFiles.css.add(file);
@@ -749,7 +751,7 @@ function createGenerateBundleHook(context) {
749
751
  );
750
752
  }
751
753
  debug2("get runtimeSet, class count: %d", runtime.size);
752
- const runtimeSignature = _nullishCoalesce(_chunkDFA5DHMZjs.getRuntimeClassSetSignature.call(void 0, runtimeState.twPatcher), () => ( "runtime:missing"));
754
+ const runtimeSignature = _nullishCoalesce(_chunkKMARMYILjs.getRuntimeClassSetSignature.call(void 0, runtimeState.twPatcher), () => ( "runtime:missing"));
753
755
  const handleLinkedUpdate = (fileName, previous, next) => {
754
756
  onUpdate(fileName, previous, next);
755
757
  debug2("js linked handle: %s", fileName);
@@ -820,9 +822,6 @@ function createGenerateBundleHook(context) {
820
822
  }
821
823
  if (type === "css" && originalSource.type === "asset") {
822
824
  metrics.css.total++;
823
- if (!processFiles.css.has(file)) {
824
- continue;
825
- }
826
825
  const rawSource = originalSource.source.toString();
827
826
  tasks.push(
828
827
  _chunkLTJQUORKjs.processCachedTask.call(void 0, {
@@ -1053,7 +1052,7 @@ function createRewriteCssImportsPlugins(options) {
1053
1052
  const { appType, weappTailwindcssDirPosix: weappTailwindcssDirPosix2 } = options;
1054
1053
  return [
1055
1054
  {
1056
- name: `${_chunkDFA5DHMZjs.vitePluginName}:rewrite-css-imports`,
1055
+ name: `${_chunkKMARMYILjs.vitePluginName}:rewrite-css-imports`,
1057
1056
  enforce: "pre",
1058
1057
  resolveId: {
1059
1058
  order: "pre",
@@ -1095,12 +1094,12 @@ function createRewriteCssImportsPlugins(options) {
1095
1094
  }
1096
1095
 
1097
1096
  // src/bundlers/vite/index.ts
1098
- var debug = _chunkDFA5DHMZjs.createDebug.call(void 0, );
1097
+ var debug = _chunkKMARMYILjs.createDebug.call(void 0, );
1099
1098
  var weappTailwindcssPackageDir = _chunkIIDSY4XZjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
1100
1099
  var weappTailwindcssDirPosix = slash(weappTailwindcssPackageDir);
1101
1100
  function UnifiedViteWeappTailwindcssPlugin(options = {}) {
1102
1101
  const rewriteCssImportsSpecified = Object.prototype.hasOwnProperty.call(options, "rewriteCssImports");
1103
- const opts = _chunkDFA5DHMZjs.getCompilerContext.call(void 0, options);
1102
+ const opts = _chunkKMARMYILjs.getCompilerContext.call(void 0, options);
1104
1103
  const {
1105
1104
  disabled,
1106
1105
  customAttributes,
@@ -1125,8 +1124,8 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
1125
1124
  if (disabledOptions.plugin) {
1126
1125
  return rewritePlugins.length ? rewritePlugins : void 0;
1127
1126
  }
1128
- const customAttributesEntities = _chunkDFA5DHMZjs.toCustomAttributesEntities.call(void 0, customAttributes);
1129
- const patchRecorderState = _chunkFVUZDDYHjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
1127
+ const customAttributesEntities = _chunkKMARMYILjs.toCustomAttributesEntities.call(void 0, customAttributes);
1128
+ const patchRecorderState = _chunk3MQ44KFFjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
1130
1129
  source: "runtime",
1131
1130
  cwd: _nullishCoalesce(opts.tailwindcssBasedir, () => ( _process2.default.cwd()))
1132
1131
  });
@@ -1143,7 +1142,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
1143
1142
  let runtimeRefreshOptionsKey;
1144
1143
  function resolveRuntimeRefreshOptions() {
1145
1144
  const configPath = _optionalChain([runtimeState, 'access', _32 => _32.twPatcher, 'access', _33 => _33.options, 'optionalAccess', _34 => _34.tailwind, 'optionalAccess', _35 => _35.config]);
1146
- const signature = _chunkDFA5DHMZjs.getRuntimeClassSetSignature.call(void 0, runtimeState.twPatcher);
1145
+ const signature = _chunkKMARMYILjs.getRuntimeClassSetSignature.call(void 0, runtimeState.twPatcher);
1147
1146
  const optionsKey = JSON.stringify({
1148
1147
  appType,
1149
1148
  uniAppX: Boolean(uniAppX),
@@ -1164,7 +1163,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
1164
1163
  async function refreshRuntimeState(force) {
1165
1164
  const invalidation = resolveRuntimeRefreshOptions();
1166
1165
  const shouldRefresh = force || invalidation.changed;
1167
- const refreshed = await _chunkDFA5DHMZjs.refreshTailwindRuntimeState.call(void 0, runtimeState, {
1166
+ const refreshed = await _chunkKMARMYILjs.refreshTailwindRuntimeState.call(void 0, runtimeState, {
1168
1167
  force: shouldRefresh,
1169
1168
  clearCache: force || invalidation.changed
1170
1169
  });
@@ -1185,7 +1184,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
1185
1184
  }
1186
1185
  if (forceRuntimeRefresh || !runtimeSetPromise) {
1187
1186
  const invalidation = resolveRuntimeRefreshOptions();
1188
- const task2 = _chunkDFA5DHMZjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, {
1187
+ const task2 = _chunkKMARMYILjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, {
1189
1188
  force: forceRuntimeRefresh || invalidation.changed,
1190
1189
  skipRefresh: forceRuntimeRefresh,
1191
1190
  clearCache: forceRuntimeRefresh || invalidation.changed
@@ -1221,7 +1220,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
1221
1220
  const plugins = [
1222
1221
  ...rewritePlugins,
1223
1222
  {
1224
- name: `${_chunkDFA5DHMZjs.vitePluginName}:post`,
1223
+ name: `${_chunkKMARMYILjs.vitePluginName}:post`,
1225
1224
  enforce: "post",
1226
1225
  configResolved(config) {
1227
1226
  resolvedConfig = config;
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-RRHPTTCP.mjs";
13
13
  import {
14
14
  setupPatchRecorder
15
- } from "./chunk-BG6EFR2X.mjs";
15
+ } from "./chunk-NY7AYLZC.mjs";
16
16
  import {
17
17
  collectRuntimeClassSet,
18
18
  createAttributeMatcher,
@@ -24,7 +24,7 @@ import {
24
24
  replaceWxml,
25
25
  toCustomAttributesEntities,
26
26
  vitePluginName
27
- } from "./chunk-KTKHUVCE.mjs";
27
+ } from "./chunk-5WIECTVZ.mjs";
28
28
  import {
29
29
  resolveUniUtsPlatform
30
30
  } from "./chunk-OOHJLO5M.mjs";
@@ -584,8 +584,10 @@ function buildProcessSets(entries, opts, changedByType, previousLinkedByEntry, f
584
584
  linkedImpactsByEntry
585
585
  };
586
586
  }
587
- for (const file of changedByType.html) {
588
- processFiles.html.add(file);
587
+ for (const [file] of entries) {
588
+ if (classifyEntry(file, opts) === "html") {
589
+ processFiles.html.add(file);
590
+ }
589
591
  }
590
592
  for (const file of changedByType.css) {
591
593
  processFiles.css.add(file);
@@ -820,9 +822,6 @@ function createGenerateBundleHook(context) {
820
822
  }
821
823
  if (type === "css" && originalSource.type === "asset") {
822
824
  metrics.css.total++;
823
- if (!processFiles.css.has(file)) {
824
- continue;
825
- }
826
825
  const rawSource = originalSource.source.toString();
827
826
  tasks.push(
828
827
  processCachedTask({
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F2CKKG6Q.mjs";
4
4
  import {
5
5
  pluginName
6
- } from "./chunk-KTKHUVCE.mjs";
6
+ } from "./chunk-5WIECTVZ.mjs";
7
7
 
8
8
  // src/shared/mpx.ts
9
9
  import path2 from "path";
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- var _chunkNESY7YODjs = require('./chunk-NESY7YOD.js');
13
+ var _chunkHPQKNMUFjs = require('./chunk-HPQKNMUF.js');
14
14
 
15
15
 
16
16
 
@@ -23,14 +23,14 @@ var _chunkIIDSY4XZjs = require('./chunk-IIDSY4XZ.js');
23
23
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
24
24
 
25
25
 
26
- var _chunkFVUZDDYHjs = require('./chunk-FVUZDDYH.js');
26
+ var _chunk3MQ44KFFjs = require('./chunk-3MQ44KFF.js');
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
32
 
33
- var _chunkDFA5DHMZjs = require('./chunk-DFA5DHMZ.js');
33
+ var _chunkKMARMYILjs = require('./chunk-KMARMYIL.js');
34
34
 
35
35
 
36
36
  var _chunkDYLQ6UOIjs = require('./chunk-DYLQ6UOI.js');
@@ -51,10 +51,10 @@ function setupWebpackV5ProcessAssetsHook(options) {
51
51
  } = options;
52
52
  const { Compilation, sources } = compiler.webpack;
53
53
  const { ConcatSource } = sources;
54
- compiler.hooks.compilation.tap(_chunkDFA5DHMZjs.pluginName, (compilation) => {
54
+ compiler.hooks.compilation.tap(_chunkKMARMYILjs.pluginName, (compilation) => {
55
55
  compilation.hooks.processAssets.tapPromise(
56
56
  {
57
- name: _chunkDFA5DHMZjs.pluginName,
57
+ name: _chunkKMARMYILjs.pluginName,
58
58
  stage: Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE
59
59
  },
60
60
  async (assets) => {
@@ -66,7 +66,7 @@ function setupWebpackV5ProcessAssetsHook(options) {
66
66
  compilerOptions.cache.calcHashValueChanged(chunk.id, chunk.hash);
67
67
  }
68
68
  }
69
- const assetHashByChunk = _chunkNESY7YODjs.createAssetHashByChunkMap.call(void 0, compilation.chunks);
69
+ const assetHashByChunk = _chunkHPQKNMUFjs.createAssetHashByChunkMap.call(void 0, compilation.chunks);
70
70
  const entries = Object.entries(assets);
71
71
  const compilerOutputPath = _nullishCoalesce(_optionalChain([compilation, 'access', _ => _.compiler, 'optionalAccess', _2 => _2.outputPath]), () => ( compiler.outputPath));
72
72
  const outputDir = compilerOutputPath ? _path2.default.resolve(compilerOutputPath) : _nullishCoalesce(_optionalChain([compilation, 'access', _3 => _3.outputOptions, 'optionalAccess', _4 => _4.path]), () => ( _process2.default.cwd()));
@@ -122,7 +122,7 @@ function setupWebpackV5ProcessAssetsHook(options) {
122
122
  }
123
123
  };
124
124
  const groupedEntries = _chunkDYLQ6UOIjs.getGroupedEntries.call(void 0, entries, compilerOptions);
125
- const runtimeSet = await _chunkDFA5DHMZjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
125
+ const runtimeSet = await _chunkKMARMYILjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
126
126
  forceCollect: false,
127
127
  allowEmpty: false
128
128
  });
@@ -165,7 +165,7 @@ function setupWebpackV5ProcessAssetsHook(options) {
165
165
  const jsTaskFactories = [];
166
166
  if (Array.isArray(groupedEntries.js)) {
167
167
  for (const [file] of groupedEntries.js) {
168
- const cacheKey = _chunkNESY7YODjs.getCacheKey.call(void 0, file);
168
+ const cacheKey = _chunkHPQKNMUFjs.getCacheKey.call(void 0, file);
169
169
  const asset = compilation.getAsset(file);
170
170
  if (!asset) {
171
171
  continue;
@@ -276,9 +276,9 @@ function setupWebpackV5Loaders(options) {
276
276
  getClassSetInLoader,
277
277
  debug: debug2
278
278
  } = options;
279
- const isMpxApp = _chunkNESY7YODjs.isMpx.call(void 0, appType);
279
+ const isMpxApp = _chunkHPQKNMUFjs.isMpx.call(void 0, appType);
280
280
  if (shouldRewriteCssImports && isMpxApp) {
281
- _chunkNESY7YODjs.ensureMpxTailwindcssAliases.call(void 0, compiler, weappTailwindcssPackageDir2);
281
+ _chunkHPQKNMUFjs.ensureMpxTailwindcssAliases.call(void 0, compiler, weappTailwindcssPackageDir2);
282
282
  }
283
283
  const runtimeClassSetLoader = _nullishCoalesce(runtimeLoaderPath, () => ( _path2.default.resolve(__dirname, "./weapp-tw-runtime-classset-loader.js")));
284
284
  const runtimeCssImportRewriteLoader = shouldRewriteCssImports ? _nullishCoalesce(runtimeCssImportRewriteLoaderPath, () => ( _path2.default.resolve(__dirname, "./weapp-tw-css-import-rewrite-loader.js"))) : void 0;
@@ -291,12 +291,12 @@ function setupWebpackV5Loaders(options) {
291
291
  const classSetLoaderOptions = {
292
292
  getClassSet: getClassSetInLoader
293
293
  };
294
- const { findRewriteAnchor, findClassSetAnchor } = _chunkNESY7YODjs.createLoaderAnchorFinders.call(void 0, appType);
294
+ const { findRewriteAnchor, findClassSetAnchor } = _chunkHPQKNMUFjs.createLoaderAnchorFinders.call(void 0, appType);
295
295
  const cssImportRewriteLoaderOptions = runtimeLoaderRewriteOptions ? {
296
296
  rewriteCssImports: runtimeLoaderRewriteOptions
297
297
  } : void 0;
298
298
  if (runtimeCssImportRewriteLoader && shouldRewriteCssImports && cssImportRewriteLoaderOptions && isMpxApp) {
299
- _chunkNESY7YODjs.injectMpxCssRewritePreRules.call(void 0, compiler, runtimeCssImportRewriteLoader, cssImportRewriteLoaderOptions);
299
+ _chunkHPQKNMUFjs.injectMpxCssRewritePreRules.call(void 0, compiler, runtimeCssImportRewriteLoader, cssImportRewriteLoaderOptions);
300
300
  }
301
301
  const createRuntimeClassSetLoaderEntry = () => ({
302
302
  loader: runtimeClassSetLoader,
@@ -316,17 +316,17 @@ function setupWebpackV5Loaders(options) {
316
316
  };
317
317
  };
318
318
  const { NormalModule } = compiler.webpack;
319
- compiler.hooks.compilation.tap(_chunkDFA5DHMZjs.pluginName, (compilation) => {
320
- NormalModule.getCompilationHooks(compilation).loader.tap(_chunkDFA5DHMZjs.pluginName, (_loaderContext, module) => {
319
+ compiler.hooks.compilation.tap(_chunkKMARMYILjs.pluginName, (compilation) => {
320
+ NormalModule.getCompilationHooks(compilation).loader.tap(_chunkKMARMYILjs.pluginName, (_loaderContext, module) => {
321
321
  const hasRuntimeLoader = runtimeClassSetLoaderExists || runtimeCssImportRewriteLoaderExists;
322
322
  if (!hasRuntimeLoader) {
323
323
  return;
324
324
  }
325
- _chunkNESY7YODjs.patchMpxLoaderResolve.call(void 0, _loaderContext, weappTailwindcssPackageDir2, shouldRewriteCssImports && isMpxApp);
325
+ _chunkHPQKNMUFjs.patchMpxLoaderResolve.call(void 0, _loaderContext, weappTailwindcssPackageDir2, shouldRewriteCssImports && isMpxApp);
326
326
  const loaderEntries = module.loaders || [];
327
327
  let rewriteAnchorIdx = findRewriteAnchor(loaderEntries);
328
328
  const classSetAnchorIdx = findClassSetAnchor(loaderEntries);
329
- const isCssModule = _chunkNESY7YODjs.isCssLikeModuleResource.call(void 0, module.resource, compilerOptions.cssMatcher, appType);
329
+ const isCssModule = _chunkHPQKNMUFjs.isCssLikeModuleResource.call(void 0, module.resource, compilerOptions.cssMatcher, appType);
330
330
  if (_process2.default.env.WEAPP_TW_LOADER_DEBUG && isCssModule) {
331
331
  debug2("loader hook css module: %s loaders=%o anchors=%o", module.resource, loaderEntries.map((x) => x.loader), { rewriteAnchorIdx, classSetAnchorIdx });
332
332
  }
@@ -358,7 +358,7 @@ function setupWebpackV5Loaders(options) {
358
358
  rewriteAnchorIdx = findRewriteAnchor(loaderEntries);
359
359
  }
360
360
  }
361
- if (runtimeClassSetLoaderExists && !_chunkNESY7YODjs.hasLoaderEntry.call(void 0, loaderEntries, runtimeClassSetLoader)) {
361
+ if (runtimeClassSetLoaderExists && !_chunkHPQKNMUFjs.hasLoaderEntry.call(void 0, loaderEntries, runtimeClassSetLoader)) {
362
362
  const classSetLoaderEntry = createRuntimeClassSetLoaderEntry();
363
363
  const anchorIndex = findClassSetAnchor(loaderEntries);
364
364
  if (anchorIndex === -1) {
@@ -373,11 +373,11 @@ function setupWebpackV5Loaders(options) {
373
373
  }
374
374
 
375
375
  // src/bundlers/webpack/BaseUnifiedPlugin/v5.ts
376
- var debug = _chunkDFA5DHMZjs.createDebug.call(void 0, );
376
+ var debug = _chunkKMARMYILjs.createDebug.call(void 0, );
377
377
  var weappTailwindcssPackageDir = _chunkIIDSY4XZjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
378
378
  var UnifiedWebpackPluginV5 = class {
379
379
  constructor(options = {}) {
380
- this.options = _chunkDFA5DHMZjs.getCompilerContext.call(void 0, options);
380
+ this.options = _chunkKMARMYILjs.getCompilerContext.call(void 0, options);
381
381
  this.appType = this.options.appType;
382
382
  }
383
383
  apply(compiler) {
@@ -393,19 +393,19 @@ var UnifiedWebpackPluginV5 = class {
393
393
  const disabledOptions = _chunkIIDSY4XZjs.resolveDisabledOptions.call(void 0, disabled);
394
394
  const isTailwindcssV4 = (_nullishCoalesce(initialTwPatcher.majorVersion, () => ( 0))) >= 4;
395
395
  const shouldRewriteCssImports = isTailwindcssV4 && this.options.rewriteCssImports !== false && !disabledOptions.rewriteCssImports;
396
- const isMpxApp = _chunkNESY7YODjs.isMpx.call(void 0, this.appType);
396
+ const isMpxApp = _chunkHPQKNMUFjs.isMpx.call(void 0, this.appType);
397
397
  if (shouldRewriteCssImports) {
398
- _chunkNESY7YODjs.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
398
+ _chunkHPQKNMUFjs.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
399
399
  pkgDir: weappTailwindcssPackageDir,
400
400
  enabled: true,
401
401
  appType: this.appType
402
402
  });
403
- _chunkNESY7YODjs.setupMpxTailwindcssRedirect.call(void 0, weappTailwindcssPackageDir, isMpxApp);
403
+ _chunkHPQKNMUFjs.setupMpxTailwindcssRedirect.call(void 0, weappTailwindcssPackageDir, isMpxApp);
404
404
  }
405
405
  if (disabledOptions.plugin) {
406
406
  return;
407
407
  }
408
- const patchRecorderState = _chunkFVUZDDYHjs.setupPatchRecorder.call(void 0, initialTwPatcher, this.options.tailwindcssBasedir, {
408
+ const patchRecorderState = _chunk3MQ44KFFjs.setupPatchRecorder.call(void 0, initialTwPatcher, this.options.tailwindcssBasedir, {
409
409
  source: "runtime",
410
410
  cwd: _nullishCoalesce(this.options.tailwindcssBasedir, () => ( _process2.default.cwd()))
411
411
  });
@@ -421,18 +421,18 @@ var UnifiedWebpackPluginV5 = class {
421
421
  runtimeSetPrepared = false;
422
422
  };
423
423
  if (_optionalChain([compiler, 'access', _13 => _13.hooks, 'access', _14 => _14.thisCompilation, 'optionalAccess', _15 => _15.tap])) {
424
- compiler.hooks.thisCompilation.tap(_chunkDFA5DHMZjs.pluginName, resetRuntimePreparation);
424
+ compiler.hooks.thisCompilation.tap(_chunkKMARMYILjs.pluginName, resetRuntimePreparation);
425
425
  } else if (_optionalChain([compiler, 'access', _16 => _16.hooks, 'access', _17 => _17.compilation, 'optionalAccess', _18 => _18.tap])) {
426
- compiler.hooks.compilation.tap(_chunkDFA5DHMZjs.pluginName, resetRuntimePreparation);
426
+ compiler.hooks.compilation.tap(_chunkKMARMYILjs.pluginName, resetRuntimePreparation);
427
427
  }
428
428
  async function getClassSetInLoader() {
429
429
  if (runtimeSetPrepared) {
430
430
  return;
431
431
  }
432
- const signature = _chunkDFA5DHMZjs.getRuntimeClassSetSignature.call(void 0, runtimeState.twPatcher);
432
+ const signature = _chunkKMARMYILjs.getRuntimeClassSetSignature.call(void 0, runtimeState.twPatcher);
433
433
  const forceRefresh = signature !== runtimeSetSignature;
434
434
  runtimeSetPrepared = true;
435
- await _chunkDFA5DHMZjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
435
+ await _chunkKMARMYILjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
436
436
  forceRefresh,
437
437
  forceCollect: true,
438
438
  clearCache: forceRefresh,
@@ -3,7 +3,7 @@
3
3
  var _chunkIIDSY4XZjs = require('./chunk-IIDSY4XZ.js');
4
4
 
5
5
 
6
- var _chunkDFA5DHMZjs = require('./chunk-DFA5DHMZ.js');
6
+ var _chunkKMARMYILjs = require('./chunk-KMARMYIL.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(_chunkDFA5DHMZjs.pluginName, (factory) => {
158
- factory.hooks.beforeResolve.tap(_chunkDFA5DHMZjs.pluginName, (data) => {
157
+ compiler.hooks.normalModuleFactory.tap(_chunkKMARMYILjs.pluginName, (factory) => {
158
+ factory.hooks.beforeResolve.tap(_chunkKMARMYILjs.pluginName, (data) => {
159
159
  rewriteTailwindcssRequestForCss(data, options.pkgDir, options.appType);
160
160
  });
161
161
  });
@@ -3,13 +3,13 @@
3
3
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
4
4
 
5
5
 
6
- var _chunkFVUZDDYHjs = require('./chunk-FVUZDDYH.js');
6
+ var _chunk3MQ44KFFjs = require('./chunk-3MQ44KFF.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkDFA5DHMZjs = require('./chunk-DFA5DHMZ.js');
12
+ var _chunkKMARMYILjs = require('./chunk-KMARMYIL.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 = _chunkDFA5DHMZjs.createDebug.call(void 0, );
20
+ var debug = _chunkKMARMYILjs.createDebug.call(void 0, );
21
21
  var Transform = _stream2.default.Transform;
22
22
  function createPlugins(options = {}) {
23
- const opts = _chunkDFA5DHMZjs.getCompilerContext.call(void 0, options);
23
+ const opts = _chunkKMARMYILjs.getCompilerContext.call(void 0, options);
24
24
  const { templateHandler, styleHandler, jsHandler, cache, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
25
- const patchRecorderState = _chunkFVUZDDYHjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
25
+ const patchRecorderState = _chunk3MQ44KFFjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
26
26
  source: "runtime",
27
27
  cwd: _nullishCoalesce(opts.tailwindcssBasedir, () => ( _process2.default.cwd()))
28
28
  });
@@ -36,13 +36,13 @@ 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 _chunkDFA5DHMZjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
39
+ await _chunkKMARMYILjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
40
40
  }
41
41
  async function refreshRuntimeSet(force = false) {
42
42
  if (!force && runtimeSetInitialized) {
43
43
  return runtimeSet;
44
44
  }
45
- runtimeSet = await _chunkDFA5DHMZjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
45
+ runtimeSet = await _chunkKMARMYILjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
46
46
  forceRefresh: force,
47
47
  forceCollect: force,
48
48
  clearCache: force,
@@ -285,7 +285,7 @@ async function collectRuntimeClassSet(twPatcher, options = {}) {
285
285
  // package.json
286
286
  var package_default = {
287
287
  name: "weapp-tailwindcss",
288
- version: "4.10.0-beta.5",
288
+ version: "4.10.0-beta.7",
289
289
  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!",
290
290
  author: "ice breaker <1324318532@qq.com>",
291
291
  license: "MIT",
@@ -469,7 +469,7 @@ var package_default = {
469
469
  "lint:fix": "eslint ./src --fix",
470
470
  postinstall: "node bin/weapp-tailwindcss.js patch",
471
471
  "bench:vite-dev-hmr": "tsx scripts/vite-dev-hmr-bench.ts",
472
- "test:watch-hmr": "tsx scripts/watch-hmr-regression.ts"
472
+ "test:watch-hmr": "tsx scripts/watch-hmr-regression/index.ts"
473
473
  },
474
474
  publishConfig: {
475
475
  access: "public",
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-RRHPTTCP.mjs";
4
4
  import {
5
5
  setupPatchRecorder
6
- } from "./chunk-BG6EFR2X.mjs";
6
+ } from "./chunk-NY7AYLZC.mjs";
7
7
  import {
8
8
  createDebug,
9
9
  ensureRuntimeClassSet,
10
10
  getCompilerContext,
11
11
  refreshTailwindRuntimeState
12
- } from "./chunk-KTKHUVCE.mjs";
12
+ } from "./chunk-5WIECTVZ.mjs";
13
13
 
14
14
  // src/bundlers/gulp/index.ts
15
15
  import { Buffer } from "buffer";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createPatchTargetRecorder,
3
3
  createTailwindPatchPromise
4
- } from "./chunk-KTKHUVCE.mjs";
4
+ } from "./chunk-5WIECTVZ.mjs";
5
5
  import {
6
6
  logger
7
7
  } from "./chunk-QOTLDKI4.mjs";
@@ -10,7 +10,7 @@ import {
10
10
  isMpx,
11
11
  patchMpxLoaderResolve,
12
12
  setupMpxTailwindcssRedirect
13
- } from "./chunk-SGPYGQ6Z.mjs";
13
+ } from "./chunk-DYFXLENW.mjs";
14
14
  import {
15
15
  pushConcurrentTaskFactories,
16
16
  resolveDisabledOptions,
@@ -23,14 +23,14 @@ import {
23
23
  } from "./chunk-RRHPTTCP.mjs";
24
24
  import {
25
25
  setupPatchRecorder
26
- } from "./chunk-BG6EFR2X.mjs";
26
+ } from "./chunk-NY7AYLZC.mjs";
27
27
  import {
28
28
  createDebug,
29
29
  ensureRuntimeClassSet,
30
30
  getCompilerContext,
31
31
  getRuntimeClassSetSignature,
32
32
  pluginName
33
- } from "./chunk-KTKHUVCE.mjs";
33
+ } from "./chunk-5WIECTVZ.mjs";
34
34
  import {
35
35
  getGroupedEntries
36
36
  } from "./chunk-OOHJLO5M.mjs";
package/dist/cli.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkDFA5DHMZjs = require('./chunk-DFA5DHMZ.js');
6
+ var _chunkKMARMYILjs = require('./chunk-KMARMYIL.js');
7
7
 
8
8
 
9
9
 
@@ -404,9 +404,9 @@ async function patchWorkspacePackage(workspaceRoot, dir, pkgName, options) {
404
404
  try {
405
405
  const patcher = createWorkspacePatcher(dir);
406
406
  if (options.clearCache) {
407
- await _chunkDFA5DHMZjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
407
+ await _chunkKMARMYILjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
408
408
  }
409
- const recorder = _chunkDFA5DHMZjs.createPatchTargetRecorder.call(void 0, dir, patcher, {
409
+ const recorder = _chunkKMARMYILjs.createPatchTargetRecorder.call(void 0, dir, patcher, {
410
410
  source: "cli",
411
411
  cwd: dir,
412
412
  recordTarget: options.recordTarget !== false,
@@ -415,7 +415,7 @@ async function patchWorkspacePackage(workspaceRoot, dir, pkgName, options) {
415
415
  if (_optionalChain([recorder, 'optionalAccess', _12 => _12.message])) {
416
416
  _chunk5APD2MNVjs.logger.info("[workspace] %s %s", displayName, recorder.message);
417
417
  }
418
- _chunkDFA5DHMZjs.logTailwindcssTarget.call(void 0, "cli", patcher, dir);
418
+ _chunkKMARMYILjs.logTailwindcssTarget.call(void 0, "cli", patcher, dir);
419
419
  await patcher.patch();
420
420
  if (_optionalChain([recorder, 'optionalAccess', _13 => _13.onPatched])) {
421
421
  await recorder.onPatched();
@@ -546,9 +546,9 @@ var mountOptions = {
546
546
  }
547
547
  const patcher = await createPatcherWithDefaultExtendLengthUnits(ctx);
548
548
  if (shouldClearCache) {
549
- await _chunkDFA5DHMZjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
549
+ await _chunkKMARMYILjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
550
550
  }
551
- const recorder = _chunkDFA5DHMZjs.createPatchTargetRecorder.call(void 0, ctx.cwd, patcher, {
551
+ const recorder = _chunkKMARMYILjs.createPatchTargetRecorder.call(void 0, ctx.cwd, patcher, {
552
552
  source: "cli",
553
553
  cwd: ctx.cwd,
554
554
  recordTarget: shouldRecordTarget,
@@ -557,7 +557,7 @@ var mountOptions = {
557
557
  if (_optionalChain([recorder, 'optionalAccess', _15 => _15.message])) {
558
558
  _chunk5APD2MNVjs.logger.info(recorder.message);
559
559
  }
560
- _chunkDFA5DHMZjs.logTailwindcssTarget.call(void 0, "cli", patcher, ctx.cwd);
560
+ _chunkKMARMYILjs.logTailwindcssTarget.call(void 0, "cli", patcher, ctx.cwd);
561
561
  await patcher.patch();
562
562
  if (_optionalChain([recorder, 'optionalAccess', _16 => _16.onPatched])) {
563
563
  const recordPath = await recorder.onPatched();
@@ -705,9 +705,9 @@ async function generateVscodeIntellisenseEntry(options) {
705
705
 
706
706
  // src/cli.ts
707
707
  _process2.default.title = "node (weapp-tailwindcss)";
708
- if (_semver2.default.lt(_process2.default.versions.node, _chunkDFA5DHMZjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
708
+ if (_semver2.default.lt(_process2.default.versions.node, _chunkKMARMYILjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
709
709
  _chunk5APD2MNVjs.logger.warn(
710
- `You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkDFA5DHMZjs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
710
+ `You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkKMARMYILjs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
711
711
  );
712
712
  }
713
713
  var cli = _tailwindcsspatch.createTailwindcssPatchCli.call(void 0, {
package/dist/cli.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  clearTailwindcssPatcherCache,
4
4
  createPatchTargetRecorder,
5
5
  logTailwindcssTarget
6
- } from "./chunk-KTKHUVCE.mjs";
6
+ } from "./chunk-5WIECTVZ.mjs";
7
7
  import {
8
8
  findWorkspaceRoot,
9
9
  logger
package/dist/core.js CHANGED
@@ -1,10 +1,10 @@
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 _chunkFVUZDDYHjs = require('./chunk-FVUZDDYH.js');
3
+ var _chunk3MQ44KFFjs = require('./chunk-3MQ44KFF.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkDFA5DHMZjs = require('./chunk-DFA5DHMZ.js');
7
+ var _chunkKMARMYILjs = require('./chunk-KMARMYIL.js');
8
8
  require('./chunk-5APD2MNV.js');
9
9
  require('./chunk-5U24PLVV.js');
10
10
  require('./chunk-DYLQ6UOI.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 = _chunkDFA5DHMZjs.getCompilerContext.call(void 0, options);
17
+ const opts = _chunkKMARMYILjs.getCompilerContext.call(void 0, options);
18
18
  const { templateHandler, styleHandler, jsHandler, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
19
- const patchRecorderState = _chunkFVUZDDYHjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
19
+ const patchRecorderState = _chunk3MQ44KFFjs.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 _chunkDFA5DHMZjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
35
+ runtimeSet = await _chunkKMARMYILjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
36
36
  forceRefresh: true,
37
37
  forceCollect: true
38
38
  });
@@ -44,7 +44,7 @@ function createContext(options = {}) {
44
44
  if (_optionalChain([options2, 'optionalAccess', _ => _.runtimeSet])) {
45
45
  runtimeSet = options2.runtimeSet;
46
46
  } else if (runtimeSet.size === 0) {
47
- runtimeSet = await _chunkDFA5DHMZjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
47
+ runtimeSet = await _chunkKMARMYILjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
48
48
  forceCollect: true
49
49
  });
50
50
  }
@@ -57,7 +57,7 @@ function createContext(options = {}) {
57
57
  async function transformWxml(rawWxml, options2) {
58
58
  await runtimeState.patchPromise;
59
59
  if (!_optionalChain([options2, 'optionalAccess', _2 => _2.runtimeSet]) && runtimeSet.size === 0) {
60
- runtimeSet = await _chunkDFA5DHMZjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
60
+ runtimeSet = await _chunkKMARMYILjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
61
61
  forceCollect: true
62
62
  });
63
63
  }
package/dist/core.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  setupPatchRecorder
3
- } from "./chunk-BG6EFR2X.mjs";
3
+ } from "./chunk-NY7AYLZC.mjs";
4
4
  import {
5
5
  ensureRuntimeClassSet,
6
6
  getCompilerContext
7
- } from "./chunk-KTKHUVCE.mjs";
7
+ } from "./chunk-5WIECTVZ.mjs";
8
8
  import "./chunk-QOTLDKI4.mjs";
9
9
  import "./chunk-3WUHHFLF.mjs";
10
10
  import "./chunk-OOHJLO5M.mjs";
package/dist/gulp.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQXGGATQSjs = require('./chunk-QXGGATQS.js');
3
+ var _chunkHQQN7AJQjs = require('./chunk-HQQN7AJQ.js');
4
4
  require('./chunk-LTJQUORK.js');
5
- require('./chunk-FVUZDDYH.js');
6
- require('./chunk-DFA5DHMZ.js');
5
+ require('./chunk-3MQ44KFF.js');
6
+ require('./chunk-KMARMYIL.js');
7
7
  require('./chunk-5APD2MNV.js');
8
8
  require('./chunk-5U24PLVV.js');
9
9
  require('./chunk-DYLQ6UOI.js');
10
10
  require('./chunk-DBAAU4LK.js');
11
11
 
12
12
 
13
- exports.createPlugins = _chunkQXGGATQSjs.createPlugins;
13
+ exports.createPlugins = _chunkHQQN7AJQjs.createPlugins;
package/dist/gulp.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createPlugins
3
- } from "./chunk-JZG57HLO.mjs";
3
+ } from "./chunk-NF2Q6GB2.mjs";
4
4
  import "./chunk-RRHPTTCP.mjs";
5
- import "./chunk-BG6EFR2X.mjs";
6
- import "./chunk-KTKHUVCE.mjs";
5
+ import "./chunk-NY7AYLZC.mjs";
6
+ import "./chunk-5WIECTVZ.mjs";
7
7
  import "./chunk-QOTLDKI4.mjs";
8
8
  import "./chunk-3WUHHFLF.mjs";
9
9
  import "./chunk-OOHJLO5M.mjs";
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkD3ZZ4SODjs = require('./chunk-D3ZZ4SOD.js');
5
- require('./chunk-NESY7YOD.js');
4
+ var _chunkFGCPGJ7Fjs = require('./chunk-FGCPGJ7F.js');
5
+ require('./chunk-HPQKNMUF.js');
6
6
 
7
7
 
8
- var _chunkQXGGATQSjs = require('./chunk-QXGGATQS.js');
8
+ var _chunkHQQN7AJQjs = require('./chunk-HQQN7AJQ.js');
9
9
 
10
10
 
11
- var _chunkVKW6VKJVjs = require('./chunk-VKW6VKJV.js');
11
+ var _chunk6NMS55L2js = require('./chunk-6NMS55L2.js');
12
12
  require('./chunk-IIDSY4XZ.js');
13
13
  require('./chunk-LTJQUORK.js');
14
- require('./chunk-FVUZDDYH.js');
15
- require('./chunk-DFA5DHMZ.js');
14
+ require('./chunk-3MQ44KFF.js');
15
+ require('./chunk-KMARMYIL.js');
16
16
  require('./chunk-5APD2MNV.js');
17
17
  require('./chunk-5U24PLVV.js');
18
18
  require('./chunk-DYLQ6UOI.js');
@@ -22,4 +22,4 @@ require('./chunk-DBAAU4LK.js');
22
22
 
23
23
 
24
24
 
25
- exports.UnifiedViteWeappTailwindcssPlugin = _chunkVKW6VKJVjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkD3ZZ4SODjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkQXGGATQSjs.createPlugins; exports.weappTailwindcssPackageDir = _chunkD3ZZ4SODjs.weappTailwindcssPackageDir;
25
+ exports.UnifiedViteWeappTailwindcssPlugin = _chunk6NMS55L2js.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkFGCPGJ7Fjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkHQQN7AJQjs.createPlugins; exports.weappTailwindcssPackageDir = _chunkFGCPGJ7Fjs.weappTailwindcssPackageDir;
package/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  UnifiedWebpackPluginV5,
3
3
  weappTailwindcssPackageDir
4
- } from "./chunk-5RSRTTH3.mjs";
5
- import "./chunk-SGPYGQ6Z.mjs";
4
+ } from "./chunk-YBKQ73FE.mjs";
5
+ import "./chunk-DYFXLENW.mjs";
6
6
  import {
7
7
  createPlugins
8
- } from "./chunk-JZG57HLO.mjs";
8
+ } from "./chunk-NF2Q6GB2.mjs";
9
9
  import {
10
10
  UnifiedViteWeappTailwindcssPlugin
11
- } from "./chunk-NPZ5M2RY.mjs";
11
+ } from "./chunk-DDHCDR2W.mjs";
12
12
  import "./chunk-F2CKKG6Q.mjs";
13
13
  import "./chunk-RRHPTTCP.mjs";
14
- import "./chunk-BG6EFR2X.mjs";
15
- import "./chunk-KTKHUVCE.mjs";
14
+ import "./chunk-NY7AYLZC.mjs";
15
+ import "./chunk-5WIECTVZ.mjs";
16
16
  import "./chunk-QOTLDKI4.mjs";
17
17
  import "./chunk-3WUHHFLF.mjs";
18
18
  import "./chunk-OOHJLO5M.mjs";
package/dist/vite.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkVKW6VKJVjs = require('./chunk-VKW6VKJV.js');
3
+ var _chunk6NMS55L2js = require('./chunk-6NMS55L2.js');
4
4
  require('./chunk-IIDSY4XZ.js');
5
5
  require('./chunk-LTJQUORK.js');
6
- require('./chunk-FVUZDDYH.js');
7
- require('./chunk-DFA5DHMZ.js');
6
+ require('./chunk-3MQ44KFF.js');
7
+ require('./chunk-KMARMYIL.js');
8
8
  require('./chunk-5APD2MNV.js');
9
9
  require('./chunk-5U24PLVV.js');
10
10
  require('./chunk-DYLQ6UOI.js');
11
11
  require('./chunk-DBAAU4LK.js');
12
12
 
13
13
 
14
- exports.UnifiedViteWeappTailwindcssPlugin = _chunkVKW6VKJVjs.UnifiedViteWeappTailwindcssPlugin;
14
+ exports.UnifiedViteWeappTailwindcssPlugin = _chunk6NMS55L2js.UnifiedViteWeappTailwindcssPlugin;
package/dist/vite.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  UnifiedViteWeappTailwindcssPlugin
3
- } from "./chunk-NPZ5M2RY.mjs";
3
+ } from "./chunk-DDHCDR2W.mjs";
4
4
  import "./chunk-F2CKKG6Q.mjs";
5
5
  import "./chunk-RRHPTTCP.mjs";
6
- import "./chunk-BG6EFR2X.mjs";
7
- import "./chunk-KTKHUVCE.mjs";
6
+ import "./chunk-NY7AYLZC.mjs";
7
+ import "./chunk-5WIECTVZ.mjs";
8
8
  import "./chunk-QOTLDKI4.mjs";
9
9
  import "./chunk-3WUHHFLF.mjs";
10
10
  import "./chunk-OOHJLO5M.mjs";
package/dist/webpack.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkD3ZZ4SODjs = require('./chunk-D3ZZ4SOD.js');
5
- require('./chunk-NESY7YOD.js');
4
+ var _chunkFGCPGJ7Fjs = require('./chunk-FGCPGJ7F.js');
5
+ require('./chunk-HPQKNMUF.js');
6
6
  require('./chunk-IIDSY4XZ.js');
7
7
  require('./chunk-LTJQUORK.js');
8
- require('./chunk-FVUZDDYH.js');
9
- require('./chunk-DFA5DHMZ.js');
8
+ require('./chunk-3MQ44KFF.js');
9
+ require('./chunk-KMARMYIL.js');
10
10
  require('./chunk-5APD2MNV.js');
11
11
  require('./chunk-5U24PLVV.js');
12
12
  require('./chunk-DYLQ6UOI.js');
@@ -14,4 +14,4 @@ require('./chunk-DBAAU4LK.js');
14
14
 
15
15
 
16
16
 
17
- exports.UnifiedWebpackPluginV5 = _chunkD3ZZ4SODjs.UnifiedWebpackPluginV5; exports.weappTailwindcssPackageDir = _chunkD3ZZ4SODjs.weappTailwindcssPackageDir;
17
+ exports.UnifiedWebpackPluginV5 = _chunkFGCPGJ7Fjs.UnifiedWebpackPluginV5; exports.weappTailwindcssPackageDir = _chunkFGCPGJ7Fjs.weappTailwindcssPackageDir;
package/dist/webpack.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  UnifiedWebpackPluginV5,
3
3
  weappTailwindcssPackageDir
4
- } from "./chunk-5RSRTTH3.mjs";
5
- import "./chunk-SGPYGQ6Z.mjs";
4
+ } from "./chunk-YBKQ73FE.mjs";
5
+ import "./chunk-DYFXLENW.mjs";
6
6
  import "./chunk-F2CKKG6Q.mjs";
7
7
  import "./chunk-RRHPTTCP.mjs";
8
- import "./chunk-BG6EFR2X.mjs";
9
- import "./chunk-KTKHUVCE.mjs";
8
+ import "./chunk-NY7AYLZC.mjs";
9
+ import "./chunk-5WIECTVZ.mjs";
10
10
  import "./chunk-QOTLDKI4.mjs";
11
11
  import "./chunk-3WUHHFLF.mjs";
12
12
  import "./chunk-OOHJLO5M.mjs";
package/dist/webpack4.js CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- var _chunkNESY7YODjs = require('./chunk-NESY7YOD.js');
13
+ var _chunkHPQKNMUFjs = require('./chunk-HPQKNMUF.js');
14
14
 
15
15
 
16
16
 
@@ -23,14 +23,14 @@ var _chunkIIDSY4XZjs = require('./chunk-IIDSY4XZ.js');
23
23
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
24
24
 
25
25
 
26
- var _chunkFVUZDDYHjs = require('./chunk-FVUZDDYH.js');
26
+ var _chunk3MQ44KFFjs = require('./chunk-3MQ44KFF.js');
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
32
 
33
- var _chunkDFA5DHMZjs = require('./chunk-DFA5DHMZ.js');
33
+ var _chunkKMARMYILjs = require('./chunk-KMARMYIL.js');
34
34
  require('./chunk-5APD2MNV.js');
35
35
  require('./chunk-5U24PLVV.js');
36
36
 
@@ -53,7 +53,7 @@ function setupWebpackV4EmitHook(options) {
53
53
  runtimeState,
54
54
  debug: debug2
55
55
  } = options;
56
- compiler.hooks.emit.tapPromise(_chunkDFA5DHMZjs.pluginName, async (compilation) => {
56
+ compiler.hooks.emit.tapPromise(_chunkKMARMYILjs.pluginName, async (compilation) => {
57
57
  await runtimeState.patchPromise;
58
58
  compilerOptions.onStart();
59
59
  debug2("start");
@@ -62,7 +62,7 @@ function setupWebpackV4EmitHook(options) {
62
62
  compilerOptions.cache.calcHashValueChanged(chunk.id, chunk.hash);
63
63
  }
64
64
  }
65
- const assetHashByChunk = _chunkNESY7YODjs.createAssetHashByChunkMap.call(void 0, compilation.chunks);
65
+ const assetHashByChunk = _chunkHPQKNMUFjs.createAssetHashByChunkMap.call(void 0, compilation.chunks);
66
66
  const assets = compilation.assets;
67
67
  const entries = Object.entries(assets);
68
68
  const outputDir = _optionalChain([compiler, 'access', _ => _.options, 'optionalAccess', _2 => _2.output, 'optionalAccess', _3 => _3.path]) ? _path2.default.resolve(compiler.options.output.path) : _process2.default.cwd();
@@ -118,7 +118,7 @@ function setupWebpackV4EmitHook(options) {
118
118
  }
119
119
  };
120
120
  const groupedEntries = _chunkDYLQ6UOIjs.getGroupedEntries.call(void 0, entries, compilerOptions);
121
- const runtimeSet = await _chunkDFA5DHMZjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
121
+ const runtimeSet = await _chunkKMARMYILjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
122
122
  forceCollect: false,
123
123
  allowEmpty: false
124
124
  });
@@ -161,7 +161,7 @@ function setupWebpackV4EmitHook(options) {
161
161
  const jsTaskFactories = [];
162
162
  if (Array.isArray(groupedEntries.js)) {
163
163
  for (const [file] of groupedEntries.js) {
164
- const cacheKey = _chunkNESY7YODjs.getCacheKey.call(void 0, file);
164
+ const cacheKey = _chunkHPQKNMUFjs.getCacheKey.call(void 0, file);
165
165
  const assetSource = compilation.assets[file];
166
166
  if (!assetSource) {
167
167
  continue;
@@ -270,9 +270,9 @@ function setupWebpackV4Loaders(options) {
270
270
  getClassSetInLoader,
271
271
  debug: debug2
272
272
  } = options;
273
- const isMpxApp = _chunkNESY7YODjs.isMpx.call(void 0, appType);
273
+ const isMpxApp = _chunkHPQKNMUFjs.isMpx.call(void 0, appType);
274
274
  if (shouldRewriteCssImports && isMpxApp) {
275
- _chunkNESY7YODjs.ensureMpxTailwindcssAliases.call(void 0, compiler, weappTailwindcssPackageDir2);
275
+ _chunkHPQKNMUFjs.ensureMpxTailwindcssAliases.call(void 0, compiler, weappTailwindcssPackageDir2);
276
276
  }
277
277
  const runtimeClassSetLoader = _nullishCoalesce(runtimeLoaderPath, () => ( _path2.default.resolve(__dirname, "./weapp-tw-runtime-classset-loader.js")));
278
278
  const runtimeCssImportRewriteLoader = shouldRewriteCssImports ? _nullishCoalesce(runtimeCssImportRewriteLoaderPath, () => ( _path2.default.resolve(__dirname, "./weapp-tw-css-import-rewrite-loader.js"))) : void 0;
@@ -285,12 +285,12 @@ function setupWebpackV4Loaders(options) {
285
285
  const classSetLoaderOptions = {
286
286
  getClassSet: getClassSetInLoader
287
287
  };
288
- const { findRewriteAnchor, findClassSetAnchor } = _chunkNESY7YODjs.createLoaderAnchorFinders.call(void 0, appType);
288
+ const { findRewriteAnchor, findClassSetAnchor } = _chunkHPQKNMUFjs.createLoaderAnchorFinders.call(void 0, appType);
289
289
  const cssImportRewriteLoaderOptions = runtimeLoaderRewriteOptions ? {
290
290
  rewriteCssImports: runtimeLoaderRewriteOptions
291
291
  } : void 0;
292
292
  if (runtimeCssImportRewriteLoader && shouldRewriteCssImports && cssImportRewriteLoaderOptions && isMpxApp) {
293
- _chunkNESY7YODjs.injectMpxCssRewritePreRules.call(void 0, compiler, runtimeCssImportRewriteLoader, cssImportRewriteLoaderOptions);
293
+ _chunkHPQKNMUFjs.injectMpxCssRewritePreRules.call(void 0, compiler, runtimeCssImportRewriteLoader, cssImportRewriteLoaderOptions);
294
294
  }
295
295
  const createRuntimeClassSetLoaderEntry = () => ({
296
296
  loader: runtimeClassSetLoader,
@@ -309,19 +309,19 @@ function setupWebpackV4Loaders(options) {
309
309
  type: null
310
310
  };
311
311
  };
312
- compiler.hooks.compilation.tap(_chunkDFA5DHMZjs.pluginName, (compilation) => {
313
- compilation.hooks.normalModuleLoader.tap(_chunkDFA5DHMZjs.pluginName, (_loaderContext, module) => {
312
+ compiler.hooks.compilation.tap(_chunkKMARMYILjs.pluginName, (compilation) => {
313
+ compilation.hooks.normalModuleLoader.tap(_chunkKMARMYILjs.pluginName, (_loaderContext, module) => {
314
314
  const hasRuntimeLoader = runtimeClassSetLoaderExists || runtimeCssImportRewriteLoaderExists;
315
315
  if (!hasRuntimeLoader) {
316
316
  return;
317
317
  }
318
- if (shouldRewriteCssImports && _chunkNESY7YODjs.isMpx.call(void 0, appType) && typeof _loaderContext.resolve === "function") {
319
- _chunkNESY7YODjs.patchMpxLoaderResolve.call(void 0, _loaderContext, weappTailwindcssPackageDir2, true);
318
+ if (shouldRewriteCssImports && _chunkHPQKNMUFjs.isMpx.call(void 0, appType) && typeof _loaderContext.resolve === "function") {
319
+ _chunkHPQKNMUFjs.patchMpxLoaderResolve.call(void 0, _loaderContext, weappTailwindcssPackageDir2, true);
320
320
  }
321
321
  const loaderEntries = module.loaders || [];
322
322
  let rewriteAnchorIdx = findRewriteAnchor(loaderEntries);
323
323
  const classSetAnchorIdx = findClassSetAnchor(loaderEntries);
324
- const isCssModule = _chunkNESY7YODjs.isCssLikeModuleResource.call(void 0, module.resource, compilerOptions.cssMatcher, appType);
324
+ const isCssModule = _chunkHPQKNMUFjs.isCssLikeModuleResource.call(void 0, module.resource, compilerOptions.cssMatcher, appType);
325
325
  if (_process2.default.env.WEAPP_TW_LOADER_DEBUG && isCssModule) {
326
326
  debug2("loader hook css module: %s loaders=%o anchors=%o", module.resource, loaderEntries.map((x) => x.loader), { rewriteAnchorIdx, classSetAnchorIdx });
327
327
  }
@@ -355,7 +355,7 @@ function setupWebpackV4Loaders(options) {
355
355
  rewriteAnchorIdx = findRewriteAnchor(loaderEntries);
356
356
  }
357
357
  }
358
- if (runtimeClassSetLoaderExists && !_chunkNESY7YODjs.hasLoaderEntry.call(void 0, loaderEntries, runtimeClassSetLoader)) {
358
+ if (runtimeClassSetLoaderExists && !_chunkHPQKNMUFjs.hasLoaderEntry.call(void 0, loaderEntries, runtimeClassSetLoader)) {
359
359
  const anchorIndex = findClassSetAnchor(loaderEntries);
360
360
  if (anchorIndex === -1) {
361
361
  anchorlessInsert(createRuntimeClassSetLoaderEntry(), "before");
@@ -369,11 +369,11 @@ function setupWebpackV4Loaders(options) {
369
369
  }
370
370
 
371
371
  // src/bundlers/webpack/BaseUnifiedPlugin/v4.ts
372
- var debug = _chunkDFA5DHMZjs.createDebug.call(void 0, );
372
+ var debug = _chunkKMARMYILjs.createDebug.call(void 0, );
373
373
  var weappTailwindcssPackageDir = _chunkIIDSY4XZjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
374
374
  var UnifiedWebpackPluginV4 = class {
375
375
  constructor(options = {}) {
376
- this.options = _chunkDFA5DHMZjs.getCompilerContext.call(void 0, options);
376
+ this.options = _chunkKMARMYILjs.getCompilerContext.call(void 0, options);
377
377
  this.appType = this.options.appType;
378
378
  }
379
379
  apply(compiler) {
@@ -389,19 +389,19 @@ var UnifiedWebpackPluginV4 = class {
389
389
  const disabledOptions = _chunkIIDSY4XZjs.resolveDisabledOptions.call(void 0, disabled);
390
390
  const isTailwindcssV4 = (_nullishCoalesce(initialTwPatcher.majorVersion, () => ( 0))) >= 4;
391
391
  const shouldRewriteCssImports = isTailwindcssV4 && this.options.rewriteCssImports !== false && !disabledOptions.rewriteCssImports;
392
- const isMpxApp = _chunkNESY7YODjs.isMpx.call(void 0, this.appType);
392
+ const isMpxApp = _chunkHPQKNMUFjs.isMpx.call(void 0, this.appType);
393
393
  if (shouldRewriteCssImports) {
394
- _chunkNESY7YODjs.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
394
+ _chunkHPQKNMUFjs.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
395
395
  pkgDir: weappTailwindcssPackageDir,
396
396
  enabled: true,
397
397
  appType: this.appType
398
398
  });
399
- _chunkNESY7YODjs.setupMpxTailwindcssRedirect.call(void 0, weappTailwindcssPackageDir, isMpxApp);
399
+ _chunkHPQKNMUFjs.setupMpxTailwindcssRedirect.call(void 0, weappTailwindcssPackageDir, isMpxApp);
400
400
  }
401
401
  if (disabledOptions.plugin) {
402
402
  return;
403
403
  }
404
- const patchRecorderState = _chunkFVUZDDYHjs.setupPatchRecorder.call(void 0, initialTwPatcher, this.options.tailwindcssBasedir, {
404
+ const patchRecorderState = _chunk3MQ44KFFjs.setupPatchRecorder.call(void 0, initialTwPatcher, this.options.tailwindcssBasedir, {
405
405
  source: "runtime",
406
406
  cwd: _nullishCoalesce(this.options.tailwindcssBasedir, () => ( _process2.default.cwd()))
407
407
  });
@@ -413,17 +413,17 @@ var UnifiedWebpackPluginV4 = class {
413
413
  };
414
414
  let runtimeSetPrepared = false;
415
415
  let runtimeSetSignature;
416
- compiler.hooks.compilation.tap(_chunkDFA5DHMZjs.pluginName, () => {
416
+ compiler.hooks.compilation.tap(_chunkKMARMYILjs.pluginName, () => {
417
417
  runtimeSetPrepared = false;
418
418
  });
419
419
  async function getClassSetInLoader() {
420
420
  if (runtimeSetPrepared) {
421
421
  return;
422
422
  }
423
- const signature = _chunkDFA5DHMZjs.getRuntimeClassSetSignature.call(void 0, runtimeState.twPatcher);
423
+ const signature = _chunkKMARMYILjs.getRuntimeClassSetSignature.call(void 0, runtimeState.twPatcher);
424
424
  const forceRefresh = signature !== runtimeSetSignature;
425
425
  runtimeSetPrepared = true;
426
- await _chunkDFA5DHMZjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
426
+ await _chunkKMARMYILjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
427
427
  forceRefresh,
428
428
  forceCollect: true,
429
429
  clearCache: forceRefresh,
package/dist/webpack4.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  isMpx,
11
11
  patchMpxLoaderResolve,
12
12
  setupMpxTailwindcssRedirect
13
- } from "./chunk-SGPYGQ6Z.mjs";
13
+ } from "./chunk-DYFXLENW.mjs";
14
14
  import {
15
15
  pushConcurrentTaskFactories,
16
16
  resolveDisabledOptions,
@@ -23,14 +23,14 @@ import {
23
23
  } from "./chunk-RRHPTTCP.mjs";
24
24
  import {
25
25
  setupPatchRecorder
26
- } from "./chunk-BG6EFR2X.mjs";
26
+ } from "./chunk-NY7AYLZC.mjs";
27
27
  import {
28
28
  createDebug,
29
29
  ensureRuntimeClassSet,
30
30
  getCompilerContext,
31
31
  getRuntimeClassSetSignature,
32
32
  pluginName
33
- } from "./chunk-KTKHUVCE.mjs";
33
+ } from "./chunk-5WIECTVZ.mjs";
34
34
  import "./chunk-QOTLDKI4.mjs";
35
35
  import "./chunk-3WUHHFLF.mjs";
36
36
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weapp-tailwindcss",
3
- "version": "4.10.0-beta.5",
3
+ "version": "4.10.0-beta.7",
4
4
  "description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
@@ -214,6 +214,6 @@
214
214
  "lint:fix": "eslint ./src --fix",
215
215
  "postinstall": "node bin/weapp-tailwindcss.js patch",
216
216
  "bench:vite-dev-hmr": "tsx scripts/vite-dev-hmr-bench.ts",
217
- "test:watch-hmr": "tsx scripts/watch-hmr-regression.ts"
217
+ "test:watch-hmr": "tsx scripts/watch-hmr-regression/index.ts"
218
218
  }
219
219
  }