tailwind-styled-v4 5.0.38 → 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 +19 -19
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +3 -1
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +8 -8
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +3 -1
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +15 -12
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +9 -3
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +71 -49
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +42 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +25 -18
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +15 -5
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +1 -0
- package/dist/dashboard.js.map +1 -1
- package/dist/devtools.js +5 -3
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +3 -1
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +88 -52
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +58 -16
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +39 -29
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +21 -8
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +1 -0
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-registry.js +2 -1
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin.js +1 -0
- package/dist/plugin.js.map +1 -1
- package/dist/preset.js +1 -0
- package/dist/preset.js.map +1 -1
- package/dist/rspack.js +37 -14
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +31 -7
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +1 -0
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime.js +1 -0
- package/dist/runtime.js.map +1 -1
- package/dist/scanner.js +15 -14
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +3 -1
- 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 +66 -30
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +55 -15
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +1 -0
- package/dist/storybook-addon.js.map +1 -1
- package/dist/svelte.js +16 -9
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +12 -4
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +3 -2
- package/dist/syntax.js.map +1 -1
- package/dist/testing.js +1 -0
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +8 -6
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +3 -1
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +25 -18
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +15 -5
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +71 -49
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +42 -13
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +84 -50
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +55 -15
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +16 -9
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +12 -4
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +15 -12
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +9 -3
- 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 +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
|
|
1
2
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
2
3
|
"use strict";
|
|
3
4
|
var __create = Object.create;
|
|
@@ -3117,31 +3118,52 @@ function getNodeModuleRef() {
|
|
|
3117
3118
|
return null;
|
|
3118
3119
|
}
|
|
3119
3120
|
}
|
|
3121
|
+
function getCurrentFileUrl() {
|
|
3122
|
+
if (__importMetaUrl) {
|
|
3123
|
+
return __importMetaUrl;
|
|
3124
|
+
}
|
|
3125
|
+
if (typeof __filename !== "undefined") {
|
|
3126
|
+
return `file://${__filename.replace(/\\/g, "/")}`;
|
|
3127
|
+
}
|
|
3128
|
+
return "file://unknown";
|
|
3129
|
+
}
|
|
3120
3130
|
function getNodePath() {
|
|
3121
3131
|
if (isBrowser) throw new Error("node:path not available in browser");
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3132
|
+
if (!_nodePath) {
|
|
3133
|
+
if (typeof require === "function") {
|
|
3134
|
+
_nodePath = require("path");
|
|
3135
|
+
} else {
|
|
3136
|
+
const nodeRequire = getNodeModuleRef();
|
|
3137
|
+
if (!nodeRequire) throw new Error("require not available");
|
|
3138
|
+
_nodePath = nodeRequire.createRequire(getCurrentFileUrl())("node:path");
|
|
3139
|
+
}
|
|
3140
|
+
}
|
|
3125
3141
|
return _nodePath;
|
|
3126
3142
|
}
|
|
3127
3143
|
function getNodeUrl() {
|
|
3128
3144
|
if (isBrowser) throw new Error("node:url not available in browser");
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3145
|
+
if (!_nodeUrl) {
|
|
3146
|
+
if (typeof require === "function") {
|
|
3147
|
+
_nodeUrl = require("url");
|
|
3148
|
+
} else {
|
|
3149
|
+
const nodeRequire = getNodeModuleRef();
|
|
3150
|
+
if (!nodeRequire) throw new Error("require not available");
|
|
3151
|
+
_nodeUrl = nodeRequire.createRequire(getCurrentFileUrl())("node:url");
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3132
3154
|
return _nodeUrl;
|
|
3133
3155
|
}
|
|
3134
3156
|
function getDirname(importMetaUrl) {
|
|
3135
3157
|
if (isBrowser) return "";
|
|
3158
|
+
if (typeof __dirname !== "undefined") return __dirname;
|
|
3136
3159
|
const nodePath = getNodePath();
|
|
3137
3160
|
const nodeUrl = getNodeUrl();
|
|
3138
3161
|
return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl));
|
|
3139
3162
|
}
|
|
3140
|
-
var
|
|
3163
|
+
var isBrowser, nodeModuleRef, _nodePath, _nodeUrl;
|
|
3141
3164
|
var init_esmHelpers = __esm({
|
|
3142
3165
|
"packages/domain/shared/src/esmHelpers.ts"() {
|
|
3143
3166
|
"use strict";
|
|
3144
|
-
import_meta = {};
|
|
3145
3167
|
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
3146
3168
|
nodeModuleRef = null;
|
|
3147
3169
|
_nodePath = null;
|
|
@@ -3231,16 +3253,17 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
3231
3253
|
}
|
|
3232
3254
|
return { path: null, source: "not-found", platform, tried };
|
|
3233
3255
|
}
|
|
3234
|
-
var import_node_module, fs, path,
|
|
3256
|
+
var import_node_module, fs, path, isBrowser2, _require, PLATFORM_MAP;
|
|
3235
3257
|
var init_native_resolution = __esm({
|
|
3236
3258
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
3237
3259
|
"use strict";
|
|
3238
3260
|
import_node_module = require("module");
|
|
3239
3261
|
fs = __toESM(require("fs"));
|
|
3240
3262
|
path = __toESM(require("path"));
|
|
3241
|
-
import_meta2 = {};
|
|
3242
3263
|
isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
|
|
3243
|
-
_require =
|
|
3264
|
+
_require = (0, import_node_module.createRequire)(
|
|
3265
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
3266
|
+
);
|
|
3244
3267
|
PLATFORM_MAP = {
|
|
3245
3268
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
3246
3269
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -3360,7 +3383,7 @@ function resolveRuntimeDir(dir, importMetaUrl) {
|
|
|
3360
3383
|
return process.cwd();
|
|
3361
3384
|
}
|
|
3362
3385
|
}
|
|
3363
|
-
var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2,
|
|
3386
|
+
var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2, TwError, _require2;
|
|
3364
3387
|
var init_src = __esm({
|
|
3365
3388
|
"packages/domain/shared/src/index.ts"() {
|
|
3366
3389
|
"use strict";
|
|
@@ -3371,7 +3394,6 @@ var init_src = __esm({
|
|
|
3371
3394
|
import_node_module2 = require("module");
|
|
3372
3395
|
init_esmHelpers();
|
|
3373
3396
|
init_native_resolution();
|
|
3374
|
-
import_meta3 = {};
|
|
3375
3397
|
TwError = class _TwError extends Error {
|
|
3376
3398
|
/** @deprecated Gunakan source */
|
|
3377
3399
|
domain;
|
|
@@ -3424,7 +3446,9 @@ var init_src = __esm({
|
|
|
3424
3446
|
return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
|
|
3425
3447
|
}
|
|
3426
3448
|
};
|
|
3427
|
-
_require2 = (0, import_node_module2.createRequire)(
|
|
3449
|
+
_require2 = (0, import_node_module2.createRequire)(
|
|
3450
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
|
|
3451
|
+
);
|
|
3428
3452
|
}
|
|
3429
3453
|
});
|
|
3430
3454
|
|
|
@@ -3461,8 +3485,8 @@ function getDirname2() {
|
|
|
3461
3485
|
if (typeof __dirname !== "undefined") {
|
|
3462
3486
|
return __dirname;
|
|
3463
3487
|
}
|
|
3464
|
-
if (typeof
|
|
3465
|
-
return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(
|
|
3488
|
+
if (typeof import_meta !== "undefined" && __importMetaUrl) {
|
|
3489
|
+
return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(__importMetaUrl));
|
|
3466
3490
|
}
|
|
3467
3491
|
return process.cwd();
|
|
3468
3492
|
}
|
|
@@ -3667,14 +3691,14 @@ function hasNativeWatchBinding() {
|
|
|
3667
3691
|
return false;
|
|
3668
3692
|
}
|
|
3669
3693
|
}
|
|
3670
|
-
var import_node_path2, import_node_url2,
|
|
3694
|
+
var import_node_path2, import_node_url2, import_meta, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3671
3695
|
var init_native_bridge = __esm({
|
|
3672
3696
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
3673
3697
|
"use strict";
|
|
3674
3698
|
import_node_path2 = __toESM(require("path"), 1);
|
|
3675
3699
|
import_node_url2 = require("url");
|
|
3676
3700
|
init_src();
|
|
3677
|
-
|
|
3701
|
+
import_meta = {};
|
|
3678
3702
|
log = createDebugLogger("scanner:native");
|
|
3679
3703
|
isValidScannerBinding = (module2) => {
|
|
3680
3704
|
const candidate = module2;
|
|
@@ -3864,7 +3888,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
|
|
|
3864
3888
|
}
|
|
3865
3889
|
return mergeResults(allResults);
|
|
3866
3890
|
}
|
|
3867
|
-
var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3,
|
|
3891
|
+
var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
|
|
3868
3892
|
var init_parallel_scanner = __esm({
|
|
3869
3893
|
"packages/domain/scanner/src/parallel-scanner.ts"() {
|
|
3870
3894
|
"use strict";
|
|
@@ -3874,7 +3898,6 @@ var init_parallel_scanner = __esm({
|
|
|
3874
3898
|
import_node_url3 = require("url");
|
|
3875
3899
|
init_src2();
|
|
3876
3900
|
init_native_bridge();
|
|
3877
|
-
import_meta5 = {};
|
|
3878
3901
|
PARALLEL_THRESHOLD = 50;
|
|
3879
3902
|
DEFAULT_CHUNK_SIZE = 150;
|
|
3880
3903
|
if (!import_node_worker_threads.isMainThread && import_node_worker_threads.parentPort) {
|
|
@@ -3891,7 +3914,7 @@ var init_parallel_scanner = __esm({
|
|
|
3891
3914
|
import_node_worker_threads.parentPort.postMessage(msg);
|
|
3892
3915
|
}
|
|
3893
3916
|
}
|
|
3894
|
-
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(
|
|
3917
|
+
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
|
|
3895
3918
|
}
|
|
3896
3919
|
});
|
|
3897
3920
|
|
|
@@ -3983,8 +4006,8 @@ function getRuntimeDir() {
|
|
|
3983
4006
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
3984
4007
|
return __dirname;
|
|
3985
4008
|
}
|
|
3986
|
-
if (typeof
|
|
3987
|
-
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(
|
|
4009
|
+
if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
|
|
4010
|
+
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
|
|
3988
4011
|
}
|
|
3989
4012
|
return process.cwd();
|
|
3990
4013
|
}
|
|
@@ -3993,8 +4016,8 @@ function resolveScannerWorkerModulePath() {
|
|
|
3993
4016
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
3994
4017
|
return __dirname;
|
|
3995
4018
|
}
|
|
3996
|
-
if (typeof
|
|
3997
|
-
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(
|
|
4019
|
+
if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
|
|
4020
|
+
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
|
|
3998
4021
|
}
|
|
3999
4022
|
return process.cwd();
|
|
4000
4023
|
})();
|
|
@@ -4267,7 +4290,7 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
|
|
|
4267
4290
|
return scanWorkspace(rootDir, normalizedOptions);
|
|
4268
4291
|
}
|
|
4269
4292
|
}
|
|
4270
|
-
var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2,
|
|
4293
|
+
var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2, import_meta2, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
|
|
4271
4294
|
var init_src2 = __esm({
|
|
4272
4295
|
"packages/domain/scanner/src/index.ts"() {
|
|
4273
4296
|
"use strict";
|
|
@@ -4283,7 +4306,7 @@ var init_src2 = __esm({
|
|
|
4283
4306
|
init_schemas();
|
|
4284
4307
|
init_schemas();
|
|
4285
4308
|
init_native_bridge();
|
|
4286
|
-
|
|
4309
|
+
import_meta2 = {};
|
|
4287
4310
|
log2 = createLogger("scanner");
|
|
4288
4311
|
SCAN_WORKER_TIMEOUT_MS = 12e4;
|
|
4289
4312
|
createNativeParserLoader = () => {
|
|
@@ -4417,7 +4440,7 @@ async function requireNativeBinding() {
|
|
|
4417
4440
|
if (binding?.analyzeClasses) return binding;
|
|
4418
4441
|
const runtimeDir = resolveRuntimeDir(
|
|
4419
4442
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
4420
|
-
|
|
4443
|
+
__importMetaUrl
|
|
4421
4444
|
);
|
|
4422
4445
|
const candidates = resolveNativeBindingCandidates({
|
|
4423
4446
|
runtimeDir,
|
|
@@ -4447,13 +4470,12 @@ async function requireNativeCssCompiler() {
|
|
|
4447
4470
|
if (typeof binding.compileCss === "function") return binding;
|
|
4448
4471
|
throw new Error(`Native analyzer compileCss binding is missing.`);
|
|
4449
4472
|
}
|
|
4450
|
-
var
|
|
4473
|
+
var isAnalyzerModule, createAnalyzerBindingLoader, analyzerBindingLoader;
|
|
4451
4474
|
var init_binding = __esm({
|
|
4452
4475
|
"packages/domain/analyzer/src/binding.ts"() {
|
|
4453
4476
|
"use strict";
|
|
4454
4477
|
init_src();
|
|
4455
4478
|
init_utils();
|
|
4456
|
-
import_meta7 = {};
|
|
4457
4479
|
isAnalyzerModule = (module2) => {
|
|
4458
4480
|
const candidate = module2;
|
|
4459
4481
|
return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
|
|
@@ -4465,7 +4487,7 @@ var init_binding = __esm({
|
|
|
4465
4487
|
_state.bindingPromise = (async () => {
|
|
4466
4488
|
const runtimeDir = resolveRuntimeDir(
|
|
4467
4489
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
4468
|
-
|
|
4490
|
+
__importMetaUrl
|
|
4469
4491
|
);
|
|
4470
4492
|
const candidates = resolveNativeBindingCandidates({
|
|
4471
4493
|
runtimeDir,
|
|
@@ -6094,12 +6116,12 @@ function buildCreateProgram(context) {
|
|
|
6094
6116
|
async function main(rawArgs = process.argv.slice(2)) {
|
|
6095
6117
|
await runCliMain({
|
|
6096
6118
|
argv: [process.execPath, "create-tailwind-styled", ...rawArgs],
|
|
6097
|
-
importMetaUrl:
|
|
6119
|
+
importMetaUrl: typeof import_meta3 !== "undefined" && __importMetaUrl ? __importMetaUrl : `file://${process.argv[1] ?? "unknown"}`,
|
|
6098
6120
|
commandHint: "create",
|
|
6099
6121
|
buildProgram: buildCreateProgram
|
|
6100
6122
|
});
|
|
6101
6123
|
}
|
|
6102
|
-
var import_node_path19, import_prompts4,
|
|
6124
|
+
var import_node_path19, import_prompts4, import_meta3, TEMPLATE_NAMES, TEMPLATES;
|
|
6103
6125
|
var init_createApp = __esm({
|
|
6104
6126
|
"packages/infrastructure/cli/src/createApp.ts"() {
|
|
6105
6127
|
"use strict";
|
|
@@ -6109,7 +6131,7 @@ var init_createApp = __esm({
|
|
|
6109
6131
|
init_errors();
|
|
6110
6132
|
init_fs();
|
|
6111
6133
|
init_runtime();
|
|
6112
|
-
|
|
6134
|
+
import_meta3 = {};
|
|
6113
6135
|
TEMPLATE_NAMES = ["next-app", "vite-react", "vite-vue", "vite-svelte", "simple"];
|
|
6114
6136
|
TEMPLATES = {
|
|
6115
6137
|
"next-app": createNextApp,
|
|
@@ -6122,12 +6144,11 @@ var init_createApp = __esm({
|
|
|
6122
6144
|
});
|
|
6123
6145
|
|
|
6124
6146
|
// packages/domain/compiler/src/nativeBridge.ts
|
|
6125
|
-
var
|
|
6147
|
+
var _loadNative, log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
|
|
6126
6148
|
var init_nativeBridge = __esm({
|
|
6127
6149
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
6128
6150
|
"use strict";
|
|
6129
6151
|
init_src();
|
|
6130
|
-
import_meta9 = {};
|
|
6131
6152
|
_loadNative = (path30) => require(path30);
|
|
6132
6153
|
log3 = (...args) => {
|
|
6133
6154
|
if (process.env.DEBUG?.includes("compiler:native")) {
|
|
@@ -6154,7 +6175,7 @@ var init_nativeBridge = __esm({
|
|
|
6154
6175
|
}
|
|
6155
6176
|
bridgeLoadAttempted = true;
|
|
6156
6177
|
try {
|
|
6157
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
6178
|
+
const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
|
|
6158
6179
|
const result = resolveNativeBinary(runtimeDir);
|
|
6159
6180
|
if (result.path && result.path.endsWith(".node")) {
|
|
6160
6181
|
try {
|
|
@@ -6265,7 +6286,7 @@ var init_watch = __esm({
|
|
|
6265
6286
|
});
|
|
6266
6287
|
|
|
6267
6288
|
// packages/domain/compiler/src/index.ts
|
|
6268
|
-
var import_node_fs9, import_node_path24, import_node_module4,
|
|
6289
|
+
var import_node_fs9, import_node_path24, import_node_module4, _require3, compileCssFromClasses;
|
|
6269
6290
|
var init_src4 = __esm({
|
|
6270
6291
|
"packages/domain/compiler/src/index.ts"() {
|
|
6271
6292
|
"use strict";
|
|
@@ -6279,8 +6300,9 @@ var init_src4 = __esm({
|
|
|
6279
6300
|
init_cache();
|
|
6280
6301
|
init_redis();
|
|
6281
6302
|
init_watch();
|
|
6282
|
-
|
|
6283
|
-
|
|
6303
|
+
_require3 = (0, import_node_module4.createRequire)(
|
|
6304
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
6305
|
+
);
|
|
6284
6306
|
compileCssFromClasses = (classes, prefix) => {
|
|
6285
6307
|
const native = getNativeBridge();
|
|
6286
6308
|
if (!native?.transformSource) {
|
|
@@ -8939,7 +8961,7 @@ init_errors();
|
|
|
8939
8961
|
init_fs();
|
|
8940
8962
|
init_json();
|
|
8941
8963
|
init_src4();
|
|
8942
|
-
var
|
|
8964
|
+
var import_meta4 = {};
|
|
8943
8965
|
var DEFAULT_TAILWIND_CSS2 = '@import "tailwindcss";\n';
|
|
8944
8966
|
var DEFAULT_TW_CONFIG = `${JSON.stringify(
|
|
8945
8967
|
{
|
|
@@ -9250,7 +9272,8 @@ async function runPreflightCli(rawArgs) {
|
|
|
9250
9272
|
function isDirectExecution() {
|
|
9251
9273
|
const scriptPath = process.argv[1];
|
|
9252
9274
|
if (!scriptPath) return false;
|
|
9253
|
-
|
|
9275
|
+
const currentUrl = typeof import_meta4 !== "undefined" && __importMetaUrl ? __importMetaUrl : `file://${scriptPath}`;
|
|
9276
|
+
return currentUrl === (0, import_node_url7.pathToFileURL)(scriptPath).href;
|
|
9254
9277
|
}
|
|
9255
9278
|
if (isDirectExecution()) {
|
|
9256
9279
|
runPreflightCli(process.argv.slice(2)).catch((error) => {
|
|
@@ -9671,12 +9694,12 @@ init_internal();
|
|
|
9671
9694
|
|
|
9672
9695
|
// packages/domain/engine/src/native-bridge.ts
|
|
9673
9696
|
init_src();
|
|
9674
|
-
var
|
|
9697
|
+
var import_meta5 = {};
|
|
9675
9698
|
var log4 = createDebugLogger("engine:native");
|
|
9676
9699
|
function getDirname3() {
|
|
9677
9700
|
if (typeof __dirname !== "undefined") return __dirname;
|
|
9678
|
-
if (typeof
|
|
9679
|
-
return getDirname(
|
|
9701
|
+
if (typeof import_meta5 !== "undefined" && __importMetaUrl) {
|
|
9702
|
+
return getDirname(__importMetaUrl);
|
|
9680
9703
|
}
|
|
9681
9704
|
return process.cwd();
|
|
9682
9705
|
}
|
|
@@ -11644,15 +11667,14 @@ init_runtime();
|
|
|
11644
11667
|
init_args();
|
|
11645
11668
|
init_args();
|
|
11646
11669
|
init_output();
|
|
11647
|
-
var import_meta13 = {};
|
|
11648
11670
|
async function main2() {
|
|
11649
11671
|
await runCliMain({
|
|
11650
|
-
importMetaUrl:
|
|
11672
|
+
importMetaUrl: __importMetaUrl,
|
|
11651
11673
|
buildProgram: buildMainProgram
|
|
11652
11674
|
});
|
|
11653
11675
|
}
|
|
11654
|
-
var
|
|
11655
|
-
if (process.argv[1] ===
|
|
11676
|
+
var __currentFile = (0, import_node_url8.fileURLToPath)(__importMetaUrl);
|
|
11677
|
+
if (process.argv[1] === __currentFile) {
|
|
11656
11678
|
main2();
|
|
11657
11679
|
}
|
|
11658
11680
|
// Annotate the CommonJS export names for ESM import in node:
|