vize 0.423.2 → 0.424.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/README.md +36 -20
- package/package.json +2 -2
- package/pkl/VizeConfig.pkl +2 -0
- package/pkl/vize.pkl +2 -0
package/README.md
CHANGED
|
@@ -121,7 +121,9 @@ export default defineConfig({
|
|
|
121
121
|
vapor: false,
|
|
122
122
|
jsxVapor: false,
|
|
123
123
|
intagComment: false,
|
|
124
|
-
|
|
124
|
+
patternedTemplate: false,
|
|
125
|
+
selfComponent: false,
|
|
126
|
+
strictSlotChildren: false,
|
|
125
127
|
serverScript: false,
|
|
126
128
|
},
|
|
127
129
|
vite: {
|
|
@@ -238,25 +240,27 @@ extension so both TypeScript and embedded JSX parse correctly. See the
|
|
|
238
240
|
|
|
239
241
|
Important shared fields:
|
|
240
242
|
|
|
241
|
-
| Field
|
|
242
|
-
|
|
|
243
|
-
| `compiler.sourceMap`
|
|
244
|
-
| `compiler.ssr`
|
|
245
|
-
| `compiler.vapor`
|
|
246
|
-
| `compiler.customRenderer`
|
|
247
|
-
| `compiler.customElements`
|
|
248
|
-
| `compiler.templateSyntax`
|
|
249
|
-
| `experimentals.vapor`
|
|
250
|
-
| `experimentals.jsxVapor`
|
|
251
|
-
| `experimentals.intagComment`
|
|
252
|
-
| `experimentals.
|
|
253
|
-
| `experimentals.
|
|
254
|
-
| `
|
|
255
|
-
| `
|
|
256
|
-
| `
|
|
257
|
-
| `
|
|
258
|
-
| `
|
|
259
|
-
| `
|
|
243
|
+
| Field | Used by | Purpose |
|
|
244
|
+
| ---------------------------------- | ------------------------------ | ------------------------------------------------------------------ |
|
|
245
|
+
| `compiler.sourceMap` | Vite plugin | Enable source maps |
|
|
246
|
+
| `compiler.ssr` | npm build, Vite plugin | Force SSR compilation |
|
|
247
|
+
| `compiler.vapor` | npm build, Vite plugin | Enable Vapor compilation |
|
|
248
|
+
| `compiler.customRenderer` | npm build, Vite plugin | Treat lowercase non-HTML tags as custom renderer elements |
|
|
249
|
+
| `compiler.customElements` | npm build, Vite plugin | Tag patterns compiled as custom elements instead of Vue components |
|
|
250
|
+
| `compiler.templateSyntax` | npm build, Vite plugin | Choose standard, strict, or quirks template syntax mode |
|
|
251
|
+
| `experimentals.vapor` | npm build, Vite plugin | Opt into experimental SFC Vapor before compiler support |
|
|
252
|
+
| `experimentals.jsxVapor` | Vite plugin | Opt into experimental JSX Vapor by default |
|
|
253
|
+
| `experimentals.intagComment` | npm build, Vite plugin, syntax | Opt into in-tag `//` comments |
|
|
254
|
+
| `experimentals.patternedTemplate` | npm build, Vite plugin | Opt into `v-match` / `v-when` patterned templates |
|
|
255
|
+
| `experimentals.selfComponent` | npm build, Vite plugin | Opt into reserved `<Self>` recursive component resolution |
|
|
256
|
+
| `experimentals.strictSlotChildren` | npm check | Opt into strict slot child contract checks |
|
|
257
|
+
| `experimentals.serverScript` | npm build, Vite plugin | Preserve server-script RFC opt-in surface |
|
|
258
|
+
| `compiler.compatibility` | integrations | Opt into legacy Vue, Nuxt, CDN, Vapor, or Webpack bridges |
|
|
259
|
+
| `compiler.scriptExt` | npm build | Preserve TypeScript output or downcompile to JavaScript |
|
|
260
|
+
| `vite.scanPatterns` | Vite plugin | Pre-compile matching Vue files |
|
|
261
|
+
| `linter.preset` | npm lint | Select the Patina lint preset |
|
|
262
|
+
| `typeChecker.strict` | npm check | Enable strict checks |
|
|
263
|
+
| `formatter.printWidth` | npm fmt | Set formatting width |
|
|
260
264
|
|
|
261
265
|
### Template syntax
|
|
262
266
|
|
|
@@ -284,6 +288,18 @@ Vue upstream reference:
|
|
|
284
288
|
- [`forAliasRE`](https://github.com/vuejs/core/blob/main/packages/compiler-core/src/utils.ts#L571)
|
|
285
289
|
- [`stripParensRE` in `parseForExpression`](https://github.com/vuejs/core/blob/main/packages/compiler-core/src/parser.ts#L493-L530)
|
|
286
290
|
|
|
291
|
+
### Experimental Vue RFC Flags
|
|
292
|
+
|
|
293
|
+
Every experimental Vue RFC flag is off by default. Set a key to `true` or `{}` in
|
|
294
|
+
`experimentals` to enable it for the matching tool; `false` and `null` keep it disabled. The
|
|
295
|
+
historical typo `pattenedTemplate` is still accepted as an alias for `patternedTemplate`, but new
|
|
296
|
+
configs should use `patternedTemplate`.
|
|
297
|
+
|
|
298
|
+
Supported opt-ins cover in-tag `//` comments, `v-match` / `v-when` patterned templates, reserved
|
|
299
|
+
`<Self>` recursion, and virtual-TypeScript slot child contract checks. See
|
|
300
|
+
[`docs/experimental-vue-rfc-flags.md`](./docs/experimental-vue-rfc-flags.md) for syntax, examples,
|
|
301
|
+
tool coverage, and upstream RFC links.
|
|
302
|
+
|
|
287
303
|
## Programmatic Config Helpers
|
|
288
304
|
|
|
289
305
|
```ts
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/ubugeeei-prod/vize/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@vizejs/native": "0.
|
|
10
|
+
"@vizejs/native": "0.424.0",
|
|
11
11
|
"oxc-transform": "0.144.0"
|
|
12
12
|
},
|
|
13
13
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
]
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
|
-
"version": "0.
|
|
103
|
+
"version": "0.424.0",
|
|
104
104
|
"scripts": {
|
|
105
105
|
"build": "vp run --workspace-root generate:rule-types && vp pack",
|
|
106
106
|
"check": "vp check src tests vite.config.ts",
|
package/pkl/VizeConfig.pkl
CHANGED
package/pkl/vize.pkl
CHANGED