@vureact/compiler-core 1.8.4 → 1.8.5
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 +1 -0
- package/README.zh-CN.md +2 -2
- package/lib/{chunk-EH3325ZP.js → chunk-6FMNT76F.js} +38 -16
- package/lib/{chunk-S6IFUYGO.esm.js → chunk-FWYPSB43.esm.js} +38 -16
- package/lib/cli.esm.js +2 -2
- package/lib/cli.js +10 -10
- package/lib/compiler-core.esm.js +2 -2
- package/lib/compiler-core.js +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
It is used to fully convert Vue 3 SFCs, Scripts, and Styles into pure React (non-runtime bridge) code and output engineered artifacts, covering all core features of `<script setup>`, and supporting progressive migration and hybrid development.
|
|
6
6
|
|
|
7
|
+
[](https://github.com/vureact-js/core/stargazers)
|
|
7
8
|
[](https://www.npmjs.com/package/@vureact/compiler-core)
|
|
8
9
|
[](https://nodejs.org/)
|
|
9
10
|
[](https://github.com/vureact-js/core/blob/master/LICENSE)
|
package/README.zh-CN.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# @vureact/compiler-core
|
|
2
2
|
|
|
3
|
-
`@vureact/compiler-core`
|
|
3
|
+
`@vureact/compiler-core` 是一套面向 Vue 迁移 React 和混合开发的完整解决方案。VuReact 的 **CLI 与核心编译包**。
|
|
4
4
|
它用于将 Vue 3 SFCs・Scripts・Styles 完整转为纯 React(非运行时桥接)代码并输出工程化产物,覆盖 `<script setup>` 核心全特性,支持渐进式迁移和混合开发。
|
|
5
5
|
|
|
6
|
-
[](https://github.com/vureact-js/core)
|
|
6
|
+
[](https://github.com/vureact-js/core/stargazers)
|
|
7
7
|
[](https://www.npmjs.com/package/@vureact/compiler-core)
|
|
8
8
|
[](https://nodejs.org/)
|
|
9
9
|
[](https://github.com/vureact-js/core/blob/master/LICENSE)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } function _optionalChainDelete(ops) { const result = _optionalChain(ops); return result == null ? true : result; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13;/**
|
|
2
|
-
* @vureact/compiler-core v1.8.
|
|
2
|
+
* @vureact/compiler-core v1.8.5
|
|
3
3
|
* (c) 2025-present Ruihong Zhong (Ryan John)
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -1180,26 +1180,38 @@ function buildCtxProviderNode(nodeIR, ctx, children) {
|
|
|
1180
1180
|
|
|
1181
1181
|
// src/core/codegen/component/jsx/syntax-processor/postprocess/build-root-jsx.ts
|
|
1182
1182
|
function buildRootJsxProcessor(nodeIR, ctx, state) {
|
|
1183
|
-
|
|
1184
|
-
|
|
1183
|
+
const { rootChildren } = state;
|
|
1184
|
+
const { provide } = ctx.scriptData;
|
|
1185
|
+
const hasProvide = provide.isOccupied;
|
|
1186
|
+
const hasChildren = rootChildren.length > 0;
|
|
1187
|
+
const setResult = (elem) => {
|
|
1188
|
+
state.result = _nullishCoalesce(elem, () => ( null));
|
|
1189
|
+
};
|
|
1190
|
+
if (hasProvide) {
|
|
1191
|
+
const provider = buildCtxProviderNode(provide, ctx, rootChildren);
|
|
1192
|
+
if (!hasChildren) {
|
|
1193
|
+
setResult(buildFragmentNode([provider]));
|
|
1194
|
+
} else {
|
|
1195
|
+
setResult(provider);
|
|
1196
|
+
}
|
|
1185
1197
|
return;
|
|
1186
1198
|
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
state.result = buildCtxProviderNode(provide, ctx, state.rootChildren);
|
|
1199
|
+
if (!hasChildren) {
|
|
1200
|
+
setResult();
|
|
1190
1201
|
return;
|
|
1191
1202
|
}
|
|
1192
|
-
|
|
1203
|
+
setResult(buildFragmentNode(rootChildren));
|
|
1193
1204
|
void nodeIR;
|
|
1194
1205
|
}
|
|
1195
1206
|
|
|
1196
1207
|
// src/core/codegen/component/jsx/syntax-processor/index.ts
|
|
1197
1208
|
function buildJSXChild(nodeIR, ctx) {
|
|
1209
|
+
const templateIR = nodeIR || { children: [] };
|
|
1198
1210
|
const state = {
|
|
1199
1211
|
rootChildren: [],
|
|
1200
1212
|
result: null
|
|
1201
1213
|
};
|
|
1202
|
-
jsxBuilder(
|
|
1214
|
+
jsxBuilder(templateIR, ctx, state, {
|
|
1203
1215
|
preprocess: [],
|
|
1204
1216
|
process: [buildJsxChildrenProcessor],
|
|
1205
1217
|
postprocess: [buildRootJsxProcessor]
|
|
@@ -1217,7 +1229,7 @@ function jsxBuilder(nodeIR, ctx, state, options) {
|
|
|
1217
1229
|
|
|
1218
1230
|
// src/core/codegen/component/jsx/index.ts
|
|
1219
1231
|
function buildJSX(nodeIR, ctx) {
|
|
1220
|
-
if (!_optionalChain([nodeIR, 'optionalAccess', _32 => _32.children, 'access', _33 => _33.length])) {
|
|
1232
|
+
if (!_optionalChain([nodeIR, 'optionalAccess', _32 => _32.children, 'access', _33 => _33.length]) && ctx.inputType !== "sfc") {
|
|
1221
1233
|
return null;
|
|
1222
1234
|
}
|
|
1223
1235
|
return buildJSXChild(nodeIR, ctx);
|
|
@@ -5052,14 +5064,25 @@ function resolveLintRules(ctx, ast) {
|
|
|
5052
5064
|
|
|
5053
5065
|
|
|
5054
5066
|
function resolveProvide(ctx) {
|
|
5055
|
-
|
|
5067
|
+
const { filename, scriptData, inputType } = ctx;
|
|
5068
|
+
if (inputType !== "sfc") {
|
|
5069
|
+
return {};
|
|
5070
|
+
}
|
|
5056
5071
|
return {
|
|
5057
5072
|
CallExpression(path8) {
|
|
5058
5073
|
const { node } = path8;
|
|
5074
|
+
if (inputType.startsWith("script")) {
|
|
5075
|
+
logger.error("provide() call found outside of SFC <script setup> context.", {
|
|
5076
|
+
file: filename,
|
|
5077
|
+
source: scriptData.source,
|
|
5078
|
+
loc: node.loc
|
|
5079
|
+
});
|
|
5080
|
+
return;
|
|
5081
|
+
}
|
|
5059
5082
|
const providerTarget = _optionalChain([ADAPTER_RULES, 'access', _158 => _158.runtime, 'access', _159 => _159[VUE_API_MAP.provide], 'optionalAccess', _160 => _160.target]);
|
|
5060
5083
|
const isProvideCall = isCalleeNamed(node, VUE_API_MAP.provide) || providerTarget && isCalleeNamed(node, providerTarget);
|
|
5061
5084
|
if (!isProvideCall) return;
|
|
5062
|
-
const { provide } =
|
|
5085
|
+
const { provide } = scriptData;
|
|
5063
5086
|
const [key, value] = node.arguments;
|
|
5064
5087
|
const target = findOrCreateCtxProvider(provide);
|
|
5065
5088
|
const adapter = ADAPTER_RULES.runtime[VUE_API_MAP.provide];
|
|
@@ -5206,11 +5229,10 @@ function processVueSyntax2(ast, ctx) {
|
|
|
5206
5229
|
process: {
|
|
5207
5230
|
applyBabel: [
|
|
5208
5231
|
resolveElementRef,
|
|
5209
|
-
// provide 需要在 rename 之前收集并移除原始调用,避免被重命名后失配
|
|
5210
|
-
resolveProvide,
|
|
5211
5232
|
resolveRenameAdapter,
|
|
5212
|
-
// fix
|
|
5213
|
-
|
|
5233
|
+
// fix: https://github.com/vureact-js/core/issues/46
|
|
5234
|
+
resolveProvide,
|
|
5235
|
+
// fix:在分析函数前分析可优化为 useMemo 的顶层变量声明,使得后续能够被函数依赖分析
|
|
5214
5236
|
resolveExprMemo,
|
|
5215
5237
|
resolveArrowFnDeps,
|
|
5216
5238
|
resolveAnalysisOnlyAdapter,
|
|
@@ -6672,7 +6694,7 @@ function transform(ast, ctx, options) {
|
|
|
6672
6694
|
}
|
|
6673
6695
|
|
|
6674
6696
|
// package.json
|
|
6675
|
-
var version = "1.8.
|
|
6697
|
+
var version = "1.8.5";
|
|
6676
6698
|
var bin = {
|
|
6677
6699
|
vureact: "bin/vureact.js"
|
|
6678
6700
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vureact/compiler-core v1.8.
|
|
2
|
+
* @vureact/compiler-core v1.8.5
|
|
3
3
|
* (c) 2025-present Ruihong Zhong (Ryan John)
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -1180,26 +1180,38 @@ function buildCtxProviderNode(nodeIR, ctx, children) {
|
|
|
1180
1180
|
|
|
1181
1181
|
// src/core/codegen/component/jsx/syntax-processor/postprocess/build-root-jsx.ts
|
|
1182
1182
|
function buildRootJsxProcessor(nodeIR, ctx, state) {
|
|
1183
|
-
|
|
1184
|
-
|
|
1183
|
+
const { rootChildren } = state;
|
|
1184
|
+
const { provide } = ctx.scriptData;
|
|
1185
|
+
const hasProvide = provide.isOccupied;
|
|
1186
|
+
const hasChildren = rootChildren.length > 0;
|
|
1187
|
+
const setResult = (elem) => {
|
|
1188
|
+
state.result = elem ?? null;
|
|
1189
|
+
};
|
|
1190
|
+
if (hasProvide) {
|
|
1191
|
+
const provider = buildCtxProviderNode(provide, ctx, rootChildren);
|
|
1192
|
+
if (!hasChildren) {
|
|
1193
|
+
setResult(buildFragmentNode([provider]));
|
|
1194
|
+
} else {
|
|
1195
|
+
setResult(provider);
|
|
1196
|
+
}
|
|
1185
1197
|
return;
|
|
1186
1198
|
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
state.result = buildCtxProviderNode(provide, ctx, state.rootChildren);
|
|
1199
|
+
if (!hasChildren) {
|
|
1200
|
+
setResult();
|
|
1190
1201
|
return;
|
|
1191
1202
|
}
|
|
1192
|
-
|
|
1203
|
+
setResult(buildFragmentNode(rootChildren));
|
|
1193
1204
|
void nodeIR;
|
|
1194
1205
|
}
|
|
1195
1206
|
|
|
1196
1207
|
// src/core/codegen/component/jsx/syntax-processor/index.ts
|
|
1197
1208
|
function buildJSXChild(nodeIR, ctx) {
|
|
1209
|
+
const templateIR = nodeIR || { children: [] };
|
|
1198
1210
|
const state = {
|
|
1199
1211
|
rootChildren: [],
|
|
1200
1212
|
result: null
|
|
1201
1213
|
};
|
|
1202
|
-
jsxBuilder(
|
|
1214
|
+
jsxBuilder(templateIR, ctx, state, {
|
|
1203
1215
|
preprocess: [],
|
|
1204
1216
|
process: [buildJsxChildrenProcessor],
|
|
1205
1217
|
postprocess: [buildRootJsxProcessor]
|
|
@@ -1217,7 +1229,7 @@ function jsxBuilder(nodeIR, ctx, state, options) {
|
|
|
1217
1229
|
|
|
1218
1230
|
// src/core/codegen/component/jsx/index.ts
|
|
1219
1231
|
function buildJSX(nodeIR, ctx) {
|
|
1220
|
-
if (!nodeIR?.children.length) {
|
|
1232
|
+
if (!nodeIR?.children.length && ctx.inputType !== "sfc") {
|
|
1221
1233
|
return null;
|
|
1222
1234
|
}
|
|
1223
1235
|
return buildJSXChild(nodeIR, ctx);
|
|
@@ -5052,14 +5064,25 @@ function resolveLintRules(ctx, ast) {
|
|
|
5052
5064
|
import { generate as generate2 } from "@babel/generator";
|
|
5053
5065
|
import * as t48 from "@babel/types";
|
|
5054
5066
|
function resolveProvide(ctx) {
|
|
5055
|
-
|
|
5067
|
+
const { filename, scriptData, inputType } = ctx;
|
|
5068
|
+
if (inputType !== "sfc") {
|
|
5069
|
+
return {};
|
|
5070
|
+
}
|
|
5056
5071
|
return {
|
|
5057
5072
|
CallExpression(path8) {
|
|
5058
5073
|
const { node } = path8;
|
|
5074
|
+
if (inputType.startsWith("script")) {
|
|
5075
|
+
logger.error("provide() call found outside of SFC <script setup> context.", {
|
|
5076
|
+
file: filename,
|
|
5077
|
+
source: scriptData.source,
|
|
5078
|
+
loc: node.loc
|
|
5079
|
+
});
|
|
5080
|
+
return;
|
|
5081
|
+
}
|
|
5059
5082
|
const providerTarget = ADAPTER_RULES.runtime[VUE_API_MAP.provide]?.target;
|
|
5060
5083
|
const isProvideCall = isCalleeNamed(node, VUE_API_MAP.provide) || providerTarget && isCalleeNamed(node, providerTarget);
|
|
5061
5084
|
if (!isProvideCall) return;
|
|
5062
|
-
const { provide } =
|
|
5085
|
+
const { provide } = scriptData;
|
|
5063
5086
|
const [key, value] = node.arguments;
|
|
5064
5087
|
const target = findOrCreateCtxProvider(provide);
|
|
5065
5088
|
const adapter = ADAPTER_RULES.runtime[VUE_API_MAP.provide];
|
|
@@ -5206,11 +5229,10 @@ function processVueSyntax2(ast, ctx) {
|
|
|
5206
5229
|
process: {
|
|
5207
5230
|
applyBabel: [
|
|
5208
5231
|
resolveElementRef,
|
|
5209
|
-
// provide 需要在 rename 之前收集并移除原始调用,避免被重命名后失配
|
|
5210
|
-
resolveProvide,
|
|
5211
5232
|
resolveRenameAdapter,
|
|
5212
|
-
// fix
|
|
5213
|
-
|
|
5233
|
+
// fix: https://github.com/vureact-js/core/issues/46
|
|
5234
|
+
resolveProvide,
|
|
5235
|
+
// fix:在分析函数前分析可优化为 useMemo 的顶层变量声明,使得后续能够被函数依赖分析
|
|
5214
5236
|
resolveExprMemo,
|
|
5215
5237
|
resolveArrowFnDeps,
|
|
5216
5238
|
resolveAnalysisOnlyAdapter,
|
|
@@ -6672,7 +6694,7 @@ function transform(ast, ctx, options) {
|
|
|
6672
6694
|
}
|
|
6673
6695
|
|
|
6674
6696
|
// package.json
|
|
6675
|
-
var version = "1.8.
|
|
6697
|
+
var version = "1.8.5";
|
|
6676
6698
|
var bin = {
|
|
6677
6699
|
vureact: "bin/vureact.js"
|
|
6678
6700
|
};
|
package/lib/cli.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* @vureact/compiler-core v1.8.
|
|
3
|
+
* @vureact/compiler-core v1.8.5
|
|
4
4
|
* (c) 2025-present Ruihong Zhong (Ryan John)
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
getDirname,
|
|
14
14
|
normalizePath,
|
|
15
15
|
version
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FWYPSB43.esm.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/index.ts
|
|
19
19
|
import { cac } from "cac";
|
package/lib/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict"; function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
3
|
-
* @vureact/compiler-core v1.8.
|
|
3
|
+
* @vureact/compiler-core v1.8.5
|
|
4
4
|
* (c) 2025-present Ruihong Zhong (Ryan John)
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk6FMNT76Fjs = require('./chunk-6FMNT76F.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/index.ts
|
|
19
19
|
var _cac = require('cac');
|
|
@@ -76,7 +76,7 @@ var _ora = require('ora'); var _ora2 = _interopRequireDefault(_ora);
|
|
|
76
76
|
|
|
77
77
|
function setupWatcher(compiler, config) {
|
|
78
78
|
const spinner = _ora2.default.call(void 0, );
|
|
79
|
-
const cmpHelper = new (0,
|
|
79
|
+
const cmpHelper = new (0, _chunk6FMNT76Fjs.Helper)(config);
|
|
80
80
|
const watcher = _chokidar2.default.watch(cmpHelper.getInputPath(), {
|
|
81
81
|
ignored: cmpHelper.getExcludes(),
|
|
82
82
|
persistent: true,
|
|
@@ -104,7 +104,7 @@ function setupWatcher(compiler, config) {
|
|
|
104
104
|
};
|
|
105
105
|
const onRecompile = async (event, filePath) => {
|
|
106
106
|
const ext = _path2.default.extname(filePath);
|
|
107
|
-
const relativePath =
|
|
107
|
+
const relativePath = _chunk6FMNT76Fjs.normalizePath.call(void 0, cmpHelper.relativePath(filePath));
|
|
108
108
|
if (ext in processors) {
|
|
109
109
|
spinner.start("Recompiling...");
|
|
110
110
|
const startTime = performance.now();
|
|
@@ -115,7 +115,7 @@ function setupWatcher(compiler, config) {
|
|
|
115
115
|
cmpHelper.print(
|
|
116
116
|
_kleur2.default.green("compiled"),
|
|
117
117
|
_kleur2.default.dim(relativePath),
|
|
118
|
-
_kleur2.default.gray(`(${
|
|
118
|
+
_kleur2.default.gray(`(${_chunk6FMNT76Fjs.calcElapsedTime.call(void 0, startTime)})`)
|
|
119
119
|
);
|
|
120
120
|
await _optionalChain([config, 'access', _5 => _5.onChange, 'optionalCall', _6 => _6(event, unit)]);
|
|
121
121
|
} else {
|
|
@@ -130,7 +130,7 @@ function setupWatcher(compiler, config) {
|
|
|
130
130
|
};
|
|
131
131
|
const onRemoveFile = async (type, filePath) => {
|
|
132
132
|
const ext = _path2.default.extname(filePath);
|
|
133
|
-
const relativePath =
|
|
133
|
+
const relativePath = _chunk6FMNT76Fjs.normalizePath.call(void 0, cmpHelper.relativePath(filePath));
|
|
134
134
|
const scriptExtRegex = /\.(js|ts)$/i;
|
|
135
135
|
const styleExtRegex = /\.(css|less|sass|scss)$/i;
|
|
136
136
|
const removeFile = async (cacheKey) => {
|
|
@@ -167,7 +167,7 @@ async function resolveAction(root, options) {
|
|
|
167
167
|
const projectRoot = root ? _path2.default.resolve(process.cwd(), root) : process.cwd();
|
|
168
168
|
const userConfig = await loadUserConfig(projectRoot);
|
|
169
169
|
const finalConfig = mergeConfig(projectRoot, options, userConfig);
|
|
170
|
-
const compiler = new (0,
|
|
170
|
+
const compiler = new (0, _chunk6FMNT76Fjs.VuReact)(finalConfig);
|
|
171
171
|
await compiler.execute();
|
|
172
172
|
if (finalConfig.watch) {
|
|
173
173
|
setupWatcher(compiler, finalConfig);
|
|
@@ -190,7 +190,7 @@ function resolveOptions(command) {
|
|
|
190
190
|
|
|
191
191
|
|
|
192
192
|
var _updatenotifier = require('update-notifier'); var _updatenotifier2 = _interopRequireDefault(_updatenotifier);
|
|
193
|
-
var __dirname =
|
|
193
|
+
var __dirname = _chunk6FMNT76Fjs.getDirname.call(void 0, import.meta.url);
|
|
194
194
|
function checkForUpdates() {
|
|
195
195
|
try {
|
|
196
196
|
const possiblePaths = [
|
|
@@ -231,7 +231,7 @@ function checkForUpdates() {
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
// src/cli/index.ts
|
|
234
|
-
var [programName] = Object.keys(
|
|
234
|
+
var [programName] = Object.keys(_chunk6FMNT76Fjs.bin);
|
|
235
235
|
var cli = _cac.cac.call(void 0, programName);
|
|
236
236
|
checkForUpdates();
|
|
237
237
|
var buildCommand = cli.command("build [root]", "Compile Vue3 to React (one-time)");
|
|
@@ -242,4 +242,4 @@ var watchCommand = cli.command("watch [root]", "Compile Vue3 to React and watch
|
|
|
242
242
|
resolveOptions(watchCommand).action((root, options) => {
|
|
243
243
|
resolveAction(root, { ...options, watch: true });
|
|
244
244
|
});
|
|
245
|
-
cli.help().version(
|
|
245
|
+
cli.help().version(_chunk6FMNT76Fjs.version).parse();
|
package/lib/compiler-core.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vureact/compiler-core v1.8.
|
|
2
|
+
* @vureact/compiler-core v1.8.5
|
|
3
3
|
* (c) 2025-present Ruihong Zhong (Ryan John)
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
parseOnlyScript,
|
|
19
19
|
parseSFC,
|
|
20
20
|
transform
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FWYPSB43.esm.js";
|
|
22
22
|
export {
|
|
23
23
|
BaseCompiler,
|
|
24
24
|
CacheKey,
|
package/lib/compiler-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* @vureact/compiler-core v1.8.
|
|
2
|
+
* @vureact/compiler-core v1.8.5
|
|
3
3
|
* (c) 2025-present Ruihong Zhong (Ryan John)
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk6FMNT76Fjs = require('./chunk-6FMNT76F.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -33,4 +33,4 @@ var _chunkEH3325ZPjs = require('./chunk-EH3325ZP.js');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
exports.BaseCompiler =
|
|
36
|
+
exports.BaseCompiler = _chunk6FMNT76Fjs.BaseCompiler; exports.CacheKey = _chunk6FMNT76Fjs.CacheKey; exports.FileCompiler = _chunk6FMNT76Fjs.FileCompiler; exports.Helper = _chunk6FMNT76Fjs.Helper; exports.VuReact = _chunk6FMNT76Fjs.VuReact; exports.defineConfig = _chunk6FMNT76Fjs.defineConfig; exports.generate = _chunk6FMNT76Fjs.generate; exports.generateComponent = _chunk6FMNT76Fjs.generateComponent; exports.generateOnlyScript = _chunk6FMNT76Fjs.generateOnlyScript; exports.parse = _chunk6FMNT76Fjs.parse; exports.parseOnlyScript = _chunk6FMNT76Fjs.parseOnlyScript; exports.parseSFC = _chunk6FMNT76Fjs.parseSFC; exports.transform = _chunk6FMNT76Fjs.transform;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vureact/compiler-core",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.5",
|
|
4
4
|
"description": "Migrate Vue to React, or write React in Vue syntax.",
|
|
5
5
|
"author": "Ruihong Zhong (Ryan John)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -99,4 +99,4 @@
|
|
|
99
99
|
"engines": {
|
|
100
100
|
"node": ">=19.0.0"
|
|
101
101
|
}
|
|
102
|
-
}
|
|
102
|
+
}
|