tailwind-styled-v4 5.0.37 → 5.0.38

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 (119) hide show
  1. package/dist/analyzer.js +213 -161
  2. package/dist/analyzer.js.map +1 -1
  3. package/dist/analyzer.mjs +118 -82
  4. package/dist/analyzer.mjs.map +1 -1
  5. package/dist/animate.js +131 -87
  6. package/dist/animate.js.map +1 -1
  7. package/dist/animate.mjs +28 -14
  8. package/dist/animate.mjs.map +1 -1
  9. package/dist/atomic.js +105 -68
  10. package/dist/atomic.js.map +1 -1
  11. package/dist/atomic.mjs +40 -13
  12. package/dist/atomic.mjs.map +1 -1
  13. package/dist/cli.js +577 -426
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cli.mjs +466 -304
  16. package/dist/cli.mjs.map +1 -1
  17. package/dist/compiler.js +826 -508
  18. package/dist/compiler.js.map +1 -1
  19. package/dist/compiler.mjs +287 -29
  20. package/dist/compiler.mjs.map +1 -1
  21. package/dist/dashboard.js +71 -41
  22. package/dist/dashboard.js.map +1 -1
  23. package/dist/dashboard.mjs +12 -6
  24. package/dist/dashboard.mjs.map +1 -1
  25. package/dist/devtools.js +333 -289
  26. package/dist/devtools.js.map +1 -1
  27. package/dist/devtools.mjs +26 -11
  28. package/dist/devtools.mjs.map +1 -1
  29. package/dist/engine.js +679 -502
  30. package/dist/engine.js.map +1 -1
  31. package/dist/engine.mjs +467 -307
  32. package/dist/engine.mjs.map +1 -1
  33. package/dist/index.d.mts +145 -319
  34. package/dist/index.d.ts +145 -319
  35. package/dist/index.js +1329 -7441
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +1266 -7385
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/next.js +318 -243
  40. package/dist/next.js.map +1 -1
  41. package/dist/next.mjs +256 -181
  42. package/dist/next.mjs.map +1 -1
  43. package/dist/plugin-api.js +93 -49
  44. package/dist/plugin-api.js.map +1 -1
  45. package/dist/plugin-api.mjs +26 -6
  46. package/dist/plugin-api.mjs.map +1 -1
  47. package/dist/plugin-registry.js +67 -40
  48. package/dist/plugin-registry.js.map +1 -1
  49. package/dist/plugin-registry.mjs +14 -10
  50. package/dist/plugin-registry.mjs.map +1 -1
  51. package/dist/plugin.js +101 -53
  52. package/dist/plugin.js.map +1 -1
  53. package/dist/plugin.mjs +30 -6
  54. package/dist/plugin.mjs.map +1 -1
  55. package/dist/preset.js +47 -15
  56. package/dist/preset.js.map +1 -1
  57. package/dist/preset.mjs +13 -5
  58. package/dist/preset.mjs.map +1 -1
  59. package/dist/rspack.js +82 -50
  60. package/dist/rspack.js.map +1 -1
  61. package/dist/rspack.mjs +20 -12
  62. package/dist/rspack.mjs.map +1 -1
  63. package/dist/runtime-css.js +62 -24
  64. package/dist/runtime-css.js.map +1 -1
  65. package/dist/runtime-css.mjs +15 -7
  66. package/dist/runtime-css.mjs.map +1 -1
  67. package/dist/runtime.js +97 -44
  68. package/dist/runtime.js.map +1 -1
  69. package/dist/runtime.mjs +31 -8
  70. package/dist/runtime.mjs.map +1 -1
  71. package/dist/scanner.js +163 -120
  72. package/dist/scanner.js.map +1 -1
  73. package/dist/scanner.mjs +67 -39
  74. package/dist/scanner.mjs.map +1 -1
  75. package/dist/shared.js +441 -295
  76. package/dist/shared.js.map +1 -1
  77. package/dist/shared.mjs +253 -122
  78. package/dist/shared.mjs.map +1 -1
  79. package/dist/storybook-addon.js +39 -10
  80. package/dist/storybook-addon.js.map +1 -1
  81. package/dist/storybook-addon.mjs +8 -3
  82. package/dist/storybook-addon.mjs.map +1 -1
  83. package/dist/svelte.js +88 -64
  84. package/dist/svelte.js.map +1 -1
  85. package/dist/svelte.mjs +28 -13
  86. package/dist/svelte.mjs.map +1 -1
  87. package/dist/syntax.js +68 -37
  88. package/dist/syntax.js.map +1 -1
  89. package/dist/syntax.mjs +8 -7
  90. package/dist/syntax.mjs.map +1 -1
  91. package/dist/testing.js +55 -18
  92. package/dist/testing.js.map +1 -1
  93. package/dist/testing.mjs +16 -3
  94. package/dist/testing.mjs.map +1 -1
  95. package/dist/theme.js +131 -74
  96. package/dist/theme.js.map +1 -1
  97. package/dist/theme.mjs +42 -13
  98. package/dist/theme.mjs.map +1 -1
  99. package/dist/turbopackLoader.js +150 -116
  100. package/dist/turbopackLoader.js.map +1 -1
  101. package/dist/turbopackLoader.mjs +124 -81
  102. package/dist/turbopackLoader.mjs.map +1 -1
  103. package/dist/tw.js +560 -421
  104. package/dist/tw.js.map +1 -1
  105. package/dist/tw.mjs +460 -302
  106. package/dist/tw.mjs.map +1 -1
  107. package/dist/vite.js +561 -446
  108. package/dist/vite.js.map +1 -1
  109. package/dist/vite.mjs +433 -321
  110. package/dist/vite.mjs.map +1 -1
  111. package/dist/vue.js +95 -70
  112. package/dist/vue.js.map +1 -1
  113. package/dist/vue.mjs +30 -14
  114. package/dist/vue.mjs.map +1 -1
  115. package/dist/webpackLoader.js +110 -78
  116. package/dist/webpackLoader.js.map +1 -1
  117. package/dist/webpackLoader.mjs +45 -17
  118. package/dist/webpackLoader.mjs.map +1 -1
  119. package/package.json +3 -1
@@ -1,45 +1,37 @@
1
- 'use strict';
2
-
3
- var module$1 = require('module');
4
- var fs = require('fs');
5
- var path = require('path');
6
- require('crypto');
7
- var url = require('url');
8
- var zod = require('zod');
9
-
10
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
11
- function _interopNamespace(e) {
12
- if (e && e.__esModule) return e;
13
- var n = Object.create(null);
14
- if (e) {
15
- Object.keys(e).forEach(function (k) {
16
- if (k !== 'default') {
17
- var d = Object.getOwnPropertyDescriptor(e, k);
18
- Object.defineProperty(n, k, d.get ? d : {
19
- enumerable: true,
20
- get: function () { return e[k]; }
21
- });
22
- }
23
- });
24
- }
25
- n.default = e;
26
- return Object.freeze(n);
27
- }
28
-
29
- var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
30
- var path__namespace = /*#__PURE__*/_interopNamespace(path);
31
-
32
1
  /* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
33
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
34
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
35
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
36
- }) : x)(function(x) {
37
- if (typeof require !== "undefined") return require.apply(this, arguments);
38
- throw Error('Dynamic require of "' + x + '" is not supported');
39
- });
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
40
9
  var __esm = (fn, res) => function __init() {
41
10
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
42
11
  };
12
+ var __export = (target, all) => {
13
+ for (var name in all)
14
+ __defProp(target, name, { get: all[name], enumerable: true });
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from))
19
+ if (!__hasOwnProp.call(to, key) && key !== except)
20
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
+ mod
31
+ ));
32
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
+
34
+ // packages/domain/shared/src/native-resolution.ts
43
35
  function platformKey() {
44
36
  if (isBrowser) return "browser";
45
37
  return `${process.platform}-${process.arch}`;
@@ -55,7 +47,7 @@ function resolveNativeBinary(runtimeDir) {
55
47
  }
56
48
  const envPath = process.env.TW_NATIVE_PATH?.trim();
57
49
  if (envPath) {
58
- if (fs__namespace.existsSync(envPath)) {
50
+ if (fs.existsSync(envPath)) {
59
51
  return { path: envPath, source: "env", platform, tried };
60
52
  }
61
53
  tried.push(`env:${envPath} (not found)`);
@@ -64,7 +56,7 @@ function resolveNativeBinary(runtimeDir) {
64
56
  for (const pkg of prebuiltPkgs) {
65
57
  try {
66
58
  const candidate = _require.resolve(`${pkg}/tailwind_styled_parser.node`);
67
- if (fs__namespace.existsSync(candidate)) {
59
+ if (fs.existsSync(candidate)) {
68
60
  return { path: candidate, source: "prebuilt", platform, tried };
69
61
  }
70
62
  tried.push(`prebuilt:${pkg} (resolved but missing)`);
@@ -75,13 +67,13 @@ function resolveNativeBinary(runtimeDir) {
75
67
  const napiPlatform = platform === "linux-x64" ? "linux-x64-gnu" : platform === "linux-arm64" ? "linux-arm64-gnu" : platform;
76
68
  const BINARY_NAMES_SELF = ["tailwind-styled-native", "tailwind_styled_parser"];
77
69
  if (runtimeDir) {
78
- for (const depth of ["..", path__namespace.join("..", ".."), path__namespace.join("..", "..", "..")]) {
79
- const pkgRoot = path__namespace.resolve(runtimeDir, depth);
70
+ for (const depth of ["..", path.join("..", ".."), path.join("..", "..", "..")]) {
71
+ const pkgRoot = path.resolve(runtimeDir, depth);
80
72
  for (const bin of BINARY_NAMES_SELF) {
81
73
  for (const suffix of ["", `.${platform}`, `.${napiPlatform}`]) {
82
- const candidate = path__namespace.resolve(pkgRoot, "native", `${bin}${suffix}.node`);
74
+ const candidate = path.resolve(pkgRoot, "native", `${bin}${suffix}.node`);
83
75
  tried.push(`self-bundled:${candidate}`);
84
- if (fs__namespace.existsSync(candidate)) {
76
+ if (fs.existsSync(candidate)) {
85
77
  return { path: candidate, source: "prebuilt", platform, tried };
86
78
  }
87
79
  }
@@ -93,39 +85,44 @@ function resolveNativeBinary(runtimeDir) {
93
85
  const BINARY_NAMES = ["tailwind-styled-native", "tailwind_styled_parser"];
94
86
  const localCandidates = [];
95
87
  for (const bin of BINARY_NAMES) {
96
- localCandidates.push(path__namespace.resolve(base, `${bin}.node`));
97
- localCandidates.push(path__namespace.resolve(base, "..", `${bin}.node`));
98
- localCandidates.push(path__namespace.resolve(base, `${bin}.${platform}.node`));
99
- localCandidates.push(path__namespace.resolve(base, `${bin}.${napiPlatform}.node`));
88
+ localCandidates.push(path.resolve(base, `${bin}.node`));
89
+ localCandidates.push(path.resolve(base, "..", `${bin}.node`));
90
+ localCandidates.push(path.resolve(base, `${bin}.${platform}.node`));
91
+ localCandidates.push(path.resolve(base, `${bin}.${napiPlatform}.node`));
100
92
  }
101
93
  for (const startDir of [cwd, base]) {
102
94
  let dir = startDir;
103
95
  for (let i = 0; i < 6; i++) {
104
- const nativeDir = path__namespace.resolve(dir, "native");
96
+ const nativeDir = path.resolve(dir, "native");
105
97
  for (const bin of BINARY_NAMES) {
106
- localCandidates.push(path__namespace.resolve(nativeDir, `${bin}.node`));
107
- localCandidates.push(path__namespace.resolve(nativeDir, `${bin}.${platform}.node`));
108
- localCandidates.push(path__namespace.resolve(nativeDir, `${bin}.${napiPlatform}.node`));
109
- localCandidates.push(path__namespace.resolve(nativeDir, "target", "release", `${bin}.node`));
98
+ localCandidates.push(path.resolve(nativeDir, `${bin}.node`));
99
+ localCandidates.push(path.resolve(nativeDir, `${bin}.${platform}.node`));
100
+ localCandidates.push(path.resolve(nativeDir, `${bin}.${napiPlatform}.node`));
101
+ localCandidates.push(path.resolve(nativeDir, "target", "release", `${bin}.node`));
110
102
  }
111
- const parent = path__namespace.resolve(dir, "..");
103
+ const parent = path.resolve(dir, "..");
112
104
  if (parent === dir) break;
113
105
  dir = parent;
114
106
  }
115
107
  }
116
108
  for (const candidate of localCandidates) {
117
109
  tried.push(`local:${candidate}`);
118
- if (fs__namespace.existsSync(candidate)) {
110
+ if (fs.existsSync(candidate)) {
119
111
  return { path: candidate, source: "local", platform, tried };
120
112
  }
121
113
  }
122
114
  return { path: null, source: "not-found", platform, tried };
123
115
  }
124
- var isBrowser, _require, PLATFORM_MAP;
116
+ var import_node_module, fs, path, import_meta, isBrowser, _require, PLATFORM_MAP;
125
117
  var init_native_resolution = __esm({
126
118
  "packages/domain/shared/src/native-resolution.ts"() {
119
+ "use strict";
120
+ import_node_module = require("module");
121
+ fs = __toESM(require("fs"));
122
+ path = __toESM(require("path"));
123
+ import_meta = {};
127
124
  isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
128
- _require = typeof __require !== "undefined" ? __require : module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('webpackLoader.js', document.baseURI).href)));
125
+ _require = typeof require !== "undefined" ? require : (0, import_node_module.createRequire)(import_meta.url);
129
126
  PLATFORM_MAP = {
130
127
  "linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
131
128
  "linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
@@ -136,26 +133,39 @@ var init_native_resolution = __esm({
136
133
  };
137
134
  }
138
135
  });
136
+
137
+ // packages/domain/shared/src/index.ts
139
138
  function resolveRuntimeDir(dir, importMetaUrl) {
139
+ if (dir) return import_node_path.default.resolve(dir);
140
140
  try {
141
- return path__namespace.default.dirname(url.fileURLToPath(importMetaUrl));
141
+ return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl));
142
142
  } catch {
143
143
  return process.cwd();
144
144
  }
145
145
  }
146
+ var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2, import_meta2, _require2;
146
147
  var init_src = __esm({
147
148
  "packages/domain/shared/src/index.ts"() {
149
+ "use strict";
150
+ import_node_crypto = require("crypto");
151
+ import_node_fs = __toESM(require("fs"));
152
+ import_node_path = __toESM(require("path"));
153
+ import_node_url = require("url");
154
+ import_node_module2 = require("module");
148
155
  init_native_resolution();
149
- module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('webpackLoader.js', document.baseURI).href)));
156
+ import_meta2 = {};
157
+ _require2 = (0, import_node_module2.createRequire)(import_meta2.url);
150
158
  }
151
159
  });
152
160
 
153
161
  // packages/domain/compiler/src/nativeBridge.ts
154
- var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
162
+ var import_meta3, _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
155
163
  var init_nativeBridge = __esm({
156
164
  "packages/domain/compiler/src/nativeBridge.ts"() {
165
+ "use strict";
157
166
  init_src();
158
- _loadNative = (path6) => __require(path6);
167
+ import_meta3 = {};
168
+ _loadNative = (path6) => require(path6);
159
169
  log = (...args) => {
160
170
  if (process.env.DEBUG?.includes("compiler:native")) {
161
171
  console.log("[compiler:native]", ...args);
@@ -181,7 +191,7 @@ var init_nativeBridge = __esm({
181
191
  }
182
192
  bridgeLoadAttempted = true;
183
193
  try {
184
- const runtimeDir = resolveRuntimeDir(void 0, (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('webpackLoader.js', document.baseURI).href)));
194
+ const runtimeDir = resolveRuntimeDir(void 0, import_meta3.url);
185
195
  const result = resolveNativeBinary(runtimeDir);
186
196
  if (result.path && result.path.endsWith(".node")) {
187
197
  try {
@@ -252,38 +262,46 @@ Tried paths: ${result.tried.join("\n")}`);
252
262
  // packages/domain/compiler/src/compiler/index.ts
253
263
  var init_compiler = __esm({
254
264
  "packages/domain/compiler/src/compiler/index.ts"() {
265
+ "use strict";
255
266
  }
256
267
  });
257
268
 
258
269
  // packages/domain/compiler/src/parser/index.ts
259
270
  var init_parser = __esm({
260
271
  "packages/domain/compiler/src/parser/index.ts"() {
272
+ "use strict";
261
273
  }
262
274
  });
263
275
 
264
276
  // packages/domain/compiler/src/analyzer/index.ts
265
277
  var init_analyzer = __esm({
266
278
  "packages/domain/compiler/src/analyzer/index.ts"() {
279
+ "use strict";
267
280
  }
268
281
  });
269
282
 
270
283
  // packages/domain/compiler/src/cache/index.ts
271
284
  var init_cache = __esm({
272
285
  "packages/domain/compiler/src/cache/index.ts"() {
286
+ "use strict";
273
287
  }
274
288
  });
275
289
 
276
290
  // packages/domain/compiler/src/redis/index.ts
277
291
  var init_redis = __esm({
278
292
  "packages/domain/compiler/src/redis/index.ts"() {
293
+ "use strict";
279
294
  }
280
295
  });
281
296
 
282
297
  // packages/domain/compiler/src/watch/index.ts
283
298
  var init_watch = __esm({
284
299
  "packages/domain/compiler/src/watch/index.ts"() {
300
+ "use strict";
285
301
  }
286
302
  });
303
+
304
+ // packages/domain/compiler/src/index.ts
287
305
  function _layoutClassesToCss(classes) {
288
306
  const native = getNativeBridge();
289
307
  if (!native?.layoutClassesToCss) {
@@ -318,9 +336,13 @@ function extractContainerCssFromSource(source) {
318
336
  }
319
337
  return rules.join("\n");
320
338
  }
321
- var transformSource, _CONTAINER_BREAKPOINTS, runLoaderTransform, shouldSkipFile, registerFileClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
339
+ var import_node_fs2, import_node_path2, import_node_module3, import_meta4, _require3, transformSource, _CONTAINER_BREAKPOINTS, runLoaderTransform, shouldSkipFile, registerFileClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
322
340
  var init_src2 = __esm({
323
341
  "packages/domain/compiler/src/index.ts"() {
342
+ "use strict";
343
+ import_node_fs2 = __toESM(require("fs"), 1);
344
+ import_node_path2 = __toESM(require("path"), 1);
345
+ import_node_module3 = require("module");
324
346
  init_nativeBridge();
325
347
  init_compiler();
326
348
  init_parser();
@@ -328,7 +350,8 @@ var init_src2 = __esm({
328
350
  init_cache();
329
351
  init_redis();
330
352
  init_watch();
331
- module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('webpackLoader.js', document.baseURI).href)));
353
+ import_meta4 = {};
354
+ _require3 = (0, import_node_module3.createRequire)(import_meta4.url);
332
355
  transformSource = (source, opts) => {
333
356
  const native = getNativeBridge();
334
357
  if (!native?.transformSource) {
@@ -426,6 +449,7 @@ var init_src2 = __esm({
426
449
  // packages/domain/compiler/src/internal.ts
427
450
  var init_internal = __esm({
428
451
  "packages/domain/compiler/src/internal.ts"() {
452
+ "use strict";
429
453
  init_src2();
430
454
  init_compiler();
431
455
  init_parser();
@@ -437,7 +461,18 @@ var init_internal = __esm({
437
461
  });
438
462
 
439
463
  // packages/presentation/next/src/webpackLoader.ts
464
+ var webpackLoader_exports = {};
465
+ __export(webpackLoader_exports, {
466
+ default: () => webpackLoader
467
+ });
468
+ module.exports = __toCommonJS(webpackLoader_exports);
440
469
  init_internal();
470
+ var import_node_path4 = __toESM(require("path"), 1);
471
+ var import_zod = require("zod");
472
+
473
+ // packages/presentation/next/src/staticCssWebpackPlugin.ts
474
+ var import_node_fs3 = __toESM(require("fs"), 1);
475
+ var import_node_path3 = __toESM(require("path"), 1);
441
476
  var _fileStaticCssMap = /* @__PURE__ */ new Map();
442
477
  function setFileStaticCss(filepath, css) {
443
478
  if (css && css.trim()) {
@@ -448,18 +483,18 @@ function setFileStaticCss(filepath, css) {
448
483
  }
449
484
 
450
485
  // packages/presentation/next/src/webpackLoader.ts
451
- var WebpackLoaderOptionsSchema = zod.z.object({
452
- mode: zod.z.literal("zero-runtime").optional(),
453
- autoClientBoundary: zod.z.boolean().optional(),
454
- addDataAttr: zod.z.boolean().optional(),
455
- hoist: zod.z.boolean().optional(),
456
- routeCss: zod.z.boolean().optional(),
457
- incremental: zod.z.boolean().optional(),
458
- verbose: zod.z.boolean().optional(),
459
- preserveImports: zod.z.boolean().optional(),
460
- safelistPath: zod.z.string().optional()
486
+ var WebpackLoaderOptionsSchema = import_zod.z.object({
487
+ mode: import_zod.z.literal("zero-runtime").optional(),
488
+ autoClientBoundary: import_zod.z.boolean().optional(),
489
+ addDataAttr: import_zod.z.boolean().optional(),
490
+ hoist: import_zod.z.boolean().optional(),
491
+ routeCss: import_zod.z.boolean().optional(),
492
+ incremental: import_zod.z.boolean().optional(),
493
+ verbose: import_zod.z.boolean().optional(),
494
+ preserveImports: import_zod.z.boolean().optional(),
495
+ safelistPath: import_zod.z.string().optional()
461
496
  });
462
- var isNextBuildArtifact = (filepath) => filepath.includes(`${path__namespace.default.sep}.next${path__namespace.default.sep}`);
497
+ var isNextBuildArtifact = (filepath) => filepath.includes(`${import_node_path4.default.sep}.next${import_node_path4.default.sep}`);
463
498
  function webpackLoader(source) {
464
499
  const callback = this.async?.();
465
500
  if (!callback) {
@@ -500,7 +535,7 @@ function webpackLoader(source) {
500
535
  const rsc = output.rsc;
501
536
  const engine = output.engine ?? "js";
502
537
  const env = rsc?.isServer ? "server" : "client";
503
- const name = path__namespace.default.basename(filepath);
538
+ const name = import_node_path4.default.basename(filepath);
504
539
  process.stdout.write(
505
540
  `[tailwind-styled/webpack] ${name} -> ${output.classes.length} classes (${env}) [${engine}]
506
541
  `
@@ -519,7 +554,4 @@ function webpackLoader(source) {
519
554
  callback(null, source);
520
555
  }
521
556
  }
522
-
523
- module.exports = webpackLoader;
524
- //# sourceMappingURL=webpackLoader.js.map
525
557
  //# sourceMappingURL=webpackLoader.js.map