@tsrx/vue 0.2.9 → 0.3.0
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/package.json +2 -2
- package/src/transform.js +7 -0
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Vue compiler built on @tsrx/core",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.3.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"esrap": "^2.3.2",
|
|
39
39
|
"is-reference": "^3.0.3",
|
|
40
40
|
"zimmerframe": "^1.1.2",
|
|
41
|
-
"@tsrx/core": "0.
|
|
41
|
+
"@tsrx/core": "0.5.0",
|
|
42
42
|
"@tsrx/vue-runtime": "0.1.12"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
package/src/transform.js
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
createHookSafeHelper,
|
|
14
14
|
create_generated_identifier,
|
|
15
15
|
createJsxTransform,
|
|
16
|
+
DIAGNOSTIC_CODES,
|
|
16
17
|
error,
|
|
17
18
|
has_location,
|
|
18
19
|
is_component_like_element,
|
|
@@ -54,6 +55,11 @@ const vue_platform = {
|
|
|
54
55
|
rewriteClassAttr: false,
|
|
55
56
|
multiRefStrategy: 'merge-refs',
|
|
56
57
|
hostSpreadRefStrategy: 'explicit-ref-attr',
|
|
58
|
+
// vue-jsx-vapor escapes a string child into its HTML template, where a
|
|
59
|
+
// `<script>` element's text isn't decoded, and writes a string
|
|
60
|
+
// `innerHTML` there as an attribute. `v-html` sets the body as written
|
|
61
|
+
// when the element is created, and the server renders it as written.
|
|
62
|
+
scriptBody: 'v-html',
|
|
57
63
|
},
|
|
58
64
|
validation: {
|
|
59
65
|
requireUseServerForAwait: true,
|
|
@@ -148,6 +154,7 @@ const vue_platform = {
|
|
|
148
154
|
await_expression,
|
|
149
155
|
ctx?.errors,
|
|
150
156
|
ctx?.comments,
|
|
157
|
+
DIAGNOSTIC_CODES.TARGET_AWAIT_UNSUPPORTED,
|
|
151
158
|
);
|
|
152
159
|
},
|
|
153
160
|
injectImports(program, ctx) {
|