tailwind-styled-v4 5.0.38 → 5.0.40
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 +18 -20
- 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 +45 -95
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +42 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +23 -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 +83 -53
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +58 -16
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +15 -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 +35 -30
- 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 -2
- 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 +9 -55
- 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 +14 -15
- 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 +64 -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 +15 -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 -3
- 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 -7
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +3 -1
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +23 -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 +45 -95
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +42 -13
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +80 -51
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +55 -15
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +15 -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/tw.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
|
|
2
3
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
3
4
|
"use strict";
|
|
4
5
|
var __create = Object.create;
|
|
@@ -3105,60 +3106,15 @@ var init_errors = __esm({
|
|
|
3105
3106
|
}
|
|
3106
3107
|
});
|
|
3107
3108
|
|
|
3108
|
-
// packages/domain/shared/src/esmHelpers.ts
|
|
3109
|
-
function getNodeModuleRef() {
|
|
3110
|
-
if (isBrowser) return null;
|
|
3111
|
-
if (nodeModuleRef !== null) return nodeModuleRef;
|
|
3112
|
-
try {
|
|
3113
|
-
const test = typeof require === "function" ? require("module") : null;
|
|
3114
|
-
nodeModuleRef = test;
|
|
3115
|
-
return test;
|
|
3116
|
-
} catch {
|
|
3117
|
-
nodeModuleRef = null;
|
|
3118
|
-
return null;
|
|
3119
|
-
}
|
|
3120
|
-
}
|
|
3121
|
-
function getNodePath() {
|
|
3122
|
-
if (isBrowser) throw new Error("node:path not available in browser");
|
|
3123
|
-
const nodeRequire = getNodeModuleRef();
|
|
3124
|
-
if (!nodeRequire) throw new Error("require not available");
|
|
3125
|
-
if (!_nodePath) _nodePath = nodeRequire.createRequire(import_meta.url)("node:path");
|
|
3126
|
-
return _nodePath;
|
|
3127
|
-
}
|
|
3128
|
-
function getNodeUrl() {
|
|
3129
|
-
if (isBrowser) throw new Error("node:url not available in browser");
|
|
3130
|
-
const nodeRequire = getNodeModuleRef();
|
|
3131
|
-
if (!nodeRequire) throw new Error("require not available");
|
|
3132
|
-
if (!_nodeUrl) _nodeUrl = nodeRequire.createRequire(import_meta.url)("node:url");
|
|
3133
|
-
return _nodeUrl;
|
|
3134
|
-
}
|
|
3135
|
-
function getDirname(importMetaUrl) {
|
|
3136
|
-
if (isBrowser) return "";
|
|
3137
|
-
const nodePath = getNodePath();
|
|
3138
|
-
const nodeUrl = getNodeUrl();
|
|
3139
|
-
return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl));
|
|
3140
|
-
}
|
|
3141
|
-
var import_meta, isBrowser, nodeModuleRef, _nodePath, _nodeUrl;
|
|
3142
|
-
var init_esmHelpers = __esm({
|
|
3143
|
-
"packages/domain/shared/src/esmHelpers.ts"() {
|
|
3144
|
-
"use strict";
|
|
3145
|
-
import_meta = {};
|
|
3146
|
-
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
3147
|
-
nodeModuleRef = null;
|
|
3148
|
-
_nodePath = null;
|
|
3149
|
-
_nodeUrl = null;
|
|
3150
|
-
}
|
|
3151
|
-
});
|
|
3152
|
-
|
|
3153
3109
|
// packages/domain/shared/src/native-resolution.ts
|
|
3154
3110
|
function platformKey() {
|
|
3155
|
-
if (
|
|
3111
|
+
if (isBrowser) return "browser";
|
|
3156
3112
|
return `${process.platform}-${process.arch}`;
|
|
3157
3113
|
}
|
|
3158
3114
|
function resolveNativeBinary(runtimeDir) {
|
|
3159
3115
|
const platform = platformKey();
|
|
3160
3116
|
const tried = [];
|
|
3161
|
-
if (
|
|
3117
|
+
if (isBrowser) {
|
|
3162
3118
|
return { path: null, source: "not-found", platform, tried: ["not available in browser"] };
|
|
3163
3119
|
}
|
|
3164
3120
|
if (process.env.TWS_NO_NATIVE === "1" || process.env.TWS_DISABLE_NATIVE === "1") {
|
|
@@ -3232,16 +3188,17 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
3232
3188
|
}
|
|
3233
3189
|
return { path: null, source: "not-found", platform, tried };
|
|
3234
3190
|
}
|
|
3235
|
-
var import_node_module, fs, path,
|
|
3191
|
+
var import_node_module, fs, path, isBrowser, _require, PLATFORM_MAP;
|
|
3236
3192
|
var init_native_resolution = __esm({
|
|
3237
3193
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
3238
3194
|
"use strict";
|
|
3239
3195
|
import_node_module = require("module");
|
|
3240
3196
|
fs = __toESM(require("fs"));
|
|
3241
3197
|
path = __toESM(require("path"));
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3198
|
+
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
3199
|
+
_require = (0, import_node_module.createRequire)(
|
|
3200
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
3201
|
+
);
|
|
3245
3202
|
PLATFORM_MAP = {
|
|
3246
3203
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
3247
3204
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -3361,7 +3318,7 @@ function resolveRuntimeDir(dir, importMetaUrl) {
|
|
|
3361
3318
|
return process.cwd();
|
|
3362
3319
|
}
|
|
3363
3320
|
}
|
|
3364
|
-
var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2,
|
|
3321
|
+
var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2, TwError, _require2;
|
|
3365
3322
|
var init_src = __esm({
|
|
3366
3323
|
"packages/domain/shared/src/index.ts"() {
|
|
3367
3324
|
"use strict";
|
|
@@ -3370,9 +3327,7 @@ var init_src = __esm({
|
|
|
3370
3327
|
import_node_path = __toESM(require("path"));
|
|
3371
3328
|
import_node_url = require("url");
|
|
3372
3329
|
import_node_module2 = require("module");
|
|
3373
|
-
init_esmHelpers();
|
|
3374
3330
|
init_native_resolution();
|
|
3375
|
-
import_meta3 = {};
|
|
3376
3331
|
TwError = class _TwError extends Error {
|
|
3377
3332
|
/** @deprecated Gunakan source */
|
|
3378
3333
|
domain;
|
|
@@ -3425,7 +3380,9 @@ var init_src = __esm({
|
|
|
3425
3380
|
return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
|
|
3426
3381
|
}
|
|
3427
3382
|
};
|
|
3428
|
-
_require2 = (0, import_node_module2.createRequire)(
|
|
3383
|
+
_require2 = (0, import_node_module2.createRequire)(
|
|
3384
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
|
|
3385
|
+
);
|
|
3429
3386
|
}
|
|
3430
3387
|
});
|
|
3431
3388
|
|
|
@@ -3458,12 +3415,12 @@ __export(native_bridge_exports, {
|
|
|
3458
3415
|
startWatchNative: () => startWatchNative,
|
|
3459
3416
|
stopWatchNative: () => stopWatchNative
|
|
3460
3417
|
});
|
|
3461
|
-
function
|
|
3418
|
+
function getDirname() {
|
|
3462
3419
|
if (typeof __dirname !== "undefined") {
|
|
3463
3420
|
return __dirname;
|
|
3464
3421
|
}
|
|
3465
|
-
if (
|
|
3466
|
-
return
|
|
3422
|
+
if (false) {
|
|
3423
|
+
return path3.dirname(fileURLToPath2(__importMetaUrl));
|
|
3467
3424
|
}
|
|
3468
3425
|
return process.cwd();
|
|
3469
3426
|
}
|
|
@@ -3668,14 +3625,13 @@ function hasNativeWatchBinding() {
|
|
|
3668
3625
|
return false;
|
|
3669
3626
|
}
|
|
3670
3627
|
}
|
|
3671
|
-
var import_node_path2, import_node_url2,
|
|
3628
|
+
var import_node_path2, import_node_url2, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3672
3629
|
var init_native_bridge = __esm({
|
|
3673
3630
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
3674
3631
|
"use strict";
|
|
3675
|
-
import_node_path2 =
|
|
3632
|
+
import_node_path2 = require("path");
|
|
3676
3633
|
import_node_url2 = require("url");
|
|
3677
3634
|
init_src();
|
|
3678
|
-
import_meta4 = {};
|
|
3679
3635
|
log = createDebugLogger("scanner:native");
|
|
3680
3636
|
isValidScannerBinding = (module2) => {
|
|
3681
3637
|
const candidate = module2;
|
|
@@ -3717,7 +3673,7 @@ var init_native_bridge = __esm({
|
|
|
3717
3673
|
}
|
|
3718
3674
|
return throwNativeBindingError();
|
|
3719
3675
|
}
|
|
3720
|
-
const runtimeDir =
|
|
3676
|
+
const runtimeDir = getDirname();
|
|
3721
3677
|
const candidates = resolveNativeBindingCandidates({
|
|
3722
3678
|
runtimeDir,
|
|
3723
3679
|
includeDefaultCandidates: true
|
|
@@ -3865,7 +3821,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
|
|
|
3865
3821
|
}
|
|
3866
3822
|
return mergeResults(allResults);
|
|
3867
3823
|
}
|
|
3868
|
-
var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3,
|
|
3824
|
+
var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
|
|
3869
3825
|
var init_parallel_scanner = __esm({
|
|
3870
3826
|
"packages/domain/scanner/src/parallel-scanner.ts"() {
|
|
3871
3827
|
"use strict";
|
|
@@ -3875,7 +3831,6 @@ var init_parallel_scanner = __esm({
|
|
|
3875
3831
|
import_node_url3 = require("url");
|
|
3876
3832
|
init_src2();
|
|
3877
3833
|
init_native_bridge();
|
|
3878
|
-
import_meta5 = {};
|
|
3879
3834
|
PARALLEL_THRESHOLD = 50;
|
|
3880
3835
|
DEFAULT_CHUNK_SIZE = 150;
|
|
3881
3836
|
if (!import_node_worker_threads.isMainThread && import_node_worker_threads.parentPort) {
|
|
@@ -3892,7 +3847,7 @@ var init_parallel_scanner = __esm({
|
|
|
3892
3847
|
import_node_worker_threads.parentPort.postMessage(msg);
|
|
3893
3848
|
}
|
|
3894
3849
|
}
|
|
3895
|
-
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(
|
|
3850
|
+
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
|
|
3896
3851
|
}
|
|
3897
3852
|
});
|
|
3898
3853
|
|
|
@@ -3984,8 +3939,8 @@ function getRuntimeDir() {
|
|
|
3984
3939
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
3985
3940
|
return __dirname;
|
|
3986
3941
|
}
|
|
3987
|
-
if (
|
|
3988
|
-
return import_node_path5.default.dirname((
|
|
3942
|
+
if (false) {
|
|
3943
|
+
return import_node_path5.default.dirname(fileURLToPath4(__importMetaUrl));
|
|
3989
3944
|
}
|
|
3990
3945
|
return process.cwd();
|
|
3991
3946
|
}
|
|
@@ -3994,8 +3949,8 @@ function resolveScannerWorkerModulePath() {
|
|
|
3994
3949
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
3995
3950
|
return __dirname;
|
|
3996
3951
|
}
|
|
3997
|
-
if (
|
|
3998
|
-
return import_node_path5.default.dirname((
|
|
3952
|
+
if (false) {
|
|
3953
|
+
return import_node_path5.default.dirname(fileURLToPath4(__importMetaUrl));
|
|
3999
3954
|
}
|
|
4000
3955
|
return process.cwd();
|
|
4001
3956
|
})();
|
|
@@ -4268,7 +4223,7 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
|
|
|
4268
4223
|
return scanWorkspace(rootDir, normalizedOptions);
|
|
4269
4224
|
}
|
|
4270
4225
|
}
|
|
4271
|
-
var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2,
|
|
4226
|
+
var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
|
|
4272
4227
|
var init_src2 = __esm({
|
|
4273
4228
|
"packages/domain/scanner/src/index.ts"() {
|
|
4274
4229
|
"use strict";
|
|
@@ -4284,7 +4239,6 @@ var init_src2 = __esm({
|
|
|
4284
4239
|
init_schemas();
|
|
4285
4240
|
init_schemas();
|
|
4286
4241
|
init_native_bridge();
|
|
4287
|
-
import_meta6 = {};
|
|
4288
4242
|
log2 = createLogger("scanner");
|
|
4289
4243
|
SCAN_WORKER_TIMEOUT_MS = 12e4;
|
|
4290
4244
|
createNativeParserLoader = () => {
|
|
@@ -4418,7 +4372,7 @@ async function requireNativeBinding() {
|
|
|
4418
4372
|
if (binding?.analyzeClasses) return binding;
|
|
4419
4373
|
const runtimeDir = resolveRuntimeDir(
|
|
4420
4374
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
4421
|
-
|
|
4375
|
+
__importMetaUrl
|
|
4422
4376
|
);
|
|
4423
4377
|
const candidates = resolveNativeBindingCandidates({
|
|
4424
4378
|
runtimeDir,
|
|
@@ -4448,13 +4402,12 @@ async function requireNativeCssCompiler() {
|
|
|
4448
4402
|
if (typeof binding.compileCss === "function") return binding;
|
|
4449
4403
|
throw new Error(`Native analyzer compileCss binding is missing.`);
|
|
4450
4404
|
}
|
|
4451
|
-
var
|
|
4405
|
+
var isAnalyzerModule, createAnalyzerBindingLoader, analyzerBindingLoader;
|
|
4452
4406
|
var init_binding = __esm({
|
|
4453
4407
|
"packages/domain/analyzer/src/binding.ts"() {
|
|
4454
4408
|
"use strict";
|
|
4455
4409
|
init_src();
|
|
4456
4410
|
init_utils();
|
|
4457
|
-
import_meta7 = {};
|
|
4458
4411
|
isAnalyzerModule = (module2) => {
|
|
4459
4412
|
const candidate = module2;
|
|
4460
4413
|
return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
|
|
@@ -4466,7 +4419,7 @@ var init_binding = __esm({
|
|
|
4466
4419
|
_state.bindingPromise = (async () => {
|
|
4467
4420
|
const runtimeDir = resolveRuntimeDir(
|
|
4468
4421
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
4469
|
-
|
|
4422
|
+
__importMetaUrl
|
|
4470
4423
|
);
|
|
4471
4424
|
const candidates = resolveNativeBindingCandidates({
|
|
4472
4425
|
runtimeDir,
|
|
@@ -6095,12 +6048,12 @@ function buildCreateProgram(context) {
|
|
|
6095
6048
|
async function main(rawArgs = process.argv.slice(2)) {
|
|
6096
6049
|
await runCliMain({
|
|
6097
6050
|
argv: [process.execPath, "create-tailwind-styled", ...rawArgs],
|
|
6098
|
-
importMetaUrl:
|
|
6051
|
+
importMetaUrl: false ? __importMetaUrl : `file://${process.argv[1] ?? "unknown"}`,
|
|
6099
6052
|
commandHint: "create",
|
|
6100
6053
|
buildProgram: buildCreateProgram
|
|
6101
6054
|
});
|
|
6102
6055
|
}
|
|
6103
|
-
var import_node_path19, import_prompts4,
|
|
6056
|
+
var import_node_path19, import_prompts4, TEMPLATE_NAMES, TEMPLATES;
|
|
6104
6057
|
var init_createApp = __esm({
|
|
6105
6058
|
"packages/infrastructure/cli/src/createApp.ts"() {
|
|
6106
6059
|
"use strict";
|
|
@@ -6110,7 +6063,6 @@ var init_createApp = __esm({
|
|
|
6110
6063
|
init_errors();
|
|
6111
6064
|
init_fs();
|
|
6112
6065
|
init_runtime();
|
|
6113
|
-
import_meta8 = {};
|
|
6114
6066
|
TEMPLATE_NAMES = ["next-app", "vite-react", "vite-vue", "vite-svelte", "simple"];
|
|
6115
6067
|
TEMPLATES = {
|
|
6116
6068
|
"next-app": createNextApp,
|
|
@@ -6123,12 +6075,11 @@ var init_createApp = __esm({
|
|
|
6123
6075
|
});
|
|
6124
6076
|
|
|
6125
6077
|
// packages/domain/compiler/src/nativeBridge.ts
|
|
6126
|
-
var
|
|
6078
|
+
var _loadNative, log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
|
|
6127
6079
|
var init_nativeBridge = __esm({
|
|
6128
6080
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
6129
6081
|
"use strict";
|
|
6130
6082
|
init_src();
|
|
6131
|
-
import_meta9 = {};
|
|
6132
6083
|
_loadNative = (path30) => require(path30);
|
|
6133
6084
|
log3 = (...args) => {
|
|
6134
6085
|
if (process.env.DEBUG?.includes("compiler:native")) {
|
|
@@ -6155,7 +6106,7 @@ var init_nativeBridge = __esm({
|
|
|
6155
6106
|
}
|
|
6156
6107
|
bridgeLoadAttempted = true;
|
|
6157
6108
|
try {
|
|
6158
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
6109
|
+
const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
|
|
6159
6110
|
const result = resolveNativeBinary(runtimeDir);
|
|
6160
6111
|
if (result.path && result.path.endsWith(".node")) {
|
|
6161
6112
|
try {
|
|
@@ -6266,7 +6217,7 @@ var init_watch = __esm({
|
|
|
6266
6217
|
});
|
|
6267
6218
|
|
|
6268
6219
|
// packages/domain/compiler/src/index.ts
|
|
6269
|
-
var import_node_fs9, import_node_path24, import_node_module4,
|
|
6220
|
+
var import_node_fs9, import_node_path24, import_node_module4, _require3, compileCssFromClasses;
|
|
6270
6221
|
var init_src4 = __esm({
|
|
6271
6222
|
"packages/domain/compiler/src/index.ts"() {
|
|
6272
6223
|
"use strict";
|
|
@@ -6280,8 +6231,9 @@ var init_src4 = __esm({
|
|
|
6280
6231
|
init_cache();
|
|
6281
6232
|
init_redis();
|
|
6282
6233
|
init_watch();
|
|
6283
|
-
|
|
6284
|
-
|
|
6234
|
+
_require3 = (0, import_node_module4.createRequire)(
|
|
6235
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
6236
|
+
);
|
|
6285
6237
|
compileCssFromClasses = (classes, prefix) => {
|
|
6286
6238
|
const native = getNativeBridge();
|
|
6287
6239
|
if (!native?.transformSource) {
|
|
@@ -8930,7 +8882,6 @@ init_errors();
|
|
|
8930
8882
|
init_fs();
|
|
8931
8883
|
init_json();
|
|
8932
8884
|
init_src4();
|
|
8933
|
-
var import_meta11 = {};
|
|
8934
8885
|
var DEFAULT_TAILWIND_CSS2 = '@import "tailwindcss";\n';
|
|
8935
8886
|
var DEFAULT_TW_CONFIG = `${JSON.stringify(
|
|
8936
8887
|
{
|
|
@@ -9241,7 +9192,8 @@ async function runPreflightCli(rawArgs) {
|
|
|
9241
9192
|
function isDirectExecution() {
|
|
9242
9193
|
const scriptPath = process.argv[1];
|
|
9243
9194
|
if (!scriptPath) return false;
|
|
9244
|
-
|
|
9195
|
+
const currentUrl = false ? __importMetaUrl : `file://${scriptPath}`;
|
|
9196
|
+
return currentUrl === (0, import_node_url7.pathToFileURL)(scriptPath).href;
|
|
9245
9197
|
}
|
|
9246
9198
|
if (isDirectExecution()) {
|
|
9247
9199
|
runPreflightCli(process.argv.slice(2)).catch((error) => {
|
|
@@ -9662,12 +9614,11 @@ init_internal();
|
|
|
9662
9614
|
|
|
9663
9615
|
// packages/domain/engine/src/native-bridge.ts
|
|
9664
9616
|
init_src();
|
|
9665
|
-
var import_meta12 = {};
|
|
9666
9617
|
var log4 = createDebugLogger("engine:native");
|
|
9667
|
-
function
|
|
9618
|
+
function getDirname2() {
|
|
9668
9619
|
if (typeof __dirname !== "undefined") return __dirname;
|
|
9669
|
-
if (
|
|
9670
|
-
return
|
|
9620
|
+
if (false) {
|
|
9621
|
+
return getEsmDirname(__importMetaUrl);
|
|
9671
9622
|
}
|
|
9672
9623
|
return process.cwd();
|
|
9673
9624
|
}
|
|
@@ -9711,7 +9662,7 @@ var createEngineBindingLoader = () => {
|
|
|
9711
9662
|
}
|
|
9712
9663
|
return cached;
|
|
9713
9664
|
}
|
|
9714
|
-
const runtimeDir =
|
|
9665
|
+
const runtimeDir = getDirname2();
|
|
9715
9666
|
const candidates = resolveNativeBindingCandidates({
|
|
9716
9667
|
runtimeDir,
|
|
9717
9668
|
includeDefaultCandidates: true
|
|
@@ -11635,15 +11586,14 @@ init_runtime();
|
|
|
11635
11586
|
init_args();
|
|
11636
11587
|
init_args();
|
|
11637
11588
|
init_output();
|
|
11638
|
-
var import_meta13 = {};
|
|
11639
11589
|
async function main2() {
|
|
11640
11590
|
await runCliMain({
|
|
11641
|
-
importMetaUrl:
|
|
11591
|
+
importMetaUrl: __importMetaUrl,
|
|
11642
11592
|
buildProgram: buildMainProgram
|
|
11643
11593
|
});
|
|
11644
11594
|
}
|
|
11645
|
-
var
|
|
11646
|
-
if (process.argv[1] ===
|
|
11595
|
+
var __currentFile = (0, import_node_url8.fileURLToPath)(__importMetaUrl);
|
|
11596
|
+
if (process.argv[1] === __currentFile) {
|
|
11647
11597
|
main2();
|
|
11648
11598
|
}
|
|
11649
11599
|
//# sourceMappingURL=tw.js.map
|