@vureact/compiler-core 1.4.0 → 1.5.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.en.md ADDED
@@ -0,0 +1,286 @@
1
+ # @vureact/compiler-core
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@vureact/compiler-core.svg?style=flat-square)](https://vureact.top/)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@vureact/compiler-core.svg?style=flat-square)](https://www.npmjs.com/package/@vureact/compiler-core)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+
7
+ English | [简体中文](./README.md)
8
+
9
+ ## What is VuReact?
10
+
11
+ [VuReact](http://vureact.top/en) (pronounced `/vjuːˈriːækt/`) is a Semantic-Aware Vue 3 to React 18+ compiler for progressive migration.
12
+
13
+ It is not a simple syntax conversion, but **semantic-level compilation**: it understands the intent of Vue code and generates code that adheres to React best practices. It consists of two parts: **compile-time transformation** + **runtime adaptation**.
14
+
15
+ The core strategy is **"convention over configuration"** — through clear compilation conventions, it ensures stable and reliable conversion, making it especially suitable for **progressive migration** scenarios.
16
+
17
+ ## Quick Start
18
+
19
+ This section will guide you through creating, compiling, and running your first VuReact project; alternatively, you can check out the [codesandbox examples first](https://codesandbox.io/p/github/vureact-js/example-crm-admin-backend/master).
20
+
21
+ After completion, you will clearly understand three things:
22
+
23
+ 1. Under what conventions input SFCs can be stably converted
24
+ 2. What the compiled directory structure looks like
25
+ 3. The semantic correspondence between the output TSX and the original SFC
26
+ 4. The compiler automatically analyzes and appends dependencies, eliminating the need to manually manage React hooks dependencies
27
+
28
+ ## Step 0: Prepare the Directory
29
+
30
+ First, set up a minimal project (illustration):
31
+
32
+ ```txt
33
+ my-app/
34
+ ├─ src/
35
+ │ ├─ components/
36
+ │ │ └─ Counter.vue
37
+ │ ├─ main.ts
38
+ │ └─ index.css
39
+ ├─ package.json
40
+ └─ vureact.config.js
41
+ ```
42
+
43
+ ## Step 1: Installation
44
+
45
+ Install the VuReact compiler in your Vue project:
46
+
47
+ ```bash
48
+ # Using npm
49
+ npm install -D @vureact/compiler-core
50
+
51
+ # Using yarn
52
+ yarn add -D @vureact/compiler-core
53
+
54
+ # Using pnpm
55
+ pnpm add -D @vureact/compiler-core
56
+ ```
57
+
58
+ ## Step 2: Write the Input SFC
59
+
60
+ `src/components/Counter.vue`
61
+
62
+ ```html
63
+ <template>
64
+ <section class="counter-card">
65
+ <h2>{{ props.title || title }}</h2>
66
+ <p>Count: {{ count }}</p>
67
+ <button @click="increment">+1</button>
68
+ <button @click="methods.decrease">-1</button>
69
+ </section>
70
+ </template>
71
+
72
+ <script setup lang="ts">
73
+ // @vr-name: Counter (Note: Tells the compiler what component name to generate)
74
+ import { computed, ref } from 'vue';
75
+
76
+ // You can also use macros to define component names
77
+ defineOptions({ name: 'Counter' });
78
+
79
+ // Define props
80
+ const props = defineProps<{ title?: string }>();
81
+
82
+ // Define emits
83
+ const emits = defineEmits<{
84
+ (e: 'change'): void;
85
+ (e: 'update', value: number): number;
86
+ }>();
87
+
88
+ const step = ref(1);
89
+ const count = ref(0);
90
+ const title = computed(() => `Counter x${step.value}`);
91
+
92
+ const increment = () => {
93
+ count.value += step.value;
94
+ emits('update', count.value);
95
+ };
96
+
97
+ const methods = {
98
+ decrease() {
99
+ count.value -= step.value;
100
+ },
101
+ };
102
+ </script>
103
+
104
+ <style lang="less" scoped>
105
+ @border-color: #ddd;
106
+ @border-radius: 8px;
107
+ @padding-base: 12px;
108
+
109
+ .counter-card {
110
+ border: 1px solid @border-color;
111
+ border-radius: @border-radius;
112
+ padding: @padding-base;
113
+ }
114
+ </style>
115
+ ```
116
+
117
+ ## Step 3: Configure the Compiler
118
+
119
+ `vureact.config.js`
120
+
121
+ ```js
122
+ import { defineConfig } from '@vureact/compiler-core';
123
+
124
+ export default defineConfig({
125
+ input: 'src',
126
+ // Key: Exclude Vue entry files to avoid entry semantic conflicts
127
+ exclude: ['src/main.ts'],
128
+ output: {
129
+ workspace: '.vureact',
130
+ outDir: 'dist',
131
+ // Disable environment initialization for tutorial scenarios to observe pure compilation output
132
+ bootstrapVite: false,
133
+ },
134
+ format: {
135
+ enabled: true, // Enable formatting (this will increase compilation time).
136
+ formatter: 'prettier',
137
+ },
138
+ });
139
+ ```
140
+
141
+ ## Step 4: Execute Compilation
142
+
143
+ ### Method 1: Use the npx command
144
+
145
+ Run in the root directory:
146
+
147
+ ```bash
148
+ npx vureact build
149
+ ```
150
+
151
+ ### Method 2: Use npm scripts
152
+
153
+ Add script commands to `package.json`:
154
+
155
+ ```json
156
+ "scripts": {
157
+ "watch": "vureact watch",
158
+ "build": "vureact build"
159
+ }
160
+ ```
161
+
162
+ ```bash
163
+ npm run build
164
+ ```
165
+
166
+ ## Step 5: View the Output Directory Tree
167
+
168
+ Compiled directory (illustration):
169
+
170
+ ```txt
171
+ my-app/
172
+ ├─ .vureact/
173
+ │ ├─ cache/
174
+ │ │ └─ _metadata.json
175
+ │ └─ dist/
176
+ │ └─ src/
177
+ │ └─ components/
178
+ │ ├─ Counter.tsx
179
+ │ └─ Counter-<hash>.css
180
+ ├─ src/
181
+ │ └─ ...
182
+ └─ vureact.config.js
183
+ ```
184
+
185
+ ## Step 6: Compare the Generated Results
186
+
187
+ Below is a typical formatted output (slightly simplified for illustration; the actual hash and property names are subject to local output):
188
+
189
+ ```ts
190
+ import { memo, useCallback, useMemo } from 'react';
191
+ import { useComputed, useVRef } from '@vureact/runtime-core';
192
+ import './Counter-a1b2c3.css';
193
+
194
+ // Derived from defineProps and defineEmits
195
+ type ICounterType = {
196
+ title?: string
197
+ onChange: () => void;
198
+ onUpdate: (value: number) => number;
199
+ }
200
+
201
+ // Component wrapped with memo
202
+ const Counter = memo((props: ICounterType) => {
203
+ // ref/computed converted to equivalent adaptation APIs
204
+ const step = useVRef(1);
205
+ const count = useVRef(0);
206
+ const title = useComputed(() => `Counter x${step.value}`);
207
+
208
+ // Automatically analyze dependencies of top-level arrow functions and append useCallback optimization
209
+ const increment = useCallback(() => {
210
+ count.value += step.value;
211
+ props.onUpdate?.(count.value); // emits conversion
212
+ }, [count.value, step.value, props.onUpdate]);
213
+
214
+ // Automatically analyze dependencies in top-level objects and append useMemo optimization
215
+ const methods = useMemo(
216
+ () => ({
217
+ decrease() {
218
+ count.value -= step.value;
219
+ },
220
+ }),
221
+ [count.value, step.value],
222
+ );
223
+
224
+ return (
225
+ <>
226
+ <section className="counter-card" data-css-a1b2c3>
227
+ <h2 data-css-a1b2c3>{props.title || title.value}</h2>
228
+ <p data-css-a1b2c3>Count: {count.value}</p>
229
+ <button onClick={increment} data-css-a1b2c3>
230
+ +1
231
+ </button>
232
+ <button onClick={methods.decrease} data-css-a1b2c3>
233
+ -1
234
+ </button>
235
+ </section>
236
+ </>
237
+ );
238
+ });
239
+
240
+ export default Counter;
241
+ ```
242
+
243
+ CSS file content:
244
+
245
+ ```css
246
+ .counter-card[data-css-a1b2c3] {
247
+ border: 1px solid #ddd;
248
+ border-radius: 8px;
249
+ padding: 12px;
250
+ }
251
+ ```
252
+
253
+ ## Key Observations
254
+
255
+ 1. The special comment `// @vr-name: Counter` defines the component name
256
+ 2. `defineProps` and `defineEmits` are converted to TS component types
257
+ 3. Non-pure UI display components are wrapped with `memo` by default
258
+ 4. `ref` / `computed` are converted to runtime adaptation APIs (`useVRef` / `useComputed`)
259
+ 5. Template event callbacks generate React-semantic `onClick`
260
+ 6. Top-level arrow functions have their dependencies automatically analyzed and `useCallback` is injected where applicable
261
+ 7. Top-level variable declarations have their dependencies automatically analyzed and `useMemo` is injected where applicable
262
+ 8. The `.value` suffix is added to original `ref` state values in JSX
263
+ 9. Less styles are compiled to CSS code
264
+ 10. Scoped styles generate hashed CSS files and add scoped attributes to elements
265
+
266
+ ## Common Failure Points
267
+
268
+ - Failure to exclude Vue entry files (e.g., `src/main.ts` or `App.vue`)
269
+ - Calling APIs that are converted to Hooks outside the top level
270
+ - Unanalyzable expressions appearing in templates (triggering warnings)
271
+ - Disabling style preprocessing while using `scoped`, leading to scoping failure
272
+
273
+ ## Ecosystem Integration
274
+
275
+ - **[Vue Core Adaptation Package](https://runtime.vureact.top/)**: Provides React versions of Vue's common built-in components, core Composition API, etc.
276
+ - **[Vue Router Adaptation Package](https://router.vureact.top/)**: Supports conversion from Vue Router 4.x to React Router DOM 7.9+.
277
+
278
+ If necessary, you can choose [☣️ Mixed Coding](https://vureact.top/guide/mind-control-readme.html) to directly use the React ecosystem.
279
+
280
+ ## 🔗 Links
281
+
282
+ - GitHub: <https://github.com/vureact-js/core>
283
+ - Gitee: <https://gitee.com/vureact-js/core>
284
+ - Documentation: [https://vureact.top](https://vureact.top/)
285
+ - npm: <https://www.npmjs.com/package/@vureact/compiler-core>
286
+ - Online Examples: <https://codesandbox.io/p/github/vureact-js/example-crm-admin-backend/master>
package/README.md CHANGED
@@ -4,28 +4,30 @@
4
4
  [![npm downloads](https://img.shields.io/npm/dm/@vureact/compiler-core.svg?style=flat-square)](https://www.npmjs.com/package/@vureact/compiler-core)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
6
 
7
- ## What is VuReact?
7
+ 简体中文 | [English](./README.en.md)
8
8
 
9
- [VuReact](http://vureact.top) (pronounced /vjuːˈriːækt/) is an semantic-aware Vue 3 to React 18+ compiler for progressive migration.
9
+ ## 什么是 VuReact?
10
10
 
11
- It is not a simple syntax conversion, but **semantic-level compilation**: it understands the intent of Vue code and generates code that adheres to React best practices. It consists of two parts: **compile-time transformation** + **runtime adaptation**.
11
+ [VuReact](http://vureact.top)(发音 `/vjuːˈriːækt/`)是一个渐进式语义驱动的 Vue 3 React 18+ 迁移编译器
12
12
 
13
- The core strategy is **"convention over configuration"** — through clear compilation conventions, it ensures stable and reliable conversion, making it especially suitable for **progressive migration** scenarios.
13
+ 它不是简单的语法转换,而是**语义级编译**:理解 Vue 代码的意图,生成符合 React 最佳实践的代码。由**编译时转换** + **运行时适配**两部分构成。
14
14
 
15
- ## Quick Start
15
+ 核心策略是 **“约定优先”** ——通过明确的编译约定,确保转换稳定可靠,尤其适合**渐进式迁移**场景。
16
16
 
17
- This section will guide you through creating, compiling, and running your first VuReact project; alternatively, you can check out the [online examples first](https://codesandbox.io/p/sandbox/examples-f5rlpk).
17
+ ## 快速开始
18
18
 
19
- After completion, you will clearly understand three things:
19
+ 本节将引导你完成第一个 VuReact 项目的创建、编译和运行;或者选择先查看 [codesandbox 在线示例](https://codesandbox.io/p/github/vureact-js/example-crm-admin-backend/master)。
20
20
 
21
- 1. Under what conventions input SFCs can be stably converted
22
- 2. What the compiled directory structure looks like
23
- 3. The semantic correspondence between the output TSX and the original SFC
24
- 4. The compiler automatically analyzes and appends dependencies, eliminating the need to manually manage React hooks dependencies
21
+ 完成后你会明确三件事:
25
22
 
26
- ## Step 0: Prepare the Directory
23
+ 1. 输入 SFC 在什么约定下可稳定转换
24
+ 2. 编译后目录会长什么样
25
+ 3. 输出 TSX 与原始 SFC 的语义对应关系
26
+ 4. 编译器会自动分析并追加依赖,无需手动管理 React hooks 依赖项
27
27
 
28
- First, set up a minimal project (illustration):
28
+ ## Step 0:准备目录
29
+
30
+ 先准备一个最小工程(示意):
29
31
 
30
32
  ```txt
31
33
  my-app/
@@ -38,22 +40,22 @@ my-app/
38
40
  └─ vureact.config.js
39
41
  ```
40
42
 
41
- ## Step 1: Installation
43
+ ## Step 1:安装
42
44
 
43
- Install the VuReact compiler in your Vue project:
45
+ 在你的 Vue 项目中安装 VuReact 编译器:
44
46
 
45
47
  ```bash
46
- # Using npm
48
+ # 使用 npm
47
49
  npm install -D @vureact/compiler-core
48
50
 
49
- # Using yarn
51
+ # 使用 yarn
50
52
  yarn add -D @vureact/compiler-core
51
53
 
52
- # Using pnpm
54
+ # 使用 pnpm
53
55
  pnpm add -D @vureact/compiler-core
54
56
  ```
55
57
 
56
- ## Step 2: Write the Input SFC
58
+ ## Step 2:编写输入 SFC
57
59
 
58
60
  `src/components/Counter.vue`
59
61
 
@@ -68,16 +70,16 @@ pnpm add -D @vureact/compiler-core
68
70
  </template>
69
71
 
70
72
  <script setup lang="ts">
71
- // @vr-name: Counter (Note: Tells the compiler what component name to generate)
73
+ // @vr-name: Counter (注:用于告诉编译器,该生成什么组件名)
72
74
  import { computed, ref } from 'vue';
73
75
 
74
- // You can also use macros to define component names
76
+ // 也可以使用宏定义组件名
75
77
  defineOptions({ name: 'Counter' });
76
78
 
77
- // Define props
79
+ // 定义 props
78
80
  const props = defineProps<{ title?: string }>();
79
81
 
80
- // Define emits
82
+ // 定义 emits
81
83
  const emits = defineEmits<{
82
84
  (e: 'change'): void;
83
85
  (e: 'update', value: number): number;
@@ -112,7 +114,7 @@ pnpm add -D @vureact/compiler-core
112
114
  </style>
113
115
  ```
114
116
 
115
- ## Step 3: Configure the Compiler
117
+ ## Step 3:配置编译器
116
118
 
117
119
  `vureact.config.js`
118
120
 
@@ -121,34 +123,34 @@ import { defineConfig } from '@vureact/compiler-core';
121
123
 
122
124
  export default defineConfig({
123
125
  input: 'src',
124
- // Key: Exclude Vue entry files to avoid entry semantic conflicts
126
+ // 关键:排除 Vue 入口文件,避免入口语义冲突
125
127
  exclude: ['src/main.ts'],
126
128
  output: {
127
129
  workspace: '.vureact',
128
130
  outDir: 'dist',
129
- // Disable environment initialization for tutorial scenarios to observe pure compilation output
131
+ // 教程场景关闭环境初始化,便于观察纯编译产物
130
132
  bootstrapVite: false,
131
133
  },
132
134
  format: {
133
- enabled: true, // Enable formatting (this will increase compilation time).
135
+ enabled: true, // 开启格式化,同时这也会增加编译耗时。
134
136
  formatter: 'prettier',
135
137
  },
136
138
  });
137
139
  ```
138
140
 
139
- ## Step 4: Execute Compilation
141
+ ## Step 4:执行编译
140
142
 
141
- ### Method 1: Use the npx command
143
+ ### 方式一:使用 npx 命令
142
144
 
143
- Run in the root directory:
145
+ 在根目录下运行:
144
146
 
145
147
  ```bash
146
148
  npx vureact build
147
149
  ```
148
150
 
149
- ### Method 2: Use npm scripts
151
+ ### 方式二:使用 npm scripts
150
152
 
151
- Add script commands to `package.json`:
153
+ `package.json` 里添加脚本命令:
152
154
 
153
155
  ```json
154
156
  "scripts": {
@@ -161,9 +163,9 @@ Add script commands to `package.json`:
161
163
  npm run build
162
164
  ```
163
165
 
164
- ## Step 5: View the Output Directory Tree
166
+ ## Step 5:查看输出目录树
165
167
 
166
- Compiled directory (illustration):
168
+ 编译后目录(示意):
167
169
 
168
170
  ```txt
169
171
  my-app/
@@ -174,42 +176,42 @@ my-app/
174
176
  │ └─ src/
175
177
  │ └─ components/
176
178
  │ ├─ Counter.tsx
177
- │ └─ Counter-<hash>.css
179
+ │ └─ counter-<hash>.css
178
180
  ├─ src/
179
181
  │ └─ ...
180
182
  └─ vureact.config.js
181
183
  ```
182
184
 
183
- ## Step 6: Compare the Generated Results
185
+ ## Step 6:对照生成结果
184
186
 
185
- Below is a typical formatted output (slightly simplified for illustration; the actual hash and property names are subject to local output):
187
+ 下面是一个格式化后的典型输出(为说明做了轻微简化,实际哈希与属性名以本地产物为准):
186
188
 
187
- ```ts
189
+ ```tsx
188
190
  import { memo, useCallback, useMemo } from 'react';
189
191
  import { useComputed, useVRef } from '@vureact/runtime-core';
190
- import './Counter-a1b2c3.css';
192
+ import './counter-a1b2c3.css';
191
193
 
192
- // Derived from defineProps and defineEmits
194
+ // 根据 defineProps defineEmits 推导
193
195
  type ICounterType = {
194
- title?: string
196
+ title?: string;
195
197
  onChange: () => void;
196
198
  onUpdate: (value: number) => number;
197
- }
199
+ };
198
200
 
199
- // Component wrapped with memo
201
+ // memo 包裹组件
200
202
  const Counter = memo((props: ICounterType) => {
201
- // ref/computed converted to equivalent adaptation APIs
203
+ // ref/computed 转换成了对等的适配 API
202
204
  const step = useVRef(1);
203
205
  const count = useVRef(0);
204
206
  const title = useComputed(() => `Counter x${step.value}`);
205
207
 
206
- // Automatically analyze dependencies of top-level arrow functions and append useCallback optimization
208
+ // 自动分析顶层箭头函数依赖,并追加 useCallback 优化
207
209
  const increment = useCallback(() => {
208
210
  count.value += step.value;
209
- props.onUpdate?.(count.value); // emits conversion
211
+ props.onUpdate?.(count.value); // emits 转换
210
212
  }, [count.value, step.value, props.onUpdate]);
211
213
 
212
- // Automatically analyze dependencies in top-level objects and append useMemo optimization
214
+ // 自动分析顶层对象中的依赖,并追加 useMemo 优化
213
215
  const methods = useMemo(
214
216
  () => ({
215
217
  decrease() {
@@ -238,7 +240,7 @@ const Counter = memo((props: ICounterType) => {
238
240
  export default Counter;
239
241
  ```
240
242
 
241
- CSS file content:
243
+ CSS 文件内容:
242
244
 
243
245
  ```css
244
246
  .counter-card[data-css-a1b2c3] {
@@ -248,37 +250,37 @@ CSS file content:
248
250
  }
249
251
  ```
250
252
 
251
- ## Key Observations
253
+ ## 关键观察点
252
254
 
253
- 1. The special comment `// @vr-name: Counter` defines the component name
254
- 2. `defineProps` and `defineEmits` are converted to TS component types
255
- 3. Non-pure UI display components are wrapped with `memo` by default
256
- 4. `ref` / `computed` are converted to runtime adaptation APIs (`useVRef` / `useComputed`)
257
- 5. Template event callbacks generate React-semantic `onClick`
258
- 6. Top-level arrow functions have their dependencies automatically analyzed and `useCallback` is injected where applicable
259
- 7. Top-level variable declarations have their dependencies automatically analyzed and `useMemo` is injected where applicable
260
- 8. The `.value` suffix is added to original `ref` state values in JSX
261
- 9. Less styles are compiled to CSS code
262
- 10. Scoped styles generate hashed CSS files and add scoped attributes to elements
255
+ 1. `// @vr-name: Counter` 这段特殊注释定义了组件名
256
+ 2. `defineProps` `defineEmits` 被转换成了 TS 组件类型
257
+ 3. 非纯 UI 展示组件,默认会走 `memo` 包装
258
+ 4. `ref` / `computed` 被转换为 runtime 适配 API(`useVRef` / `useComputed`)
259
+ 5. 模板事件回调会生成符合 React 语义的 `onClick`
260
+ 6. 顶层箭头函数自动分析依赖,尝试注入 `useCallback`
261
+ 7. 顶层变量声明自动分析依赖,尝试注入 `useMemo`
262
+ 8. JSX 中的原 `ref` 状态值补上 `.value`
263
+ 9. `less` 样式被编译为 css 代码
264
+ 10. `scoped` 样式会生成带哈希的 css 文件,并在元素上标注作用域属性
263
265
 
264
- ## Common Failure Points
266
+ ## 常见失败点
265
267
 
266
- - Failure to exclude Vue entry files (e.g., `src/main.ts` or `App.vue`)
267
- - Calling APIs that are converted to Hooks outside the top level
268
- - Unanalyzable expressions appearing in templates (triggering warnings)
269
- - Disabling style preprocessing while using `scoped`, leading to scoping failure
268
+ - 没排除 Vue 入口文件,如 `src/main.ts` `App.vue`
269
+ - 在非顶层调用会被转换为 Hook API
270
+ - 模板里出现不可分析表达式并被告警
271
+ - 关闭样式预处理且使用 `scoped`,导致作用域失效
270
272
 
271
- ## Ecosystem Integration
273
+ ## 生态集成
272
274
 
273
- - **[Vue Core Adaptation Package](https://runtime.vureact.top/)**: Provides React versions of Vue's common built-in components, core Composition API, etc.
274
- - **[Vue Router Adaptation Package](https://router.vureact.top/)**: Supports conversion from Vue Router 4.x to React Router DOM 7.9+.
275
+ - **[Vue 核心适配包](https://runtime.vureact.top/)**:提供 React 版的 Vue 常用内置组件、核心 Composition API
276
+ - **[Vue 路由适配包](https://router.vureact.top/)**:支持 Vue Router 4.x -> React Router DOM 7.9+ 转换
275
277
 
276
- If necessary, you can choose [☣️ Mixed Coding](https://vureact.top/guide/mind-control-readme.html) to directly use the React ecosystem.
278
+ 如果确实需要,你可以选择 [☣️混合编写](https://vureact.top/guide/mind-control-readme.html),以此直接使用 React 生态。
277
279
 
278
- ## 🔗 Links
280
+ ## 🔗 链接
279
281
 
280
- - GitHub: <https://github.com/vureact-js/core>
281
- - Gitee: <https://gitee.com/vureact-js/core>
282
- - Documentation: [https://vureact.top](https://vureact.top/)
283
- - npm: <https://www.npmjs.com/package/@vureact/compiler-core>
284
- - Online Examples: <https://codesandbox.io/p/devbox/compiler-examples-n8yg68>
282
+ - GitHub:<https://github.com/vureact-js/core>
283
+ - Gitee:<https://gitee.com/vureact-js/core>
284
+ - 文档:[https://vureact.top](https://vureact.top/)
285
+ - npm:<https://www.npmjs.com/package/@vureact/compiler-core>
286
+ - 在线示例:<https://codesandbox.io/p/github/vureact-js/example-crm-admin-backend/master>