tailwind-styled-v4 5.0.7 → 5.0.8
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/cli.js +62 -52
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +62 -52
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.d.mts +8 -3
- package/dist/compiler.d.ts +8 -3
- package/dist/compiler.js +214 -127
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +195 -103
- package/dist/compiler.mjs.map +1 -1
- package/dist/engine.js +146 -66
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +146 -66
- package/dist/engine.mjs.map +1 -1
- package/dist/next.d.mts +3 -37
- package/dist/next.d.ts +3 -37
- package/dist/next.js +14 -313
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +14 -313
- package/dist/next.mjs.map +1 -1
- package/dist/turbopackLoader.js +132 -86
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +132 -86
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +62 -52
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +62 -52
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +146 -66
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +146 -66
- package/dist/vite.mjs.map +1 -1
- package/dist/webpackLoader.js +88 -83
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +88 -83
- package/dist/webpackLoader.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -5940,6 +5940,67 @@ var init_createApp = __esm({
|
|
|
5940
5940
|
};
|
|
5941
5941
|
}
|
|
5942
5942
|
});
|
|
5943
|
+
var log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
|
|
5944
|
+
var init_nativeBridge = __esm({
|
|
5945
|
+
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
5946
|
+
init_src();
|
|
5947
|
+
log3 = (...args) => {
|
|
5948
|
+
if (process.env.DEBUG?.includes("compiler:native")) {
|
|
5949
|
+
console.log("[compiler:native]", ...args);
|
|
5950
|
+
}
|
|
5951
|
+
};
|
|
5952
|
+
NATIVE_UNAVAILABLE_MESSAGE = "[tailwind-styled/compiler v5] Native binding is required but not available.\nThis package requires native Rust bindings. There is no JavaScript fallback.\nPlease ensure:\n 1. The native module is properly installed\n 2. You have run: npm run build:rust (or use prebuilt binary)\n\nFor help, see: https://tailwind-styled.dev/docs/install";
|
|
5953
|
+
nativeBridge = null;
|
|
5954
|
+
bridgeLoadAttempted = false;
|
|
5955
|
+
bridgeLoadError = null;
|
|
5956
|
+
isValidNativeBridge = (mod) => {
|
|
5957
|
+
const m = mod;
|
|
5958
|
+
return !!(typeof m.transformSource === "function" || typeof m.extractAllClasses === "function" || typeof m.hasTwUsage === "function");
|
|
5959
|
+
};
|
|
5960
|
+
getNativeBridge = () => {
|
|
5961
|
+
if (nativeBridge) {
|
|
5962
|
+
return nativeBridge;
|
|
5963
|
+
}
|
|
5964
|
+
if (bridgeLoadAttempted) {
|
|
5965
|
+
if (bridgeLoadError) {
|
|
5966
|
+
throw bridgeLoadError;
|
|
5967
|
+
}
|
|
5968
|
+
throw new Error(NATIVE_UNAVAILABLE_MESSAGE);
|
|
5969
|
+
}
|
|
5970
|
+
bridgeLoadAttempted = true;
|
|
5971
|
+
try {
|
|
5972
|
+
const runtimeDir = resolveRuntimeDir(void 0, (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
5973
|
+
const require2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
5974
|
+
const result = resolveNativeBinary(runtimeDir);
|
|
5975
|
+
if (result.path && result.path.endsWith(".node")) {
|
|
5976
|
+
try {
|
|
5977
|
+
const binding = require2(result.path);
|
|
5978
|
+
if (isValidNativeBridge(binding)) {
|
|
5979
|
+
nativeBridge = binding;
|
|
5980
|
+
log3("Native bridge loaded successfully from:", result.path);
|
|
5981
|
+
return nativeBridge;
|
|
5982
|
+
}
|
|
5983
|
+
} catch (e) {
|
|
5984
|
+
log3("Failed to require native binding:", e);
|
|
5985
|
+
}
|
|
5986
|
+
}
|
|
5987
|
+
throw new Error(`${NATIVE_UNAVAILABLE_MESSAGE}
|
|
5988
|
+
|
|
5989
|
+
Tried paths: ${result.tried.join("\n")}`);
|
|
5990
|
+
} catch (err) {
|
|
5991
|
+
bridgeLoadError = err instanceof Error ? err : new Error(String(err));
|
|
5992
|
+
log3("Failed to load native bridge:", bridgeLoadError.message);
|
|
5993
|
+
throw bridgeLoadError;
|
|
5994
|
+
}
|
|
5995
|
+
};
|
|
5996
|
+
if (typeof process !== "undefined" && !bridgeLoadAttempted) {
|
|
5997
|
+
try {
|
|
5998
|
+
getNativeBridge();
|
|
5999
|
+
} catch {
|
|
6000
|
+
}
|
|
6001
|
+
}
|
|
6002
|
+
}
|
|
6003
|
+
});
|
|
5943
6004
|
|
|
5944
6005
|
// packages/infrastructure/cli/src/commands/program.ts
|
|
5945
6006
|
init_esm();
|
|
@@ -9070,59 +9131,8 @@ var syncCommand = {
|
|
|
9070
9131
|
var import_picocolors5 = __toESM(require_picocolors());
|
|
9071
9132
|
init_errors();
|
|
9072
9133
|
|
|
9073
|
-
// packages/domain/compiler/src/nativeBridge.ts
|
|
9074
|
-
init_src();
|
|
9075
|
-
var log3 = (...args) => {
|
|
9076
|
-
if (process.env.DEBUG?.includes("compiler:native")) {
|
|
9077
|
-
console.log("[compiler:native]", ...args);
|
|
9078
|
-
}
|
|
9079
|
-
};
|
|
9080
|
-
var NATIVE_UNAVAILABLE_MESSAGE = "[tailwind-styled/compiler v5] Native binding is required but not available.\nThis package requires native Rust bindings. There is no JavaScript fallback.\nPlease ensure:\n 1. The native module is properly installed\n 2. You have run: npm run build:rust (or use prebuilt binary)\n\nFor help, see: https://tailwind-styled.dev/docs/install";
|
|
9081
|
-
var nativeBridge = null;
|
|
9082
|
-
var bridgeLoadAttempted = false;
|
|
9083
|
-
var bridgeLoadError = null;
|
|
9084
|
-
var isValidNativeBridge = (mod) => {
|
|
9085
|
-
const m = mod;
|
|
9086
|
-
return !!(typeof m.transformSource === "function" || typeof m.extractAllClasses === "function" || typeof m.hasTwUsage === "function");
|
|
9087
|
-
};
|
|
9088
|
-
var getNativeBridge = () => {
|
|
9089
|
-
if (nativeBridge) {
|
|
9090
|
-
return nativeBridge;
|
|
9091
|
-
}
|
|
9092
|
-
if (bridgeLoadAttempted) {
|
|
9093
|
-
if (bridgeLoadError) {
|
|
9094
|
-
throw bridgeLoadError;
|
|
9095
|
-
}
|
|
9096
|
-
throw new Error(NATIVE_UNAVAILABLE_MESSAGE);
|
|
9097
|
-
}
|
|
9098
|
-
bridgeLoadAttempted = true;
|
|
9099
|
-
try {
|
|
9100
|
-
const runtimeDir = resolveRuntimeDir(void 0, (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
9101
|
-
const require2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
9102
|
-
const result = resolveNativeBinary(runtimeDir);
|
|
9103
|
-
if (result.path && result.path.endsWith(".node")) {
|
|
9104
|
-
try {
|
|
9105
|
-
const binding = require2(result.path);
|
|
9106
|
-
if (isValidNativeBridge(binding)) {
|
|
9107
|
-
nativeBridge = binding;
|
|
9108
|
-
log3("Native bridge loaded successfully from:", result.path);
|
|
9109
|
-
return nativeBridge;
|
|
9110
|
-
}
|
|
9111
|
-
} catch (e) {
|
|
9112
|
-
log3("Failed to require native binding:", e);
|
|
9113
|
-
}
|
|
9114
|
-
}
|
|
9115
|
-
throw new Error(`${NATIVE_UNAVAILABLE_MESSAGE}
|
|
9116
|
-
|
|
9117
|
-
Tried paths: ${result.tried.join("\n")}`);
|
|
9118
|
-
} catch (err) {
|
|
9119
|
-
bridgeLoadError = err instanceof Error ? err : new Error(String(err));
|
|
9120
|
-
log3("Failed to load native bridge:", bridgeLoadError.message);
|
|
9121
|
-
throw bridgeLoadError;
|
|
9122
|
-
}
|
|
9123
|
-
};
|
|
9124
|
-
|
|
9125
9134
|
// packages/domain/compiler/src/index.ts
|
|
9135
|
+
init_nativeBridge();
|
|
9126
9136
|
var compileCssFromClasses = (classes, prefix) => {
|
|
9127
9137
|
const native = getNativeBridge();
|
|
9128
9138
|
if (!native?.transformSource) {
|