@aaqu/fromcubes-portal-react 0.1.0-alpha.26 → 0.1.0-alpha.27
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/nodes/portal-react.js +6 -1
- package/package.json +1 -1
package/nodes/portal-react.js
CHANGED
|
@@ -95,6 +95,9 @@
|
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
97
|
const crypto = require("crypto");
|
|
98
|
+
const packageInfo = require("../package.json");
|
|
99
|
+
|
|
100
|
+
const CACHE_SCHEMA_VERSION = "portal-react-cache-v2";
|
|
98
101
|
|
|
99
102
|
module.exports = function (RED) {
|
|
100
103
|
// ── Admin root prefix (for correct URLs when httpAdminRoot is set) ──
|
|
@@ -943,7 +946,9 @@ module.exports = function (RED) {
|
|
|
943
946
|
"createRoot(document.getElementById('root')).render(React.createElement(App));",
|
|
944
947
|
].join("\n");
|
|
945
948
|
|
|
946
|
-
const jsxHash = hash(
|
|
949
|
+
const jsxHash = hash(
|
|
950
|
+
[CACHE_SCHEMA_VERSION, packageInfo.version, fullJsx].join("\0"),
|
|
951
|
+
);
|
|
947
952
|
|
|
948
953
|
// ── Check: any used component or utility has its own syntax error ──
|
|
949
954
|
let errorSource = null;
|