tailwind-styled-v4 5.0.37 → 5.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyzer.js +213 -161
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +121 -83
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +131 -87
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +31 -15
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +107 -67
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +47 -14
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +601 -428
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +504 -313
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +833 -508
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +298 -30
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +72 -41
- package/dist/dashboard.js.map +1 -1
- package/dist/dashboard.mjs +12 -6
- package/dist/dashboard.mjs.map +1 -1
- package/dist/devtools.js +335 -289
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +28 -11
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +719 -506
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +520 -318
- package/dist/engine.mjs.map +1 -1
- package/dist/index.d.mts +145 -319
- package/dist/index.d.ts +145 -319
- package/dist/index.js +1337 -7442
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1275 -7386
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +327 -242
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +272 -184
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +94 -49
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-api.mjs +26 -6
- package/dist/plugin-api.mjs.map +1 -1
- package/dist/plugin-registry.js +68 -40
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin-registry.mjs +14 -10
- package/dist/plugin-registry.mjs.map +1 -1
- package/dist/plugin.js +102 -53
- package/dist/plugin.js.map +1 -1
- package/dist/plugin.mjs +30 -6
- package/dist/plugin.mjs.map +1 -1
- package/dist/preset.js +48 -15
- package/dist/preset.js.map +1 -1
- package/dist/preset.mjs +13 -5
- package/dist/preset.mjs.map +1 -1
- package/dist/rspack.js +108 -53
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +50 -18
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +63 -24
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime-css.mjs +15 -7
- package/dist/runtime-css.mjs.map +1 -1
- package/dist/runtime.js +98 -44
- package/dist/runtime.js.map +1 -1
- package/dist/runtime.mjs +31 -8
- package/dist/runtime.mjs.map +1 -1
- package/dist/scanner.js +164 -120
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +70 -40
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.d.mts +0 -12
- package/dist/shared.d.ts +0 -12
- package/dist/shared.js +481 -299
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +304 -133
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +40 -10
- package/dist/storybook-addon.js.map +1 -1
- package/dist/storybook-addon.mjs +8 -3
- package/dist/storybook-addon.mjs.map +1 -1
- package/dist/svelte.js +95 -64
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +37 -14
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +69 -37
- package/dist/syntax.js.map +1 -1
- package/dist/syntax.mjs +8 -7
- package/dist/syntax.mjs.map +1 -1
- package/dist/testing.js +56 -18
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +16 -3
- package/dist/testing.mjs.map +1 -1
- package/dist/theme.js +133 -74
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +45 -14
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +156 -115
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +135 -82
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +584 -423
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +498 -311
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +599 -450
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +484 -332
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +102 -70
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +39 -15
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +112 -77
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +52 -18
- package/dist/webpackLoader.mjs.map +1 -1
- package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
- package/native/tailwind-styled-native.node +0 -0
- package/package.json +3 -1
package/dist/next.js
CHANGED
|
@@ -1,46 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var module$1 = require('module');
|
|
4
|
-
var fs10 = require('fs');
|
|
5
|
-
var path11 = require('path');
|
|
6
|
-
require('crypto');
|
|
7
|
-
var url = require('url');
|
|
8
|
-
var zod = require('zod');
|
|
9
|
-
require('worker_threads');
|
|
10
|
-
|
|
11
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
12
|
-
function _interopNamespace(e) {
|
|
13
|
-
if (e && e.__esModule) return e;
|
|
14
|
-
var n = Object.create(null);
|
|
15
|
-
if (e) {
|
|
16
|
-
Object.keys(e).forEach(function (k) {
|
|
17
|
-
if (k !== 'default') {
|
|
18
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return e[k]; }
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
n.default = e;
|
|
27
|
-
return Object.freeze(n);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var fs10__namespace = /*#__PURE__*/_interopNamespace(fs10);
|
|
31
|
-
var path11__namespace = /*#__PURE__*/_interopNamespace(path11);
|
|
32
|
-
|
|
1
|
+
const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
|
|
33
2
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
3
|
+
"use strict";
|
|
4
|
+
var __create = Object.create;
|
|
34
5
|
var __defProp = Object.defineProperty;
|
|
35
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
36
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
37
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
38
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
39
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
40
|
-
}) : x)(function(x) {
|
|
41
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
42
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
43
|
-
});
|
|
44
10
|
var __esm = (fn, res) => function __init() {
|
|
45
11
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
46
12
|
};
|
|
@@ -56,6 +22,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
56
22
|
}
|
|
57
23
|
return to;
|
|
58
24
|
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
59
33
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
60
34
|
|
|
61
35
|
// packages/domain/shared/src/workerResolver.ts
|
|
@@ -63,8 +37,8 @@ function getDirnameFromUrl(importMetaUrl) {
|
|
|
63
37
|
if (!importMetaUrl) return "";
|
|
64
38
|
if (isBrowser) return "";
|
|
65
39
|
try {
|
|
66
|
-
const nodeUrl =
|
|
67
|
-
const nodePath =
|
|
40
|
+
const nodeUrl = require(NODE_URL);
|
|
41
|
+
const nodePath = require(NODE_PATH);
|
|
68
42
|
return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl));
|
|
69
43
|
} catch {
|
|
70
44
|
if (importMetaUrl.startsWith("file://")) {
|
|
@@ -78,7 +52,7 @@ function getDirnameFromUrl(importMetaUrl) {
|
|
|
78
52
|
function resolvePath(...segments) {
|
|
79
53
|
if (isBrowser) return segments.join("/").replace(/\/+/g, "/");
|
|
80
54
|
try {
|
|
81
|
-
const nodePath =
|
|
55
|
+
const nodePath = require(NODE_PATH);
|
|
82
56
|
return nodePath.resolve(...segments);
|
|
83
57
|
} catch {
|
|
84
58
|
return segments.join("/").replace(/\/+/g, "/");
|
|
@@ -87,7 +61,7 @@ function resolvePath(...segments) {
|
|
|
87
61
|
function existsSync(path12) {
|
|
88
62
|
if (isBrowser) return false;
|
|
89
63
|
try {
|
|
90
|
-
const nodeFs =
|
|
64
|
+
const nodeFs = require(NODE_FS);
|
|
91
65
|
return nodeFs.existsSync(path12);
|
|
92
66
|
} catch {
|
|
93
67
|
return false;
|
|
@@ -141,12 +115,15 @@ function resolveLoaderPath(loaderBasename, importMetaUrl) {
|
|
|
141
115
|
var isBrowser, NODE_URL, NODE_FS, NODE_PATH;
|
|
142
116
|
var init_workerResolver = __esm({
|
|
143
117
|
"packages/domain/shared/src/workerResolver.ts"() {
|
|
118
|
+
"use strict";
|
|
144
119
|
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
145
120
|
NODE_URL = typeof window === "undefined" || typeof document === "undefined" ? "node:url" : null;
|
|
146
121
|
NODE_FS = typeof window === "undefined" || typeof document === "undefined" ? "node:fs" : null;
|
|
147
122
|
NODE_PATH = typeof window === "undefined" || typeof document === "undefined" ? "node:path" : null;
|
|
148
123
|
}
|
|
149
124
|
});
|
|
125
|
+
|
|
126
|
+
// packages/domain/shared/src/native-resolution.ts
|
|
150
127
|
function platformKey() {
|
|
151
128
|
if (isBrowser2) return "browser";
|
|
152
129
|
return `${process.platform}-${process.arch}`;
|
|
@@ -162,7 +139,7 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
162
139
|
}
|
|
163
140
|
const envPath = process.env.TW_NATIVE_PATH?.trim();
|
|
164
141
|
if (envPath) {
|
|
165
|
-
if (
|
|
142
|
+
if (fs.existsSync(envPath)) {
|
|
166
143
|
return { path: envPath, source: "env", platform, tried };
|
|
167
144
|
}
|
|
168
145
|
tried.push(`env:${envPath} (not found)`);
|
|
@@ -171,7 +148,7 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
171
148
|
for (const pkg of prebuiltPkgs) {
|
|
172
149
|
try {
|
|
173
150
|
const candidate = _require.resolve(`${pkg}/tailwind_styled_parser.node`);
|
|
174
|
-
if (
|
|
151
|
+
if (fs.existsSync(candidate)) {
|
|
175
152
|
return { path: candidate, source: "prebuilt", platform, tried };
|
|
176
153
|
}
|
|
177
154
|
tried.push(`prebuilt:${pkg} (resolved but missing)`);
|
|
@@ -182,13 +159,13 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
182
159
|
const napiPlatform = platform === "linux-x64" ? "linux-x64-gnu" : platform === "linux-arm64" ? "linux-arm64-gnu" : platform;
|
|
183
160
|
const BINARY_NAMES_SELF = ["tailwind-styled-native", "tailwind_styled_parser"];
|
|
184
161
|
if (runtimeDir) {
|
|
185
|
-
for (const depth of ["..",
|
|
186
|
-
const pkgRoot =
|
|
162
|
+
for (const depth of ["..", path.join("..", ".."), path.join("..", "..", "..")]) {
|
|
163
|
+
const pkgRoot = path.resolve(runtimeDir, depth);
|
|
187
164
|
for (const bin of BINARY_NAMES_SELF) {
|
|
188
165
|
for (const suffix of ["", `.${platform}`, `.${napiPlatform}`]) {
|
|
189
|
-
const candidate =
|
|
166
|
+
const candidate = path.resolve(pkgRoot, "native", `${bin}${suffix}.node`);
|
|
190
167
|
tried.push(`self-bundled:${candidate}`);
|
|
191
|
-
if (
|
|
168
|
+
if (fs.existsSync(candidate)) {
|
|
192
169
|
return { path: candidate, source: "prebuilt", platform, tried };
|
|
193
170
|
}
|
|
194
171
|
}
|
|
@@ -200,39 +177,45 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
200
177
|
const BINARY_NAMES = ["tailwind-styled-native", "tailwind_styled_parser"];
|
|
201
178
|
const localCandidates = [];
|
|
202
179
|
for (const bin of BINARY_NAMES) {
|
|
203
|
-
localCandidates.push(
|
|
204
|
-
localCandidates.push(
|
|
205
|
-
localCandidates.push(
|
|
206
|
-
localCandidates.push(
|
|
180
|
+
localCandidates.push(path.resolve(base, `${bin}.node`));
|
|
181
|
+
localCandidates.push(path.resolve(base, "..", `${bin}.node`));
|
|
182
|
+
localCandidates.push(path.resolve(base, `${bin}.${platform}.node`));
|
|
183
|
+
localCandidates.push(path.resolve(base, `${bin}.${napiPlatform}.node`));
|
|
207
184
|
}
|
|
208
185
|
for (const startDir of [cwd, base]) {
|
|
209
186
|
let dir = startDir;
|
|
210
187
|
for (let i = 0; i < 6; i++) {
|
|
211
|
-
const nativeDir =
|
|
188
|
+
const nativeDir = path.resolve(dir, "native");
|
|
212
189
|
for (const bin of BINARY_NAMES) {
|
|
213
|
-
localCandidates.push(
|
|
214
|
-
localCandidates.push(
|
|
215
|
-
localCandidates.push(
|
|
216
|
-
localCandidates.push(
|
|
190
|
+
localCandidates.push(path.resolve(nativeDir, `${bin}.node`));
|
|
191
|
+
localCandidates.push(path.resolve(nativeDir, `${bin}.${platform}.node`));
|
|
192
|
+
localCandidates.push(path.resolve(nativeDir, `${bin}.${napiPlatform}.node`));
|
|
193
|
+
localCandidates.push(path.resolve(nativeDir, "target", "release", `${bin}.node`));
|
|
217
194
|
}
|
|
218
|
-
const parent =
|
|
195
|
+
const parent = path.resolve(dir, "..");
|
|
219
196
|
if (parent === dir) break;
|
|
220
197
|
dir = parent;
|
|
221
198
|
}
|
|
222
199
|
}
|
|
223
200
|
for (const candidate of localCandidates) {
|
|
224
201
|
tried.push(`local:${candidate}`);
|
|
225
|
-
if (
|
|
202
|
+
if (fs.existsSync(candidate)) {
|
|
226
203
|
return { path: candidate, source: "local", platform, tried };
|
|
227
204
|
}
|
|
228
205
|
}
|
|
229
206
|
return { path: null, source: "not-found", platform, tried };
|
|
230
207
|
}
|
|
231
|
-
var isBrowser2, _require, PLATFORM_MAP;
|
|
208
|
+
var import_node_module, fs, path, isBrowser2, _require, PLATFORM_MAP;
|
|
232
209
|
var init_native_resolution = __esm({
|
|
233
210
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
211
|
+
"use strict";
|
|
212
|
+
import_node_module = require("module");
|
|
213
|
+
fs = __toESM(require("fs"));
|
|
214
|
+
path = __toESM(require("path"));
|
|
234
215
|
isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
|
|
235
|
-
_require =
|
|
216
|
+
_require = (0, import_node_module.createRequire)(
|
|
217
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
218
|
+
);
|
|
236
219
|
PLATFORM_MAP = {
|
|
237
220
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
238
221
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -248,8 +231,9 @@ var init_native_resolution = __esm({
|
|
|
248
231
|
var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge, resetNativeBridgeCache, adaptNativeResult;
|
|
249
232
|
var init_nativeBridge = __esm({
|
|
250
233
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
234
|
+
"use strict";
|
|
251
235
|
init_src2();
|
|
252
|
-
_loadNative = (path12) =>
|
|
236
|
+
_loadNative = (path12) => require(path12);
|
|
253
237
|
log = (...args) => {
|
|
254
238
|
if (process.env.DEBUG?.includes("compiler:native")) {
|
|
255
239
|
console.log("[compiler:native]", ...args);
|
|
@@ -275,7 +259,7 @@ var init_nativeBridge = __esm({
|
|
|
275
259
|
}
|
|
276
260
|
bridgeLoadAttempted = true;
|
|
277
261
|
try {
|
|
278
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
262
|
+
const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
|
|
279
263
|
const result = resolveNativeBinary(runtimeDir);
|
|
280
264
|
if (result.path && result.path.endsWith(".node")) {
|
|
281
265
|
try {
|
|
@@ -405,6 +389,7 @@ function resetCacheStats() {
|
|
|
405
389
|
}
|
|
406
390
|
var init_cssGeneratorNative = __esm({
|
|
407
391
|
"packages/domain/compiler/src/compiler/cssGeneratorNative.ts"() {
|
|
392
|
+
"use strict";
|
|
408
393
|
init_nativeBridge();
|
|
409
394
|
}
|
|
410
395
|
});
|
|
@@ -477,6 +462,7 @@ function atomicRegistrySize() {
|
|
|
477
462
|
}
|
|
478
463
|
var init_compilationNative = __esm({
|
|
479
464
|
"packages/domain/compiler/src/compiler/compilationNative.ts"() {
|
|
465
|
+
"use strict";
|
|
480
466
|
init_nativeBridge();
|
|
481
467
|
}
|
|
482
468
|
});
|
|
@@ -620,6 +606,7 @@ function twMergeRaw(classLists) {
|
|
|
620
606
|
}
|
|
621
607
|
var init_cssCompilationNative = __esm({
|
|
622
608
|
"packages/domain/compiler/src/compiler/cssCompilationNative.ts"() {
|
|
609
|
+
"use strict";
|
|
623
610
|
init_nativeBridge();
|
|
624
611
|
}
|
|
625
612
|
});
|
|
@@ -719,6 +706,7 @@ function idRegistryImport(importedData) {
|
|
|
719
706
|
}
|
|
720
707
|
var init_idRegistryNative = __esm({
|
|
721
708
|
"packages/domain/compiler/src/compiler/idRegistryNative.ts"() {
|
|
709
|
+
"use strict";
|
|
722
710
|
init_nativeBridge();
|
|
723
711
|
}
|
|
724
712
|
});
|
|
@@ -860,9 +848,12 @@ function scanFilesBatchNative(filesJson) {
|
|
|
860
848
|
}
|
|
861
849
|
var init_streamingNative = __esm({
|
|
862
850
|
"packages/domain/compiler/src/compiler/streamingNative.ts"() {
|
|
851
|
+
"use strict";
|
|
863
852
|
init_nativeBridge();
|
|
864
853
|
}
|
|
865
854
|
});
|
|
855
|
+
|
|
856
|
+
// packages/domain/compiler/src/tailwindEngine.ts
|
|
866
857
|
function loadTailwindEngine() {
|
|
867
858
|
if (_twEngine) return _twEngine;
|
|
868
859
|
if (_twEngineError) throw _twEngineError;
|
|
@@ -882,10 +873,10 @@ async function generateRawCss(classes, cssEntryContent, root) {
|
|
|
882
873
|
if (classes.length === 0) return "";
|
|
883
874
|
const tw = loadTailwindEngine();
|
|
884
875
|
const input = cssEntryContent ?? "@import 'tailwindcss';";
|
|
885
|
-
const { readFileSync, existsSync: existsSync3 } = await import(
|
|
886
|
-
const { dirname, resolve: resolve2 } = await import(
|
|
876
|
+
const { readFileSync, existsSync: existsSync3 } = await import("fs");
|
|
877
|
+
const { dirname, resolve: resolve2 } = await import("path");
|
|
887
878
|
const projectRoot = root ?? process.cwd();
|
|
888
|
-
const req =
|
|
879
|
+
const req = (0, import_node_module2.createRequire)(resolve2(projectRoot, "package.json"));
|
|
889
880
|
const loadStylesheet = async (id, base) => {
|
|
890
881
|
try {
|
|
891
882
|
const cssId = id === "tailwindcss" ? "tailwindcss/index.css" : id === "tailwindcss/preflight" ? "tailwindcss/preflight.css" : id === "tailwindcss/utilities" ? "tailwindcss/utilities.css" : id === "tailwindcss/theme" ? "tailwindcss/theme.css" : id;
|
|
@@ -905,10 +896,16 @@ async function generateRawCss(classes, cssEntryContent, root) {
|
|
|
905
896
|
const compiler = await Promise.resolve(tw.compile(input, { loadStylesheet }));
|
|
906
897
|
return compiler.build(classes);
|
|
907
898
|
}
|
|
908
|
-
var require2, _twEngine, _twEngineError;
|
|
899
|
+
var import_node_module2, import_meta, require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
|
|
909
900
|
var init_tailwindEngine = __esm({
|
|
910
901
|
"packages/domain/compiler/src/tailwindEngine.ts"() {
|
|
911
|
-
|
|
902
|
+
"use strict";
|
|
903
|
+
import_node_module2 = require("module");
|
|
904
|
+
import_meta = {};
|
|
905
|
+
require2 = (0, import_node_module2.createRequire)(
|
|
906
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
907
|
+
);
|
|
908
|
+
MAX_CACHE_MEMORY = 256 * 1024;
|
|
912
909
|
_twEngine = null;
|
|
913
910
|
_twEngineError = null;
|
|
914
911
|
}
|
|
@@ -1089,24 +1086,31 @@ function processTailwindCssWithTargets(css, targets) {
|
|
|
1089
1086
|
}
|
|
1090
1087
|
return result.css;
|
|
1091
1088
|
}
|
|
1092
|
-
var _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE;
|
|
1089
|
+
var import_node_module3, import_meta2, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1093
1090
|
var init_tailwindEngine2 = __esm({
|
|
1094
1091
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
1092
|
+
"use strict";
|
|
1093
|
+
import_node_module3 = require("module");
|
|
1095
1094
|
init_nativeBridge();
|
|
1096
1095
|
init_cssGeneratorNative();
|
|
1097
1096
|
init_cssCompilationNative();
|
|
1098
1097
|
init_tailwindEngine();
|
|
1099
|
-
|
|
1098
|
+
import_meta2 = {};
|
|
1099
|
+
require3 = (0, import_node_module3.createRequire)(
|
|
1100
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta2 !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
1101
|
+
);
|
|
1100
1102
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1101
1103
|
_cacheHits = 0;
|
|
1102
1104
|
_cacheMisses = 0;
|
|
1103
1105
|
MAX_CACHE_SIZE = 100;
|
|
1106
|
+
MAX_CACHE_MEMORY2 = 256 * 1024;
|
|
1104
1107
|
}
|
|
1105
1108
|
});
|
|
1106
1109
|
|
|
1107
1110
|
// packages/domain/compiler/src/compiler/index.ts
|
|
1108
1111
|
var init_compiler = __esm({
|
|
1109
1112
|
"packages/domain/compiler/src/compiler/index.ts"() {
|
|
1113
|
+
"use strict";
|
|
1110
1114
|
init_cssGeneratorNative();
|
|
1111
1115
|
init_compilationNative();
|
|
1112
1116
|
init_cssCompilationNative();
|
|
@@ -1120,6 +1124,7 @@ var init_compiler = __esm({
|
|
|
1120
1124
|
var parseClasses, parseClass, extractAllClasses, extractClassesFromSource, astExtractClasses, normalizeClasses, mergeClassesStatic, normalizeAndDedupClasses, extractComponentUsage, batchExtractClasses, checkAgainstSafelist, diffClassLists;
|
|
1121
1125
|
var init_parser = __esm({
|
|
1122
1126
|
"packages/domain/compiler/src/parser/index.ts"() {
|
|
1127
|
+
"use strict";
|
|
1123
1128
|
init_nativeBridge();
|
|
1124
1129
|
parseClasses = (raw) => {
|
|
1125
1130
|
const native = getNativeBridge();
|
|
@@ -1298,6 +1303,7 @@ function resetMemoryStats() {
|
|
|
1298
1303
|
}
|
|
1299
1304
|
var init_analyzerNative = __esm({
|
|
1300
1305
|
"packages/domain/compiler/src/analyzer/analyzerNative.ts"() {
|
|
1306
|
+
"use strict";
|
|
1301
1307
|
init_nativeBridge();
|
|
1302
1308
|
}
|
|
1303
1309
|
});
|
|
@@ -1391,6 +1397,7 @@ function resolveSimpleVariants(configJson) {
|
|
|
1391
1397
|
}
|
|
1392
1398
|
var init_themeResolutionNative = __esm({
|
|
1393
1399
|
"packages/domain/compiler/src/analyzer/themeResolutionNative.ts"() {
|
|
1400
|
+
"use strict";
|
|
1394
1401
|
init_nativeBridge();
|
|
1395
1402
|
}
|
|
1396
1403
|
});
|
|
@@ -1438,6 +1445,7 @@ function generateSubComponentTypes(root, outputPath) {
|
|
|
1438
1445
|
}
|
|
1439
1446
|
var init_scannerNative = __esm({
|
|
1440
1447
|
"packages/domain/compiler/src/analyzer/scannerNative.ts"() {
|
|
1448
|
+
"use strict";
|
|
1441
1449
|
init_nativeBridge();
|
|
1442
1450
|
}
|
|
1443
1451
|
});
|
|
@@ -1445,6 +1453,7 @@ var init_scannerNative = __esm({
|
|
|
1445
1453
|
// packages/domain/compiler/src/analyzer/index.ts
|
|
1446
1454
|
var init_analyzer = __esm({
|
|
1447
1455
|
"packages/domain/compiler/src/analyzer/index.ts"() {
|
|
1456
|
+
"use strict";
|
|
1448
1457
|
init_analyzerNative();
|
|
1449
1458
|
init_themeResolutionNative();
|
|
1450
1459
|
init_scannerNative();
|
|
@@ -1633,6 +1642,7 @@ function resetResolverPoolStats() {
|
|
|
1633
1642
|
}
|
|
1634
1643
|
var init_cacheNative = __esm({
|
|
1635
1644
|
"packages/domain/compiler/src/cache/cacheNative.ts"() {
|
|
1645
|
+
"use strict";
|
|
1636
1646
|
init_nativeBridge();
|
|
1637
1647
|
}
|
|
1638
1648
|
});
|
|
@@ -1640,6 +1650,7 @@ var init_cacheNative = __esm({
|
|
|
1640
1650
|
// packages/domain/compiler/src/cache/index.ts
|
|
1641
1651
|
var init_cache = __esm({
|
|
1642
1652
|
"packages/domain/compiler/src/cache/index.ts"() {
|
|
1653
|
+
"use strict";
|
|
1643
1654
|
init_cacheNative();
|
|
1644
1655
|
}
|
|
1645
1656
|
});
|
|
@@ -1888,6 +1899,7 @@ function redisDiagnose() {
|
|
|
1888
1899
|
}
|
|
1889
1900
|
var init_redisNative = __esm({
|
|
1890
1901
|
"packages/domain/compiler/src/redis/redisNative.ts"() {
|
|
1902
|
+
"use strict";
|
|
1891
1903
|
init_nativeBridge();
|
|
1892
1904
|
}
|
|
1893
1905
|
});
|
|
@@ -1895,6 +1907,7 @@ var init_redisNative = __esm({
|
|
|
1895
1907
|
// packages/domain/compiler/src/redis/index.ts
|
|
1896
1908
|
var init_redis = __esm({
|
|
1897
1909
|
"packages/domain/compiler/src/redis/index.ts"() {
|
|
1910
|
+
"use strict";
|
|
1898
1911
|
init_redisNative();
|
|
1899
1912
|
}
|
|
1900
1913
|
});
|
|
@@ -2033,6 +2046,7 @@ function getCompilerDiagnostics() {
|
|
|
2033
2046
|
}
|
|
2034
2047
|
var init_watchSystemNative = __esm({
|
|
2035
2048
|
"packages/domain/compiler/src/watch/watchSystemNative.ts"() {
|
|
2049
|
+
"use strict";
|
|
2036
2050
|
init_nativeBridge();
|
|
2037
2051
|
}
|
|
2038
2052
|
});
|
|
@@ -2040,6 +2054,7 @@ var init_watchSystemNative = __esm({
|
|
|
2040
2054
|
// packages/domain/compiler/src/watch/index.ts
|
|
2041
2055
|
var init_watch = __esm({
|
|
2042
2056
|
"packages/domain/compiler/src/watch/index.ts"() {
|
|
2057
|
+
"use strict";
|
|
2043
2058
|
init_watchSystemNative();
|
|
2044
2059
|
}
|
|
2045
2060
|
});
|
|
@@ -2301,9 +2316,13 @@ function extractContainerCssFromSource(source) {
|
|
|
2301
2316
|
}
|
|
2302
2317
|
return rules.join("\n");
|
|
2303
2318
|
}
|
|
2304
|
-
var _require2, transformSource, hasTwUsage, isAlreadyTransformed, shouldProcess, compileCssFromClasses, buildStyleTag, generateCssForClasses, eliminateDeadCss, findDeadVariants, runElimination, scanProjectUsage, generateSafelist, loadSafelist, loadTailwindConfig, getContentPaths, _CONTAINER_BREAKPOINTS, runLoaderTransform, shouldSkipFile, fileToRoute, getAllRoutes, getRouteClasses, registerFileClasses, registerGlobalClasses, _incrementalEngineInstance, getIncrementalEngine, resetIncrementalEngine, IncrementalEngine, getBucketEngine, resetBucketEngine, BucketEngine, classifyNode, detectConflicts, bucketSort, analyzeFile, analyzeVariantUsage, injectClientDirective, injectServerOnlyComment, analyzeClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
|
|
2319
|
+
var import_node_fs, import_node_path, import_node_module4, _require2, transformSource, hasTwUsage, isAlreadyTransformed, shouldProcess, compileCssFromClasses, buildStyleTag, generateCssForClasses, eliminateDeadCss, findDeadVariants, runElimination, scanProjectUsage, generateSafelist, loadSafelist, loadTailwindConfig, getContentPaths, _CONTAINER_BREAKPOINTS, runLoaderTransform, shouldSkipFile, fileToRoute, getAllRoutes, getRouteClasses, registerFileClasses, registerGlobalClasses, _incrementalEngineInstance, getIncrementalEngine, resetIncrementalEngine, IncrementalEngine, getBucketEngine, resetBucketEngine, BucketEngine, classifyNode, detectConflicts, bucketSort, analyzeFile, analyzeVariantUsage, injectClientDirective, injectServerOnlyComment, analyzeClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
|
|
2305
2320
|
var init_src = __esm({
|
|
2306
2321
|
"packages/domain/compiler/src/index.ts"() {
|
|
2322
|
+
"use strict";
|
|
2323
|
+
import_node_fs = __toESM(require("fs"), 1);
|
|
2324
|
+
import_node_path = __toESM(require("path"), 1);
|
|
2325
|
+
import_node_module4 = require("module");
|
|
2307
2326
|
init_nativeBridge();
|
|
2308
2327
|
init_compiler();
|
|
2309
2328
|
init_parser();
|
|
@@ -2311,7 +2330,9 @@ var init_src = __esm({
|
|
|
2311
2330
|
init_cache();
|
|
2312
2331
|
init_redis();
|
|
2313
2332
|
init_watch();
|
|
2314
|
-
_require2 =
|
|
2333
|
+
_require2 = (0, import_node_module4.createRequire)(
|
|
2334
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
2335
|
+
);
|
|
2315
2336
|
transformSource = (source, opts) => {
|
|
2316
2337
|
const native = getNativeBridge();
|
|
2317
2338
|
if (!native?.transformSource) {
|
|
@@ -2403,7 +2424,7 @@ var init_src = __esm({
|
|
|
2403
2424
|
};
|
|
2404
2425
|
scanProjectUsage = (dirs, cwd) => {
|
|
2405
2426
|
const { batchExtractClasses: batchExtractClasses2 } = _require2("./parser");
|
|
2406
|
-
const files = dirs.map((dir) =>
|
|
2427
|
+
const files = dirs.map((dir) => import_node_path.default.resolve(cwd, dir));
|
|
2407
2428
|
const results = batchExtractClasses2(files) || [];
|
|
2408
2429
|
const combined = {};
|
|
2409
2430
|
for (const result of results) {
|
|
@@ -2420,13 +2441,13 @@ var init_src = __esm({
|
|
|
2420
2441
|
const classes = scanProjectUsage(scanDirs, cwd || process.cwd());
|
|
2421
2442
|
const allClasses = Object.keys(classes).sort();
|
|
2422
2443
|
if (outputPath) {
|
|
2423
|
-
|
|
2444
|
+
import_node_fs.default.writeFileSync(outputPath, JSON.stringify(allClasses, null, 2));
|
|
2424
2445
|
}
|
|
2425
2446
|
return allClasses;
|
|
2426
2447
|
};
|
|
2427
2448
|
loadSafelist = (safelistPath) => {
|
|
2428
2449
|
try {
|
|
2429
|
-
const content =
|
|
2450
|
+
const content = import_node_fs.default.readFileSync(safelistPath, "utf-8");
|
|
2430
2451
|
return JSON.parse(content);
|
|
2431
2452
|
} catch {
|
|
2432
2453
|
return [];
|
|
@@ -2440,9 +2461,9 @@ var init_src = __esm({
|
|
|
2440
2461
|
"tailwind.config.cjs"
|
|
2441
2462
|
];
|
|
2442
2463
|
for (const file of configFiles) {
|
|
2443
|
-
const fullPath =
|
|
2444
|
-
if (
|
|
2445
|
-
const mod =
|
|
2464
|
+
const fullPath = import_node_path.default.join(cwd, file);
|
|
2465
|
+
if (import_node_fs.default.existsSync(fullPath)) {
|
|
2466
|
+
const mod = require(fullPath);
|
|
2446
2467
|
return mod.default || mod;
|
|
2447
2468
|
}
|
|
2448
2469
|
}
|
|
@@ -2451,9 +2472,9 @@ var init_src = __esm({
|
|
|
2451
2472
|
getContentPaths = (cwd = process.cwd()) => {
|
|
2452
2473
|
return {
|
|
2453
2474
|
content: [
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2475
|
+
import_node_path.default.join(cwd, "src/**/*.{js,ts,jsx,tsx}"),
|
|
2476
|
+
import_node_path.default.join(cwd, "app/**/*.{js,ts,jsx,tsx}"),
|
|
2477
|
+
import_node_path.default.join(cwd, "pages/**/*.{js,ts,jsx,tsx}")
|
|
2457
2478
|
]
|
|
2458
2479
|
};
|
|
2459
2480
|
};
|
|
@@ -2872,6 +2893,7 @@ __export(internal_exports, {
|
|
|
2872
2893
|
});
|
|
2873
2894
|
var init_internal = __esm({
|
|
2874
2895
|
"packages/domain/compiler/src/internal.ts"() {
|
|
2896
|
+
"use strict";
|
|
2875
2897
|
init_src();
|
|
2876
2898
|
init_tailwindEngine2();
|
|
2877
2899
|
init_compiler();
|
|
@@ -2882,6 +2904,8 @@ var init_internal = __esm({
|
|
|
2882
2904
|
init_watch();
|
|
2883
2905
|
}
|
|
2884
2906
|
});
|
|
2907
|
+
|
|
2908
|
+
// packages/domain/shared/src/staticStateExtractor.ts
|
|
2885
2909
|
function getNative() {
|
|
2886
2910
|
if (_native) return _native;
|
|
2887
2911
|
try {
|
|
@@ -2911,17 +2935,17 @@ function getNative() {
|
|
|
2911
2935
|
function* walkSourceFiles(dir) {
|
|
2912
2936
|
let entries;
|
|
2913
2937
|
try {
|
|
2914
|
-
entries =
|
|
2938
|
+
entries = import_node_fs2.default.readdirSync(dir, { withFileTypes: true });
|
|
2915
2939
|
} catch {
|
|
2916
2940
|
return;
|
|
2917
2941
|
}
|
|
2918
2942
|
for (const entry of entries) {
|
|
2919
|
-
const fullPath =
|
|
2943
|
+
const fullPath = import_node_path2.default.join(dir, entry.name);
|
|
2920
2944
|
if (entry.isDirectory()) {
|
|
2921
2945
|
if (IGNORE_PATTERNS.some((p) => entry.name === p || entry.name.startsWith(p))) continue;
|
|
2922
2946
|
yield* walkSourceFiles(fullPath);
|
|
2923
2947
|
} else if (entry.isFile()) {
|
|
2924
|
-
const ext =
|
|
2948
|
+
const ext = import_node_path2.default.extname(entry.name);
|
|
2925
2949
|
if (SOURCE_EXTENSIONS.has(ext)) yield fullPath;
|
|
2926
2950
|
}
|
|
2927
2951
|
}
|
|
@@ -2985,7 +3009,7 @@ function extractStaticStateCss(srcDir, options = {}) {
|
|
|
2985
3009
|
allConfigs.push(...configs);
|
|
2986
3010
|
if (verbose) {
|
|
2987
3011
|
process.stderr.write(
|
|
2988
|
-
`[tw:static-state] ${
|
|
3012
|
+
`[tw:static-state] ${import_node_path2.default.relative(srcDir, filePath)}: ${configs.length} komponen
|
|
2989
3013
|
`
|
|
2990
3014
|
);
|
|
2991
3015
|
}
|
|
@@ -2996,7 +3020,7 @@ function extractStaticStateCss(srcDir, options = {}) {
|
|
|
2996
3020
|
if (filesScanned >= maxFiles) break;
|
|
2997
3021
|
let source;
|
|
2998
3022
|
try {
|
|
2999
|
-
source =
|
|
3023
|
+
source = import_node_fs2.default.readFileSync(filePath, "utf-8");
|
|
3000
3024
|
} catch {
|
|
3001
3025
|
continue;
|
|
3002
3026
|
}
|
|
@@ -3009,7 +3033,7 @@ function extractStaticStateCss(srcDir, options = {}) {
|
|
|
3009
3033
|
allConfigs.push(...configs);
|
|
3010
3034
|
if (verbose) {
|
|
3011
3035
|
process.stderr.write(
|
|
3012
|
-
`[tw:static-state] ${
|
|
3036
|
+
`[tw:static-state] ${import_node_path2.default.relative(srcDir, filePath)}: ${configs.length} komponen
|
|
3013
3037
|
`
|
|
3014
3038
|
);
|
|
3015
3039
|
}
|
|
@@ -3103,12 +3127,12 @@ function appendStaticStateCssToSafelist(srcDir, safelistPath, options = {}) {
|
|
|
3103
3127
|
resolvedCss: options.resolvedCss || ""
|
|
3104
3128
|
// ← ensure always passed
|
|
3105
3129
|
});
|
|
3106
|
-
const twClassesDir =
|
|
3107
|
-
|
|
3108
|
-
const stateFilePath =
|
|
3130
|
+
const twClassesDir = import_node_path2.default.join(import_node_path2.default.dirname(safelistPath), "tw-classes");
|
|
3131
|
+
import_node_fs2.default.mkdirSync(twClassesDir, { recursive: true });
|
|
3132
|
+
const stateFilePath = import_node_path2.default.join(twClassesDir, TW_STATE_STATIC_FILENAME);
|
|
3109
3133
|
if (result.rulesGenerated === 0) {
|
|
3110
3134
|
try {
|
|
3111
|
-
|
|
3135
|
+
import_node_fs2.default.writeFileSync(
|
|
3112
3136
|
stateFilePath,
|
|
3113
3137
|
"/* tw-state-static.css \u2014 tidak ada state rules yang di-generate */\n",
|
|
3114
3138
|
"utf-8"
|
|
@@ -3118,7 +3142,7 @@ function appendStaticStateCssToSafelist(srcDir, safelistPath, options = {}) {
|
|
|
3118
3142
|
return `[tw:static-state] tidak ada state rules yang di-generate (${result.filesScanned} files di-scan)`;
|
|
3119
3143
|
}
|
|
3120
3144
|
try {
|
|
3121
|
-
|
|
3145
|
+
import_node_fs2.default.writeFileSync(stateFilePath, result.generatedCss, "utf-8");
|
|
3122
3146
|
return [
|
|
3123
3147
|
`[tw:static-state] ${result.rulesGenerated} static state rules di-generate`,
|
|
3124
3148
|
` \u2192 ${result.filesScanned} files scanned, ${result.filesWithStates} dengan states`,
|
|
@@ -3130,15 +3154,20 @@ function appendStaticStateCssToSafelist(srcDir, safelistPath, options = {}) {
|
|
|
3130
3154
|
return `[tw:static-state] gagal tulis state CSS: ${msg}`;
|
|
3131
3155
|
}
|
|
3132
3156
|
}
|
|
3133
|
-
var SOURCE_EXTENSIONS, IGNORE_PATTERNS, _native, TW_STATE_STATIC_FILENAME;
|
|
3157
|
+
var import_node_fs2, import_node_path2, SOURCE_EXTENSIONS, IGNORE_PATTERNS, _native, TW_STATE_STATIC_FILENAME;
|
|
3134
3158
|
var init_staticStateExtractor = __esm({
|
|
3135
3159
|
"packages/domain/shared/src/staticStateExtractor.ts"() {
|
|
3160
|
+
"use strict";
|
|
3161
|
+
import_node_fs2 = __toESM(require("fs"));
|
|
3162
|
+
import_node_path2 = __toESM(require("path"));
|
|
3136
3163
|
SOURCE_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".tsx", ".js", ".jsx", ".mts", ".mjs"]);
|
|
3137
3164
|
IGNORE_PATTERNS = ["node_modules", ".next", "dist", "build", ".git", "coverage", "__tests__"];
|
|
3138
3165
|
_native = null;
|
|
3139
3166
|
TW_STATE_STATIC_FILENAME = "_tw-state-static.css";
|
|
3140
3167
|
}
|
|
3141
3168
|
});
|
|
3169
|
+
|
|
3170
|
+
// packages/domain/shared/src/logger.ts
|
|
3142
3171
|
function getEnvLevel() {
|
|
3143
3172
|
const env = process.env.TWS_LOG_LEVEL?.toLowerCase();
|
|
3144
3173
|
if (env && env in LEVELS) return env;
|
|
@@ -3148,8 +3177,8 @@ function setGlobalLogFile(filePath) {
|
|
|
3148
3177
|
_globalLogFile = filePath;
|
|
3149
3178
|
_logFileInitialized = false;
|
|
3150
3179
|
try {
|
|
3151
|
-
|
|
3152
|
-
|
|
3180
|
+
import_node_fs3.default.mkdirSync(import_node_path3.default.dirname(filePath), { recursive: true });
|
|
3181
|
+
import_node_fs3.default.writeFileSync(
|
|
3153
3182
|
filePath,
|
|
3154
3183
|
`# tailwind-styled build log \u2014 ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
3155
3184
|
`,
|
|
@@ -3162,13 +3191,13 @@ function setGlobalLogFile(filePath) {
|
|
|
3162
3191
|
function writeToFile(line) {
|
|
3163
3192
|
if (!_globalLogFile || !_logFileInitialized) return;
|
|
3164
3193
|
try {
|
|
3165
|
-
|
|
3194
|
+
import_node_fs3.default.appendFileSync(_globalLogFile, line);
|
|
3166
3195
|
} catch {
|
|
3167
3196
|
}
|
|
3168
3197
|
}
|
|
3169
3198
|
function createLogger(prefix, level) {
|
|
3170
3199
|
const loggerState = {
|
|
3171
|
-
currentLevel: getEnvLevel(),
|
|
3200
|
+
currentLevel: level ?? getEnvLevel(),
|
|
3172
3201
|
setLevel(l) {
|
|
3173
3202
|
this.currentLevel = l;
|
|
3174
3203
|
}
|
|
@@ -3189,15 +3218,20 @@ function createLogger(prefix, level) {
|
|
|
3189
3218
|
setLogFile: (filePath) => setGlobalLogFile(filePath)
|
|
3190
3219
|
};
|
|
3191
3220
|
}
|
|
3192
|
-
var LEVELS, _globalLogFile, _logFileInitialized;
|
|
3221
|
+
var import_node_fs3, import_node_path3, LEVELS, _globalLogFile, _logFileInitialized, logger;
|
|
3193
3222
|
var init_logger = __esm({
|
|
3194
3223
|
"packages/domain/shared/src/logger.ts"() {
|
|
3224
|
+
"use strict";
|
|
3225
|
+
import_node_fs3 = __toESM(require("fs"));
|
|
3226
|
+
import_node_path3 = __toESM(require("path"));
|
|
3195
3227
|
LEVELS = { silent: 0, error: 1, warn: 2, info: 3, debug: 4 };
|
|
3196
3228
|
_globalLogFile = null;
|
|
3197
3229
|
_logFileInitialized = false;
|
|
3198
|
-
createLogger("tailwind-styled");
|
|
3230
|
+
logger = createLogger("tailwind-styled");
|
|
3199
3231
|
}
|
|
3200
3232
|
});
|
|
3233
|
+
|
|
3234
|
+
// packages/domain/shared/src/index.ts
|
|
3201
3235
|
function createLogger2(namespace) {
|
|
3202
3236
|
const prefix = `[${namespace}]`;
|
|
3203
3237
|
return {
|
|
@@ -3220,7 +3254,7 @@ function createLogger2(namespace) {
|
|
|
3220
3254
|
};
|
|
3221
3255
|
}
|
|
3222
3256
|
function createDebugLogger(namespace, label) {
|
|
3223
|
-
const prefix = `[${namespace}]`;
|
|
3257
|
+
const prefix = label ? `[${namespace}:${label}]` : `[${namespace}]`;
|
|
3224
3258
|
return (msg) => {
|
|
3225
3259
|
if (process.env.DEBUG?.includes(namespace) || process.env.TW_DEBUG) {
|
|
3226
3260
|
console.debug(prefix, msg);
|
|
@@ -3237,9 +3271,9 @@ function loadNativeBinding(options) {
|
|
|
3237
3271
|
const { runtimeDir, candidates, isValid } = options;
|
|
3238
3272
|
const loadErrors = [];
|
|
3239
3273
|
for (const candidate of candidates) {
|
|
3240
|
-
const candidatePath =
|
|
3274
|
+
const candidatePath = import_node_path4.default.resolve(runtimeDir, candidate);
|
|
3241
3275
|
try {
|
|
3242
|
-
if (!
|
|
3276
|
+
if (!import_node_fs4.default.existsSync(candidatePath) && !import_node_fs4.default.existsSync(candidatePath + ".node")) {
|
|
3243
3277
|
continue;
|
|
3244
3278
|
}
|
|
3245
3279
|
const mod = requireNativeModule(candidatePath);
|
|
@@ -3271,9 +3305,9 @@ function resolveNativeBindingCandidates(options) {
|
|
|
3271
3305
|
}
|
|
3272
3306
|
}
|
|
3273
3307
|
if (!includeDefaultCandidates) return candidates;
|
|
3274
|
-
if (
|
|
3308
|
+
if (import_node_fs4.default.existsSync(runtimeDir)) {
|
|
3275
3309
|
try {
|
|
3276
|
-
for (const entry of
|
|
3310
|
+
for (const entry of import_node_fs4.default.readdirSync(runtimeDir)) {
|
|
3277
3311
|
if (entry.endsWith(".node")) candidates.push(entry);
|
|
3278
3312
|
}
|
|
3279
3313
|
} catch {
|
|
@@ -3282,28 +3316,35 @@ function resolveNativeBindingCandidates(options) {
|
|
|
3282
3316
|
const BINARY_NAMES = ["tailwind-styled-native", "tailwind_styled_parser"];
|
|
3283
3317
|
const napiPlatform = process.platform === "linux" && process.arch === "x64" ? "linux-x64-gnu" : process.platform === "linux" && process.arch === "arm64" ? "linux-arm64-gnu" : `${process.platform}-${process.arch}`;
|
|
3284
3318
|
for (const bin of BINARY_NAMES) {
|
|
3285
|
-
candidates.push(
|
|
3286
|
-
candidates.push(
|
|
3287
|
-
candidates.push(
|
|
3288
|
-
candidates.push(
|
|
3289
|
-
candidates.push(
|
|
3290
|
-
candidates.push(
|
|
3291
|
-
candidates.push(
|
|
3292
|
-
candidates.push(
|
|
3293
|
-
candidates.push(
|
|
3319
|
+
candidates.push(import_node_path4.default.resolve(runtimeDir, `${bin}.node`));
|
|
3320
|
+
candidates.push(import_node_path4.default.resolve(runtimeDir, `${bin}.${napiPlatform}.node`));
|
|
3321
|
+
candidates.push(import_node_path4.default.resolve(runtimeDir, "..", "native", `${bin}.node`));
|
|
3322
|
+
candidates.push(import_node_path4.default.resolve(runtimeDir, "..", "native", `${bin}.${napiPlatform}.node`));
|
|
3323
|
+
candidates.push(import_node_path4.default.resolve(process.cwd(), "native", `${bin}.node`));
|
|
3324
|
+
candidates.push(import_node_path4.default.resolve(process.cwd(), "native", `${bin}.${napiPlatform}.node`));
|
|
3325
|
+
candidates.push(import_node_path4.default.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.node`));
|
|
3326
|
+
candidates.push(import_node_path4.default.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.${napiPlatform}.node`));
|
|
3327
|
+
candidates.push(import_node_path4.default.resolve(runtimeDir, "..", "..", "..", "native", `${bin}.node`));
|
|
3294
3328
|
}
|
|
3295
3329
|
return Array.from(new Set(candidates));
|
|
3296
3330
|
}
|
|
3297
3331
|
function resolveRuntimeDir(dir, importMetaUrl) {
|
|
3332
|
+
if (dir) return import_node_path4.default.resolve(dir);
|
|
3298
3333
|
try {
|
|
3299
|
-
return
|
|
3334
|
+
return import_node_path4.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl));
|
|
3300
3335
|
} catch {
|
|
3301
3336
|
return process.cwd();
|
|
3302
3337
|
}
|
|
3303
3338
|
}
|
|
3304
|
-
var TwError, _require3;
|
|
3339
|
+
var import_node_crypto, import_node_fs4, import_node_path4, import_node_url, import_node_module5, TwError, _require3;
|
|
3305
3340
|
var init_src2 = __esm({
|
|
3306
3341
|
"packages/domain/shared/src/index.ts"() {
|
|
3342
|
+
"use strict";
|
|
3343
|
+
import_node_crypto = require("crypto");
|
|
3344
|
+
import_node_fs4 = __toESM(require("fs"));
|
|
3345
|
+
import_node_path4 = __toESM(require("path"));
|
|
3346
|
+
import_node_url = require("url");
|
|
3347
|
+
import_node_module5 = require("module");
|
|
3307
3348
|
init_workerResolver();
|
|
3308
3349
|
init_native_resolution();
|
|
3309
3350
|
init_staticStateExtractor();
|
|
@@ -3360,7 +3401,9 @@ var init_src2 = __esm({
|
|
|
3360
3401
|
return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
|
|
3361
3402
|
}
|
|
3362
3403
|
};
|
|
3363
|
-
_require3 =
|
|
3404
|
+
_require3 = (0, import_node_module5.createRequire)(
|
|
3405
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
|
|
3406
|
+
);
|
|
3364
3407
|
}
|
|
3365
3408
|
});
|
|
3366
3409
|
|
|
@@ -3397,8 +3440,8 @@ function getDirname() {
|
|
|
3397
3440
|
if (typeof __dirname !== "undefined") {
|
|
3398
3441
|
return __dirname;
|
|
3399
3442
|
}
|
|
3400
|
-
if (typeof
|
|
3401
|
-
return
|
|
3443
|
+
if (typeof import_meta3 !== "undefined" && __importMetaUrl) {
|
|
3444
|
+
return import_node_path5.default.dirname((0, import_node_url2.fileURLToPath)(__importMetaUrl));
|
|
3402
3445
|
}
|
|
3403
3446
|
return process.cwd();
|
|
3404
3447
|
}
|
|
@@ -3603,13 +3646,17 @@ function hasNativeWatchBinding() {
|
|
|
3603
3646
|
return false;
|
|
3604
3647
|
}
|
|
3605
3648
|
}
|
|
3606
|
-
var log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3649
|
+
var import_node_path5, import_node_url2, import_meta3, log2, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3607
3650
|
var init_native_bridge = __esm({
|
|
3608
3651
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
3652
|
+
"use strict";
|
|
3653
|
+
import_node_path5 = __toESM(require("path"), 1);
|
|
3654
|
+
import_node_url2 = require("url");
|
|
3609
3655
|
init_src2();
|
|
3656
|
+
import_meta3 = {};
|
|
3610
3657
|
log2 = createDebugLogger("scanner:native");
|
|
3611
|
-
isValidScannerBinding = (
|
|
3612
|
-
const candidate =
|
|
3658
|
+
isValidScannerBinding = (module2) => {
|
|
3659
|
+
const candidate = module2;
|
|
3613
3660
|
return !!(candidate && (candidate.scanWorkspace || candidate.extractClassesFromSource || candidate.hashFileContent || candidate.cacheRead || candidate.cacheWrite));
|
|
3614
3661
|
};
|
|
3615
3662
|
createScannerBridgeLoader = () => {
|
|
@@ -3686,6 +3733,20 @@ var init_native_bridge = __esm({
|
|
|
3686
3733
|
resetScannerBridgeCache = scannerBridgeLoader.reset;
|
|
3687
3734
|
}
|
|
3688
3735
|
});
|
|
3736
|
+
|
|
3737
|
+
// src/umbrella/next.ts
|
|
3738
|
+
var next_exports = {};
|
|
3739
|
+
__export(next_exports, {
|
|
3740
|
+
NextAdapterOptionsSchema: () => NextAdapterOptionsSchema,
|
|
3741
|
+
StaticCssWebpackPlugin: () => StaticCssWebpackPlugin,
|
|
3742
|
+
parseNextAdapterOptions: () => parseNextAdapterOptions,
|
|
3743
|
+
setFileStaticCss: () => setFileStaticCss,
|
|
3744
|
+
withTailwindStyled: () => withTailwindStyled
|
|
3745
|
+
});
|
|
3746
|
+
module.exports = __toCommonJS(next_exports);
|
|
3747
|
+
|
|
3748
|
+
// packages/presentation/next/src/schemas.ts
|
|
3749
|
+
var import_zod = require("zod");
|
|
3689
3750
|
var formatIssues = (error) => error.issues.map((issue) => {
|
|
3690
3751
|
const p = issue.path.length > 0 ? issue.path.join(".") : "<root>";
|
|
3691
3752
|
return `${p}: ${issue.message}`;
|
|
@@ -3695,34 +3756,45 @@ var parseWithSchema = (schema, data, label) => {
|
|
|
3695
3756
|
if (parsed.success) return parsed.data;
|
|
3696
3757
|
throw new TypeError(`${label}: ${formatIssues(parsed.error)}`);
|
|
3697
3758
|
};
|
|
3698
|
-
var NextAdapterOptionsSchema =
|
|
3699
|
-
mode:
|
|
3700
|
-
autoClientBoundary:
|
|
3701
|
-
addDataAttr:
|
|
3702
|
-
hoist:
|
|
3703
|
-
routeCss:
|
|
3704
|
-
incremental:
|
|
3705
|
-
verbose:
|
|
3706
|
-
include:
|
|
3707
|
-
exclude:
|
|
3759
|
+
var NextAdapterOptionsSchema = import_zod.z.object({
|
|
3760
|
+
mode: import_zod.z.literal("zero-runtime").optional(),
|
|
3761
|
+
autoClientBoundary: import_zod.z.boolean().optional(),
|
|
3762
|
+
addDataAttr: import_zod.z.boolean().optional(),
|
|
3763
|
+
hoist: import_zod.z.boolean().optional(),
|
|
3764
|
+
routeCss: import_zod.z.boolean().optional(),
|
|
3765
|
+
incremental: import_zod.z.boolean().optional(),
|
|
3766
|
+
verbose: import_zod.z.boolean().optional(),
|
|
3767
|
+
include: import_zod.z.instanceof(RegExp).optional(),
|
|
3768
|
+
exclude: import_zod.z.instanceof(RegExp).optional()
|
|
3708
3769
|
});
|
|
3709
3770
|
var parseNextAdapterOptions = (options) => parseWithSchema(NextAdapterOptionsSchema, options ?? {}, "next adapter options are invalid");
|
|
3710
3771
|
|
|
3711
3772
|
// packages/presentation/next/src/withTailwindStyled.ts
|
|
3773
|
+
var import_node_fs9 = __toESM(require("fs"), 1);
|
|
3774
|
+
var import_node_module7 = require("module");
|
|
3775
|
+
var import_node_path10 = __toESM(require("path"), 1);
|
|
3712
3776
|
init_src2();
|
|
3713
3777
|
|
|
3714
3778
|
// packages/domain/scanner/src/index.ts
|
|
3779
|
+
var import_node_fs6 = __toESM(require("fs"), 1);
|
|
3780
|
+
var import_node_module6 = require("module");
|
|
3781
|
+
var import_node_path7 = __toESM(require("path"), 1);
|
|
3782
|
+
var import_node_url3 = require("url");
|
|
3783
|
+
var import_node_worker_threads = require("worker_threads");
|
|
3715
3784
|
init_src2();
|
|
3716
3785
|
|
|
3717
3786
|
// packages/domain/scanner/src/cache-native.ts
|
|
3787
|
+
var import_node_fs5 = __toESM(require("fs"), 1);
|
|
3788
|
+
var import_node_path6 = __toESM(require("path"), 1);
|
|
3718
3789
|
init_native_bridge();
|
|
3719
3790
|
function defaultCachePath(rootDir, cacheDir) {
|
|
3720
|
-
const dir = cacheDir ?
|
|
3721
|
-
return
|
|
3791
|
+
const dir = cacheDir ? import_node_path6.default.resolve(rootDir, cacheDir) : import_node_path6.default.join(process.cwd(), ".cache", "tailwind-styled");
|
|
3792
|
+
return import_node_path6.default.join(dir, "scanner-cache.json");
|
|
3722
3793
|
}
|
|
3794
|
+
var STALE_THRESHOLD_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
3723
3795
|
function readCache(rootDir, cacheDir) {
|
|
3724
3796
|
const cachePath = defaultCachePath(rootDir, cacheDir);
|
|
3725
|
-
|
|
3797
|
+
import_node_fs5.default.mkdirSync(import_node_path6.default.dirname(cachePath), { recursive: true });
|
|
3726
3798
|
const result = cacheReadNative(cachePath);
|
|
3727
3799
|
if (!result) return [];
|
|
3728
3800
|
return result.entries.map((e) => ({
|
|
@@ -3737,7 +3809,7 @@ function readCache(rootDir, cacheDir) {
|
|
|
3737
3809
|
}
|
|
3738
3810
|
function writeCache(rootDir, entries, cacheDir) {
|
|
3739
3811
|
const cachePath = defaultCachePath(rootDir, cacheDir);
|
|
3740
|
-
|
|
3812
|
+
import_node_fs5.default.mkdirSync(import_node_path6.default.dirname(cachePath), { recursive: true });
|
|
3741
3813
|
const success = cacheWriteNative(cachePath, entries);
|
|
3742
3814
|
if (!success) {
|
|
3743
3815
|
throw new Error(
|
|
@@ -3761,6 +3833,7 @@ function filePriority(mtimeMs, size, cached, nowMs = Date.now()) {
|
|
|
3761
3833
|
init_native_bridge();
|
|
3762
3834
|
|
|
3763
3835
|
// packages/domain/scanner/src/schemas.ts
|
|
3836
|
+
var import_zod2 = require("zod");
|
|
3764
3837
|
init_src2();
|
|
3765
3838
|
var formatIssuePath2 = (path12) => path12.length > 0 ? path12.map(
|
|
3766
3839
|
(segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
|
|
@@ -3780,40 +3853,40 @@ var parseWithSchema2 = (schema, data, label) => {
|
|
|
3780
3853
|
parsed.error
|
|
3781
3854
|
);
|
|
3782
3855
|
};
|
|
3783
|
-
var NonNegativeIntegerSchema =
|
|
3784
|
-
var ScanWorkspaceOptionsSchema =
|
|
3785
|
-
includeExtensions:
|
|
3786
|
-
ignoreDirectories:
|
|
3787
|
-
useCache:
|
|
3788
|
-
cacheDir:
|
|
3789
|
-
smartInvalidation:
|
|
3856
|
+
var NonNegativeIntegerSchema = import_zod2.z.number().int().min(0);
|
|
3857
|
+
var ScanWorkspaceOptionsSchema = import_zod2.z.object({
|
|
3858
|
+
includeExtensions: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
3859
|
+
ignoreDirectories: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
3860
|
+
useCache: import_zod2.z.boolean().optional(),
|
|
3861
|
+
cacheDir: import_zod2.z.string().min(1).optional(),
|
|
3862
|
+
smartInvalidation: import_zod2.z.boolean().optional()
|
|
3790
3863
|
});
|
|
3791
|
-
var ScanFileResultSchema =
|
|
3792
|
-
file:
|
|
3793
|
-
classes:
|
|
3794
|
-
hash:
|
|
3864
|
+
var ScanFileResultSchema = import_zod2.z.object({
|
|
3865
|
+
file: import_zod2.z.string(),
|
|
3866
|
+
classes: import_zod2.z.array(import_zod2.z.string()),
|
|
3867
|
+
hash: import_zod2.z.string().optional()
|
|
3795
3868
|
});
|
|
3796
|
-
var ScanWorkspaceResultSchema =
|
|
3797
|
-
files:
|
|
3869
|
+
var ScanWorkspaceResultSchema = import_zod2.z.object({
|
|
3870
|
+
files: import_zod2.z.array(ScanFileResultSchema),
|
|
3798
3871
|
totalFiles: NonNegativeIntegerSchema,
|
|
3799
|
-
uniqueClasses:
|
|
3872
|
+
uniqueClasses: import_zod2.z.array(import_zod2.z.string())
|
|
3800
3873
|
}).refine((value) => value.totalFiles === value.files.length, {
|
|
3801
3874
|
message: "scan result totalFiles must match files.length",
|
|
3802
3875
|
path: ["totalFiles"]
|
|
3803
3876
|
});
|
|
3804
|
-
|
|
3805
|
-
rootDir:
|
|
3877
|
+
var ScannerWorkerRequestSchema = import_zod2.z.object({
|
|
3878
|
+
rootDir: import_zod2.z.string().min(1),
|
|
3806
3879
|
options: ScanWorkspaceOptionsSchema.optional()
|
|
3807
3880
|
});
|
|
3808
|
-
var ScannerWorkerSuccessMessageSchema =
|
|
3809
|
-
ok:
|
|
3881
|
+
var ScannerWorkerSuccessMessageSchema = import_zod2.z.object({
|
|
3882
|
+
ok: import_zod2.z.literal(true),
|
|
3810
3883
|
result: ScanWorkspaceResultSchema
|
|
3811
3884
|
});
|
|
3812
|
-
var ScannerWorkerErrorMessageSchema =
|
|
3813
|
-
ok:
|
|
3814
|
-
error:
|
|
3885
|
+
var ScannerWorkerErrorMessageSchema = import_zod2.z.object({
|
|
3886
|
+
ok: import_zod2.z.literal(false),
|
|
3887
|
+
error: import_zod2.z.string().optional()
|
|
3815
3888
|
});
|
|
3816
|
-
|
|
3889
|
+
var ScannerWorkerMessageSchema = import_zod2.z.union([
|
|
3817
3890
|
ScannerWorkerSuccessMessageSchema,
|
|
3818
3891
|
ScannerWorkerErrorMessageSchema
|
|
3819
3892
|
]);
|
|
@@ -3821,13 +3894,14 @@ var parseScanWorkspaceOptions = (options) => parseWithSchema2(ScanWorkspaceOptio
|
|
|
3821
3894
|
var parseScanWorkspaceResult = (result) => parseWithSchema2(ScanWorkspaceResultSchema, result, "scanner workspace result is invalid");
|
|
3822
3895
|
|
|
3823
3896
|
// packages/domain/scanner/src/index.ts
|
|
3897
|
+
var import_meta4 = {};
|
|
3824
3898
|
var log3 = createLogger2("scanner");
|
|
3825
3899
|
function getRuntimeDir() {
|
|
3826
3900
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
3827
3901
|
return __dirname;
|
|
3828
3902
|
}
|
|
3829
|
-
if (typeof
|
|
3830
|
-
return
|
|
3903
|
+
if (typeof import_meta4 !== "undefined" && __importMetaUrl) {
|
|
3904
|
+
return import_node_path7.default.dirname((0, import_node_url3.fileURLToPath)(__importMetaUrl));
|
|
3831
3905
|
}
|
|
3832
3906
|
return process.cwd();
|
|
3833
3907
|
}
|
|
@@ -3842,7 +3916,7 @@ var createNativeParserLoader = () => {
|
|
|
3842
3916
|
const loadNativeParserBinding = () => {
|
|
3843
3917
|
if (_state.binding !== void 0) return _state.binding;
|
|
3844
3918
|
const runtimeDir = getRuntimeDir();
|
|
3845
|
-
const req =
|
|
3919
|
+
const req = (0, import_node_module6.createRequire)(import_node_path7.default.join(runtimeDir, "noop.cjs"));
|
|
3846
3920
|
const _platform = process.platform;
|
|
3847
3921
|
const _arch = process.arch;
|
|
3848
3922
|
const _platformArch = `${_platform}-${_arch}`;
|
|
@@ -3850,27 +3924,27 @@ var createNativeParserLoader = () => {
|
|
|
3850
3924
|
const candidates = [
|
|
3851
3925
|
// ── binaryName baru: tailwind-styled-native (napi-rs naming) ──
|
|
3852
3926
|
// cwd = repo root saat run dari root, atau package dir saat workspaces
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3927
|
+
import_node_path7.default.resolve(process.cwd(), "native", "tailwind-styled-native.node"),
|
|
3928
|
+
import_node_path7.default.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArch}.node`),
|
|
3929
|
+
import_node_path7.default.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArchGnu}.node`),
|
|
3856
3930
|
// runtimeDir = dist/ → naik 1 level ke package root (npm install case)
|
|
3857
3931
|
// e.g. node_modules/tailwind-styled-v4/dist/ → node_modules/tailwind-styled-v4/native/
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3932
|
+
import_node_path7.default.resolve(runtimeDir, "..", "native", "tailwind-styled-native.node"),
|
|
3933
|
+
import_node_path7.default.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArch}.node`),
|
|
3934
|
+
import_node_path7.default.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
|
|
3861
3935
|
// runtimeDir = dist/ → naik 4 level ke repo root (monorepo dev case)
|
|
3862
|
-
|
|
3863
|
-
|
|
3936
|
+
import_node_path7.default.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind-styled-native.node"),
|
|
3937
|
+
import_node_path7.default.resolve(runtimeDir, "..", "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
|
|
3864
3938
|
// 3 level fallback (jika package di-nest lebih dangkal)
|
|
3865
|
-
|
|
3866
|
-
|
|
3939
|
+
import_node_path7.default.resolve(runtimeDir, "..", "..", "..", "native", "tailwind-styled-native.node"),
|
|
3940
|
+
import_node_path7.default.resolve(runtimeDir, "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
|
|
3867
3941
|
// ── binaryName lama: tailwind_styled_parser (backward compat) ──
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3942
|
+
import_node_path7.default.resolve(process.cwd(), "native/tailwind_styled_parser.node"),
|
|
3943
|
+
import_node_path7.default.resolve(process.cwd(), "native/build/Release/tailwind_styled_parser.node"),
|
|
3944
|
+
import_node_path7.default.resolve(runtimeDir, "..", "native", "tailwind_styled_parser.node"),
|
|
3945
|
+
import_node_path7.default.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind_styled_parser.node"),
|
|
3946
|
+
import_node_path7.default.resolve(runtimeDir, "..", "..", "..", "native", "tailwind_styled_parser.node"),
|
|
3947
|
+
import_node_path7.default.resolve(
|
|
3874
3948
|
runtimeDir,
|
|
3875
3949
|
"..",
|
|
3876
3950
|
"..",
|
|
@@ -3882,7 +3956,7 @@ var createNativeParserLoader = () => {
|
|
|
3882
3956
|
)
|
|
3883
3957
|
];
|
|
3884
3958
|
for (const fullPath of candidates) {
|
|
3885
|
-
if (!
|
|
3959
|
+
if (!import_node_fs6.default.existsSync(fullPath)) continue;
|
|
3886
3960
|
try {
|
|
3887
3961
|
const required = req(fullPath);
|
|
3888
3962
|
if (required && (typeof required.extractClassesFromSource === "function" || typeof required.parseClasses === "function" || typeof required.parse_classes === "function")) {
|
|
@@ -3923,19 +3997,19 @@ function collectCandidates(rootDir, ignoreDirectories, extensionSet) {
|
|
|
3923
3997
|
if (!currentDir) continue;
|
|
3924
3998
|
const entries = (() => {
|
|
3925
3999
|
try {
|
|
3926
|
-
return
|
|
4000
|
+
return import_node_fs6.default.readdirSync(currentDir, { withFileTypes: true });
|
|
3927
4001
|
} catch {
|
|
3928
4002
|
return [];
|
|
3929
4003
|
}
|
|
3930
4004
|
})();
|
|
3931
4005
|
for (const entry of entries) {
|
|
3932
|
-
const fullPath =
|
|
4006
|
+
const fullPath = import_node_path7.default.join(currentDir, entry.name);
|
|
3933
4007
|
if (entry.isDirectory()) {
|
|
3934
4008
|
if (!ignoreDirectories.has(entry.name)) directories.push(fullPath);
|
|
3935
4009
|
continue;
|
|
3936
4010
|
}
|
|
3937
4011
|
if (!entry.isFile()) continue;
|
|
3938
|
-
if (!extensionSet.has(
|
|
4012
|
+
if (!extensionSet.has(import_node_path7.default.extname(entry.name))) continue;
|
|
3939
4013
|
candidates.push(fullPath);
|
|
3940
4014
|
}
|
|
3941
4015
|
}
|
|
@@ -3979,7 +4053,7 @@ function scanWorkspace2(rootDir, options = {}) {
|
|
|
3979
4053
|
const extensionSet = buildExtensionSet(includeExtensions);
|
|
3980
4054
|
const ignoreDirectories = new Set(normalizedOptions.ignoreDirectories ?? DEFAULT_IGNORES);
|
|
3981
4055
|
const useCache = normalizedOptions.useCache ?? true;
|
|
3982
|
-
normalizedOptions.smartInvalidation ?? true;
|
|
4056
|
+
const _smartInvalidation = normalizedOptions.smartInvalidation ?? true;
|
|
3983
4057
|
const files = [];
|
|
3984
4058
|
const unique = /* @__PURE__ */ new Set();
|
|
3985
4059
|
const candidates = collectCandidates(rootDir, ignoreDirectories, extensionSet);
|
|
@@ -4019,7 +4093,7 @@ function scanWorkspace2(rootDir, options = {}) {
|
|
|
4019
4093
|
for (const filePath of candidates) {
|
|
4020
4094
|
const stat = (() => {
|
|
4021
4095
|
try {
|
|
4022
|
-
return
|
|
4096
|
+
return import_node_fs6.default.statSync(filePath);
|
|
4023
4097
|
} catch {
|
|
4024
4098
|
return null;
|
|
4025
4099
|
}
|
|
@@ -4045,7 +4119,7 @@ function scanWorkspace2(rootDir, options = {}) {
|
|
|
4045
4119
|
for (const { filePath, stat, size, cached } of ranked) {
|
|
4046
4120
|
const content = (() => {
|
|
4047
4121
|
try {
|
|
4048
|
-
return
|
|
4122
|
+
return import_node_fs6.default.readFileSync(filePath, "utf8");
|
|
4049
4123
|
} catch {
|
|
4050
4124
|
return null;
|
|
4051
4125
|
}
|
|
@@ -4110,6 +4184,8 @@ function scanWorkspace2(rootDir, options = {}) {
|
|
|
4110
4184
|
init_src2();
|
|
4111
4185
|
|
|
4112
4186
|
// packages/presentation/next/src/incrementalOrchestrator.ts
|
|
4187
|
+
var import_node_fs7 = __toESM(require("fs"), 1);
|
|
4188
|
+
var import_node_path8 = __toESM(require("path"), 1);
|
|
4113
4189
|
init_src();
|
|
4114
4190
|
var _fingerprintCache = /* @__PURE__ */ new Map();
|
|
4115
4191
|
function getNative2() {
|
|
@@ -4121,10 +4197,10 @@ function getNative2() {
|
|
|
4121
4197
|
}
|
|
4122
4198
|
function fingerprintFile(filePath) {
|
|
4123
4199
|
try {
|
|
4124
|
-
const stat =
|
|
4200
|
+
const stat = import_node_fs7.default.statSync(filePath);
|
|
4125
4201
|
const native = getNative2();
|
|
4126
4202
|
if (native?.create_fingerprint) {
|
|
4127
|
-
const content =
|
|
4203
|
+
const content = import_node_fs7.default.readFileSync(filePath, "utf-8");
|
|
4128
4204
|
const hash = native.create_fingerprint(filePath, content);
|
|
4129
4205
|
return { hash, mtime: stat.mtimeMs };
|
|
4130
4206
|
}
|
|
@@ -4164,14 +4240,18 @@ function hasSourceChanged(sourceFiles) {
|
|
|
4164
4240
|
}
|
|
4165
4241
|
function isIncrementalEnabled(cwd) {
|
|
4166
4242
|
try {
|
|
4167
|
-
const configPath =
|
|
4168
|
-
if (!
|
|
4169
|
-
const config = JSON.parse(
|
|
4243
|
+
const configPath = import_node_path8.default.join(cwd, "tailwind-styled.config.json");
|
|
4244
|
+
if (!import_node_fs7.default.existsSync(configPath)) return false;
|
|
4245
|
+
const config = JSON.parse(import_node_fs7.default.readFileSync(configPath, "utf-8"));
|
|
4170
4246
|
return config.compiler?.incremental === true;
|
|
4171
4247
|
} catch {
|
|
4172
4248
|
return false;
|
|
4173
4249
|
}
|
|
4174
4250
|
}
|
|
4251
|
+
|
|
4252
|
+
// packages/presentation/next/src/staticCssWebpackPlugin.ts
|
|
4253
|
+
var import_node_fs8 = __toESM(require("fs"), 1);
|
|
4254
|
+
var import_node_path9 = __toESM(require("path"), 1);
|
|
4175
4255
|
var _fileStaticCssMap = /* @__PURE__ */ new Map();
|
|
4176
4256
|
function setFileStaticCss(filepath, css) {
|
|
4177
4257
|
if (css && css.trim()) {
|
|
@@ -4205,14 +4285,14 @@ var StaticCssWebpackPlugin = class _StaticCssWebpackPlugin {
|
|
|
4205
4285
|
static PLUGIN_NAME = "TailwindStyledStaticCss";
|
|
4206
4286
|
outPath;
|
|
4207
4287
|
constructor(safelistPath) {
|
|
4208
|
-
this.outPath =
|
|
4288
|
+
this.outPath = import_node_path9.default.join(import_node_path9.default.dirname(safelistPath), "_tw-state-static.css");
|
|
4209
4289
|
}
|
|
4210
4290
|
apply(compiler) {
|
|
4211
4291
|
compiler.hooks.done.tap(_StaticCssWebpackPlugin.PLUGIN_NAME, () => {
|
|
4212
4292
|
try {
|
|
4213
4293
|
const content = buildContent(_fileStaticCssMap);
|
|
4214
|
-
|
|
4215
|
-
|
|
4294
|
+
import_node_fs8.default.mkdirSync(import_node_path9.default.dirname(this.outPath), { recursive: true });
|
|
4295
|
+
import_node_fs8.default.writeFileSync(
|
|
4216
4296
|
this.outPath,
|
|
4217
4297
|
HEADER + (content || "/* no static rules yet */") + "\n",
|
|
4218
4298
|
"utf-8"
|
|
@@ -4225,6 +4305,7 @@ var StaticCssWebpackPlugin = class _StaticCssWebpackPlugin {
|
|
|
4225
4305
|
};
|
|
4226
4306
|
|
|
4227
4307
|
// packages/presentation/next/src/withTailwindStyled.ts
|
|
4308
|
+
var import_meta5 = {};
|
|
4228
4309
|
function getDirnameFromUrl2(importMetaUrl) {
|
|
4229
4310
|
if (typeof importMetaUrl !== "string") return "";
|
|
4230
4311
|
if (importMetaUrl.startsWith("file://")) {
|
|
@@ -4238,20 +4319,23 @@ function getDirnameFromUrl2(importMetaUrl) {
|
|
|
4238
4319
|
const lastSlash = Math.max(importMetaUrl.lastIndexOf("/"), importMetaUrl.lastIndexOf("\\"));
|
|
4239
4320
|
return lastSlash > 0 ? importMetaUrl.slice(0, lastSlash) : "";
|
|
4240
4321
|
}
|
|
4241
|
-
var require4 =
|
|
4242
|
-
|
|
4322
|
+
var require4 = (0, import_node_module7.createRequire)(
|
|
4323
|
+
typeof import_meta5 !== "undefined" && __importMetaUrl ? __importMetaUrl : typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown"
|
|
4324
|
+
);
|
|
4325
|
+
var _importMetaUrl = typeof import_meta5 !== "undefined" && __importMetaUrl ? __importMetaUrl : typeof __filename !== "undefined" ? `file://${__filename}` : void 0;
|
|
4326
|
+
var resolveRuntimeDir2 = () => _importMetaUrl ? getDirnameFromUrl2(_importMetaUrl) : __dirname;
|
|
4243
4327
|
var resolveLoaderPath2 = (basename) => {
|
|
4244
4328
|
try {
|
|
4245
|
-
return resolveLoaderPath(basename,
|
|
4329
|
+
return resolveLoaderPath(basename, _importMetaUrl ?? `file://${__filename}`);
|
|
4246
4330
|
} catch {
|
|
4247
4331
|
const runtimeDir = resolveRuntimeDir2();
|
|
4248
4332
|
const candidates = [
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4333
|
+
import_node_path10.default.resolve(runtimeDir, `${basename}.mjs`),
|
|
4334
|
+
import_node_path10.default.resolve(runtimeDir, `${basename}.js`),
|
|
4335
|
+
import_node_path10.default.resolve(runtimeDir, `${basename}.cjs`)
|
|
4252
4336
|
];
|
|
4253
4337
|
for (const candidate of candidates) {
|
|
4254
|
-
if (
|
|
4338
|
+
if (import_node_fs9.default.existsSync(candidate)) {
|
|
4255
4339
|
return candidate;
|
|
4256
4340
|
}
|
|
4257
4341
|
}
|
|
@@ -4289,7 +4373,7 @@ var createLoaderOptions = (options) => {
|
|
|
4289
4373
|
preserveImports: true
|
|
4290
4374
|
};
|
|
4291
4375
|
if (options.verbose !== void 0) opts.verbose = options.verbose;
|
|
4292
|
-
opts.safelistPath = options.safelistPath ??
|
|
4376
|
+
opts.safelistPath = options.safelistPath ?? import_node_path10.default.join(process.cwd(), ".next", "tailwind-styled-safelist.css");
|
|
4293
4377
|
return Object.freeze(opts);
|
|
4294
4378
|
};
|
|
4295
4379
|
var buildTurbopackRules = (loaderPath, loaderOptions) => {
|
|
@@ -4302,7 +4386,7 @@ var buildTurbopackRules = (loaderPath, loaderOptions) => {
|
|
|
4302
4386
|
])
|
|
4303
4387
|
);
|
|
4304
4388
|
};
|
|
4305
|
-
var normalizeLoaderPath = (loaderPath) =>
|
|
4389
|
+
var normalizeLoaderPath = (loaderPath) => import_node_path10.default.resolve(loaderPath);
|
|
4306
4390
|
var applyWebpackRule = (config, options, loaderPath) => {
|
|
4307
4391
|
const loaderOptions = createLoaderOptions(options);
|
|
4308
4392
|
const rules = config.module?.rules ?? [];
|
|
@@ -4319,7 +4403,7 @@ var applyWebpackRule = (config, options, loaderPath) => {
|
|
|
4319
4403
|
enforce: "pre",
|
|
4320
4404
|
use: [{ loader: loaderPath, options: loaderOptions }]
|
|
4321
4405
|
};
|
|
4322
|
-
const safelistPath = loaderOptions.safelistPath ??
|
|
4406
|
+
const safelistPath = loaderOptions.safelistPath ?? import_node_path10.default.join(process.cwd(), ".next", "tailwind-styled-safelist.css");
|
|
4323
4407
|
const pluginAlreadyRegistered = (config.plugins ?? []).some(
|
|
4324
4408
|
(p) => p?.constructor?.name === StaticCssWebpackPlugin.PLUGIN_NAME
|
|
4325
4409
|
);
|
|
@@ -4419,17 +4503,17 @@ function withTailwindStyled(options = {}) {
|
|
|
4419
4503
|
return fullCss.slice(startIdx, endIdx + 1);
|
|
4420
4504
|
};
|
|
4421
4505
|
var extractUtilitiesLayer = extractUtilitiesLayer2;
|
|
4422
|
-
const twClassesDir =
|
|
4423
|
-
|
|
4424
|
-
setGlobalLogFile(
|
|
4425
|
-
|
|
4426
|
-
|
|
4506
|
+
const twClassesDir = import_node_path10.default.join(import_node_path10.default.dirname(safelistPath), "tw-classes");
|
|
4507
|
+
import_node_fs9.default.mkdirSync(twClassesDir, { recursive: true });
|
|
4508
|
+
setGlobalLogFile(import_node_path10.default.join(twClassesDir, "_tw-build.log"));
|
|
4509
|
+
import_node_fs9.default.writeFileSync(
|
|
4510
|
+
import_node_path10.default.join(twClassesDir, "_start.txt"),
|
|
4427
4511
|
String(Date.now()),
|
|
4428
4512
|
"utf-8"
|
|
4429
4513
|
);
|
|
4430
|
-
const stateStaticPath =
|
|
4514
|
+
const stateStaticPath = import_node_path10.default.join(twClassesDir, TW_STATE_STATIC_FILENAME);
|
|
4431
4515
|
try {
|
|
4432
|
-
|
|
4516
|
+
import_node_fs9.default.writeFileSync(
|
|
4433
4517
|
stateStaticPath,
|
|
4434
4518
|
"/* tw-state-static.css \u2014 placeholder, akan di-generate setelah scan */\n",
|
|
4435
4519
|
"utf-8"
|
|
@@ -4445,14 +4529,14 @@ function withTailwindStyled(options = {}) {
|
|
|
4445
4529
|
"src/index.css",
|
|
4446
4530
|
"styles/globals.css"
|
|
4447
4531
|
];
|
|
4448
|
-
const safelistDir =
|
|
4532
|
+
const safelistDir = import_node_path10.default.dirname(safelistPath);
|
|
4449
4533
|
for (const candidate of CSS_CANDIDATES) {
|
|
4450
|
-
const candidatePath =
|
|
4451
|
-
if (!
|
|
4452
|
-
const content =
|
|
4534
|
+
const candidatePath = import_node_path10.default.join(process.cwd(), candidate);
|
|
4535
|
+
if (!import_node_fs9.default.existsSync(candidatePath)) continue;
|
|
4536
|
+
const content = import_node_fs9.default.readFileSync(candidatePath, "utf-8");
|
|
4453
4537
|
if (content.includes("_tw-state-static.css")) break;
|
|
4454
|
-
const globalsDir =
|
|
4455
|
-
const rel =
|
|
4538
|
+
const globalsDir = import_node_path10.default.dirname(candidatePath);
|
|
4539
|
+
const rel = import_node_path10.default.relative(globalsDir, stateStaticPath).replace(/\\/g, "/");
|
|
4456
4540
|
const importLine = `@import "./${rel}";`;
|
|
4457
4541
|
const tailwindImportRe = /(@import\s+["']tailwindcss["']\s*;[^\n]*\n?)/;
|
|
4458
4542
|
let updated;
|
|
@@ -4466,7 +4550,7 @@ function withTailwindStyled(options = {}) {
|
|
|
4466
4550
|
updated = `${importLine}
|
|
4467
4551
|
${content}`;
|
|
4468
4552
|
}
|
|
4469
|
-
|
|
4553
|
+
import_node_fs9.default.writeFileSync(candidatePath, updated, "utf-8");
|
|
4470
4554
|
if (options.verbose) {
|
|
4471
4555
|
console.log(
|
|
4472
4556
|
`[tailwind-styled] Auto-injected "${importLine}" into ${candidate}`
|
|
@@ -4478,27 +4562,27 @@ ${content}`;
|
|
|
4478
4562
|
}
|
|
4479
4563
|
if (!process.env.TW_NATIVE_PATH) {
|
|
4480
4564
|
const runtimeDir = resolveRuntimeDir2();
|
|
4481
|
-
const nativePath =
|
|
4482
|
-
if (
|
|
4565
|
+
const nativePath = import_node_path10.default.resolve(runtimeDir, "..", "native", "tailwind-styled-native.node");
|
|
4566
|
+
if (import_node_fs9.default.existsSync(nativePath)) {
|
|
4483
4567
|
process.env.TW_NATIVE_PATH = nativePath;
|
|
4484
4568
|
}
|
|
4485
4569
|
}
|
|
4486
|
-
const srcDir =
|
|
4487
|
-
if (
|
|
4570
|
+
const srcDir = import_node_path10.default.join(process.cwd(), "src");
|
|
4571
|
+
if (import_node_fs9.default.existsSync(srcDir)) {
|
|
4488
4572
|
try {
|
|
4489
4573
|
const result = scanWorkspace2(srcDir);
|
|
4490
4574
|
if (result.uniqueClasses.length > 0) {
|
|
4491
4575
|
let atomicWriteFile2 = function(filePath, content) {
|
|
4492
4576
|
const tmpPath = `${filePath}.tmp`;
|
|
4493
4577
|
try {
|
|
4494
|
-
|
|
4495
|
-
|
|
4578
|
+
import_node_fs9.default.writeFileSync(tmpPath, content, "utf-8");
|
|
4579
|
+
import_node_fs9.default.renameSync(tmpPath, filePath);
|
|
4496
4580
|
} catch {
|
|
4497
4581
|
try {
|
|
4498
|
-
|
|
4582
|
+
import_node_fs9.default.unlinkSync(tmpPath);
|
|
4499
4583
|
} catch {
|
|
4500
4584
|
}
|
|
4501
|
-
|
|
4585
|
+
import_node_fs9.default.writeFileSync(filePath, content, "utf-8");
|
|
4502
4586
|
}
|
|
4503
4587
|
};
|
|
4504
4588
|
var atomicWriteFile = atomicWriteFile2;
|
|
@@ -4561,14 +4645,14 @@ ${content}`;
|
|
|
4561
4645
|
"styles/globals.css"
|
|
4562
4646
|
];
|
|
4563
4647
|
try {
|
|
4564
|
-
const twConfigPath =
|
|
4565
|
-
if (
|
|
4566
|
-
const twConfig = JSON.parse(
|
|
4648
|
+
const twConfigPath = import_node_path10.default.join(process.cwd(), "tailwind-styled.config.json");
|
|
4649
|
+
if (import_node_fs9.default.existsSync(twConfigPath)) {
|
|
4650
|
+
const twConfig = JSON.parse(import_node_fs9.default.readFileSync(twConfigPath, "utf-8"));
|
|
4567
4651
|
const cssEntry = twConfig.css?.entry;
|
|
4568
4652
|
if (cssEntry) {
|
|
4569
|
-
const cssEntryPath =
|
|
4570
|
-
if (
|
|
4571
|
-
cssEntryContent =
|
|
4653
|
+
const cssEntryPath = import_node_path10.default.join(process.cwd(), cssEntry);
|
|
4654
|
+
if (import_node_fs9.default.existsSync(cssEntryPath)) {
|
|
4655
|
+
cssEntryContent = import_node_fs9.default.readFileSync(cssEntryPath, "utf-8");
|
|
4572
4656
|
}
|
|
4573
4657
|
}
|
|
4574
4658
|
}
|
|
@@ -4576,9 +4660,9 @@ ${content}`;
|
|
|
4576
4660
|
}
|
|
4577
4661
|
if (!cssEntryContent) {
|
|
4578
4662
|
for (const candidate of CSS_CANDIDATES) {
|
|
4579
|
-
const candidatePath =
|
|
4580
|
-
if (
|
|
4581
|
-
cssEntryContent =
|
|
4663
|
+
const candidatePath = import_node_path10.default.join(process.cwd(), candidate);
|
|
4664
|
+
if (import_node_fs9.default.existsSync(candidatePath)) {
|
|
4665
|
+
cssEntryContent = import_node_fs9.default.readFileSync(candidatePath, "utf-8");
|
|
4582
4666
|
break;
|
|
4583
4667
|
}
|
|
4584
4668
|
}
|
|
@@ -4586,8 +4670,8 @@ ${content}`;
|
|
|
4586
4670
|
if (cssEntryContent) {
|
|
4587
4671
|
cssEntryContent = cssEntryContent.replace(/@source\s+["'][^"']+["']\s*;?\s*/g, "").replace(/←[^\n]*/g, "").trim();
|
|
4588
4672
|
}
|
|
4589
|
-
const initialScanPath =
|
|
4590
|
-
if (!
|
|
4673
|
+
const initialScanPath = import_node_path10.default.join(twClassesDir, "_initial-scan.css");
|
|
4674
|
+
if (!import_node_fs9.default.existsSync(initialScanPath)) {
|
|
4591
4675
|
atomicWriteFile2(
|
|
4592
4676
|
initialScanPath,
|
|
4593
4677
|
"/* tw-classes: initial scan \u2014 generating... */\n@layer utilities {}\n"
|
|
@@ -4595,7 +4679,7 @@ ${content}`;
|
|
|
4595
4679
|
}
|
|
4596
4680
|
const sourceFiles = result.files?.map((f) => f.file) ?? [];
|
|
4597
4681
|
const incremental = isIncrementalEnabled(process.cwd());
|
|
4598
|
-
if (incremental &&
|
|
4682
|
+
if (incremental && import_node_fs9.default.existsSync(initialScanPath) && !hasSourceChanged(sourceFiles)) {
|
|
4599
4683
|
if (options.verbose) console.log("[tailwind-styled] Incremental: tidak ada perubahan, skip regenerate CSS");
|
|
4600
4684
|
} else {
|
|
4601
4685
|
void (async () => {
|
|
@@ -4713,11 +4797,12 @@ ${err.message}`,
|
|
|
4713
4797
|
};
|
|
4714
4798
|
};
|
|
4715
4799
|
}
|
|
4716
|
-
|
|
4717
|
-
exports
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4800
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
4801
|
+
0 && (module.exports = {
|
|
4802
|
+
NextAdapterOptionsSchema,
|
|
4803
|
+
StaticCssWebpackPlugin,
|
|
4804
|
+
parseNextAdapterOptions,
|
|
4805
|
+
setFileStaticCss,
|
|
4806
|
+
withTailwindStyled
|
|
4807
|
+
});
|
|
4723
4808
|
//# sourceMappingURL=next.js.map
|