@vxrn/compiler 1.1.433 → 1.1.434-1738878681339
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/cjs/index.cjs +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/package.json +4 -4
- package/src/index.ts +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -178,7 +178,7 @@ ${code}`), code;
|
|
|
178
178
|
es5: !0,
|
|
179
179
|
noHMR: isPreProcess
|
|
180
180
|
});
|
|
181
|
-
return shouldDebug && (console.info("swcOptions", swcOptions), console.info("final output:", out?.code)), out && (cacheSize += out?.code.length, cacheSize >
|
|
181
|
+
return shouldDebug && (console.info("swcOptions", swcOptions), console.info("final output:", out?.code)), out && (cacheSize += out?.code.length, cacheSize > 52428800 && clearCompilerCache(), memoryCache[cacheKey] = out), out;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}];
|
package/dist/cjs/index.js
CHANGED
|
@@ -156,7 +156,7 @@ ${code}`), code;
|
|
|
156
156
|
es5: !0,
|
|
157
157
|
noHMR: isPreProcess
|
|
158
158
|
});
|
|
159
|
-
return shouldDebug && (console.info("swcOptions", swcOptions), console.info("final output:", out?.code)), out && (cacheSize += out?.code.length, cacheSize >
|
|
159
|
+
return shouldDebug && (console.info("swcOptions", swcOptions), console.info("final output:", out?.code)), out && (cacheSize += out?.code.length, cacheSize > 52428800 && clearCompilerCache(), memoryCache[cacheKey] = out), out;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -145,7 +145,7 @@ ${code}`), code;
|
|
|
145
145
|
es5: !0,
|
|
146
146
|
noHMR: isPreProcess
|
|
147
147
|
});
|
|
148
|
-
return shouldDebug && (console.info("swcOptions", swcOptions), console.info("final output:", out?.code)), out && (cacheSize += out?.code.length, cacheSize >
|
|
148
|
+
return shouldDebug && (console.info("swcOptions", swcOptions), console.info("final output:", out?.code)), out && (cacheSize += out?.code.length, cacheSize > 52428800 && clearCompilerCache(), memoryCache[cacheKey] = out), out;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -150,7 +150,7 @@ ${code}`), code;
|
|
|
150
150
|
es5: !0,
|
|
151
151
|
noHMR: isPreProcess
|
|
152
152
|
});
|
|
153
|
-
return shouldDebug && (console.info("swcOptions", swcOptions), console.info("final output:", out?.code)), out && (cacheSize += out?.code.length, cacheSize >
|
|
153
|
+
return shouldDebug && (console.info("swcOptions", swcOptions), console.info("final output:", out?.code)), out && (cacheSize += out?.code.length, cacheSize > 52428800 && clearCompilerCache(), memoryCache[cacheKey] = out), out;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vxrn/compiler",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.434-1738878681339",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./package.json": "./package.json",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"@babel/plugin-transform-react-jsx": "^7.25.9",
|
|
35
35
|
"@babel/plugin-transform-regenerator": "^7.25.9",
|
|
36
36
|
"@swc/core": "^1.10.4",
|
|
37
|
-
"@vxrn/utils": "1.1.
|
|
38
|
-
"@vxrn/vite-native-client": "1.1.
|
|
37
|
+
"@vxrn/utils": "1.1.434-1738878681339",
|
|
38
|
+
"@vxrn/vite-native-client": "1.1.434-1738878681339",
|
|
39
39
|
"babel-plugin-react-compiler": "^19.0.0-beta-201e55d-20241215",
|
|
40
40
|
"react-native-css-interop": "^0.1.22",
|
|
41
41
|
"ts-deepmerge": "^7.0.2",
|
|
42
|
-
"vite": "^6.0
|
|
42
|
+
"vite": "^6.1.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@tamagui/build": "^1.123.14",
|
package/src/index.ts
CHANGED
|
@@ -276,8 +276,8 @@ ${rootJS.code}
|
|
|
276
276
|
|
|
277
277
|
if (out) {
|
|
278
278
|
cacheSize += out?.code.length
|
|
279
|
-
// ~
|
|
280
|
-
if (cacheSize >
|
|
279
|
+
// ~100Mb cache for recent compiler files
|
|
280
|
+
if (cacheSize > 52_428_800) {
|
|
281
281
|
clearCompilerCache()
|
|
282
282
|
}
|
|
283
283
|
memoryCache[cacheKey] = out
|