wuchale 0.22.6 → 0.22.7
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/handler/index.js +2 -1
- package/package.json +2 -2
package/dist/handler/index.js
CHANGED
|
@@ -251,7 +251,8 @@ export class AdapterHandler {
|
|
|
251
251
|
let getRuntimePlain = getRuntimeVars.plain;
|
|
252
252
|
let getRuntimeReactive = getRuntimeVars.reactive;
|
|
253
253
|
if (hmrData != null) {
|
|
254
|
-
|
|
254
|
+
const hmrDataStr = JSON.stringify(hmrData).replaceAll('</script>', '\\x3C/script>');
|
|
255
|
+
head.push(`const ${varNames.hmrUpdate} = ${hmrDataStr}`);
|
|
255
256
|
getRuntimePlain += 'hmr_';
|
|
256
257
|
getRuntimeReactive += 'hmr_';
|
|
257
258
|
head.push(this.#hmrUpdateFunc(getRuntimeVars.plain, getRuntimePlain), this.#hmrUpdateFunc(getRuntimeVars.reactive, getRuntimeReactive));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wuchale",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.7",
|
|
4
4
|
"description": "Protobuf-like i18n from plain code",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "tsc --watch",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@types/node": "~24.12.0",
|
|
98
98
|
"@types/picomatch": "^4.0.1",
|
|
99
|
-
"typescript": "^
|
|
99
|
+
"typescript": "^6.0.2"
|
|
100
100
|
},
|
|
101
101
|
"funding": "https://github.com/sponsors/wuchalejs",
|
|
102
102
|
"type": "module"
|