@vureact/compiler-core 1.2.0 → 1.2.1

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/lib/cli.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @vureact/compiler-core v1.1.1
3
+ * @vureact/compiler-core v1.2.1
4
4
  * (c) 2025-present Ruihong Zhong (Ryan John)
5
5
  * @license MIT
6
6
  */
@@ -12,7 +12,7 @@ import {
12
12
  calcElapsedTime,
13
13
  normalizePath,
14
14
  version
15
- } from "./chunk-UJZGDNNB.esm.js";
15
+ } from "./chunk-7FIMRVQS.esm.js";
16
16
 
17
17
  // src/cli/index.ts
18
18
  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.1.1
3
+ * @vureact/compiler-core v1.2.1
4
4
  * (c) 2025-present Ruihong Zhong (Ryan John)
5
5
  * @license MIT
6
6
  */
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- var _chunkFCLIDEIZjs = require('./chunk-FCLIDEIZ.js');
15
+ var _chunkSQRJUILRjs = require('./chunk-SQRJUILR.js');
16
16
 
17
17
  // src/cli/index.ts
18
18
  var _cac = require('cac');
@@ -28,7 +28,7 @@ async function resolveAction(root, options) {
28
28
  const projectRoot = root ? _path2.default.resolve(process.cwd(), root) : process.cwd();
29
29
  const userConfig = await loadUserConfig(projectRoot);
30
30
  const finalConfig = mergeConfig(projectRoot, options, userConfig);
31
- const compiler = new (0, _chunkFCLIDEIZjs.VuReact)(finalConfig);
31
+ const compiler = new (0, _chunkSQRJUILRjs.VuReact)(finalConfig);
32
32
  await compiler.execute();
33
33
  if (finalConfig.watch) {
34
34
  setupWatcher(compiler, finalConfig);
@@ -82,7 +82,7 @@ function mergeConfig(projectRoot, options, userConfig) {
82
82
  }
83
83
  function setupWatcher(compiler, config) {
84
84
  const spinner = _ora2.default.call(void 0, );
85
- const cmpHelper = new (0, _chunkFCLIDEIZjs.Helper)(config);
85
+ const cmpHelper = new (0, _chunkSQRJUILRjs.Helper)(config);
86
86
  const watcher = _chokidar2.default.watch(cmpHelper.getInputPath(), {
87
87
  ignored: cmpHelper.getExcludes(),
88
88
  persistent: true,
@@ -117,7 +117,7 @@ function setupWatcher(compiler, config) {
117
117
  const fn = processors[ext];
118
118
  const unit = await fn(filePath);
119
119
  cmpHelper.printCoreLogs();
120
- cmpHelper.printCompileInfo(filePath, _chunkFCLIDEIZjs.calcElapsedTime.call(void 0, startTime));
120
+ cmpHelper.printCompileInfo(filePath, _chunkSQRJUILRjs.calcElapsedTime.call(void 0, startTime));
121
121
  if (unit) {
122
122
  await _optionalChain([config, 'access', _11 => _11.onChange, 'optionalCall', _12 => _12(event, unit)]);
123
123
  }
@@ -126,7 +126,7 @@ function setupWatcher(compiler, config) {
126
126
  await compiler.processAsset(filePath);
127
127
  cmpHelper.print(
128
128
  _kleur2.default.blue("Copied Asset"),
129
- _kleur2.default.dim(_chunkFCLIDEIZjs.normalizePath.call(void 0, cmpHelper.relativePath(filePath)))
129
+ _kleur2.default.dim(_chunkSQRJUILRjs.normalizePath.call(void 0, cmpHelper.relativePath(filePath)))
130
130
  );
131
131
  }
132
132
  spinner.stop();
@@ -139,7 +139,7 @@ function setupWatcher(compiler, config) {
139
139
  await compiler.removeOutputPath(filePath, type2);
140
140
  cmpHelper.print(
141
141
  _kleur2.default.yellow("Removed"),
142
- _kleur2.default.dim(_chunkFCLIDEIZjs.normalizePath.call(void 0, cmpHelper.relativePath(filePath)))
142
+ _kleur2.default.dim(_chunkSQRJUILRjs.normalizePath.call(void 0, cmpHelper.relativePath(filePath)))
143
143
  );
144
144
  };
145
145
  if (type === "unlink") {
@@ -173,7 +173,7 @@ function resolveOptions(command) {
173
173
  }
174
174
 
175
175
  // src/cli/index.ts
176
- var [programName] = Object.keys(_chunkFCLIDEIZjs.bin);
176
+ var [programName] = Object.keys(_chunkSQRJUILRjs.bin);
177
177
  var cli = _cac.cac.call(void 0, programName);
178
178
  var buildCommand = cli.command("build [root]", "Compile Vue3 to React (one-time)");
179
179
  resolveOptions(buildCommand).action((root, options) => {
@@ -183,4 +183,4 @@ var watchCommand = cli.command("watch [root]", "Compile Vue3 to React and watch
183
183
  resolveOptions(watchCommand).action((root, options) => {
184
184
  resolveAction(root, { ...options, watch: true });
185
185
  });
186
- cli.help().version(_chunkFCLIDEIZjs.version).parse();
186
+ cli.help().version(_chunkSQRJUILRjs.version).parse();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vureact/compiler-core v1.1.1
2
+ * @vureact/compiler-core v1.2.1
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-UJZGDNNB.esm.js";
21
+ } from "./chunk-7FIMRVQS.esm.js";
22
22
  export {
23
23
  BaseCompiler,
24
24
  CacheKey,
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
- * @vureact/compiler-core v1.1.1
2
+ * @vureact/compiler-core v1.2.1
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 _chunkFCLIDEIZjs = require('./chunk-FCLIDEIZ.js');
21
+ var _chunkSQRJUILRjs = require('./chunk-SQRJUILR.js');
22
22
 
23
23
 
24
24
 
@@ -33,4 +33,4 @@ var _chunkFCLIDEIZjs = require('./chunk-FCLIDEIZ.js');
33
33
 
34
34
 
35
35
 
36
- exports.BaseCompiler = _chunkFCLIDEIZjs.BaseCompiler; exports.CacheKey = _chunkFCLIDEIZjs.CacheKey; exports.FileCompiler = _chunkFCLIDEIZjs.FileCompiler; exports.Helper = _chunkFCLIDEIZjs.Helper; exports.VuReact = _chunkFCLIDEIZjs.VuReact; exports.defineConfig = _chunkFCLIDEIZjs.defineConfig; exports.generate = _chunkFCLIDEIZjs.generate; exports.generateComponent = _chunkFCLIDEIZjs.generateComponent; exports.generateOnlyScript = _chunkFCLIDEIZjs.generateOnlyScript; exports.parse = _chunkFCLIDEIZjs.parse; exports.parseOnlyScript = _chunkFCLIDEIZjs.parseOnlyScript; exports.parseSFC = _chunkFCLIDEIZjs.parseSFC; exports.transform = _chunkFCLIDEIZjs.transform;
36
+ exports.BaseCompiler = _chunkSQRJUILRjs.BaseCompiler; exports.CacheKey = _chunkSQRJUILRjs.CacheKey; exports.FileCompiler = _chunkSQRJUILRjs.FileCompiler; exports.Helper = _chunkSQRJUILRjs.Helper; exports.VuReact = _chunkSQRJUILRjs.VuReact; exports.defineConfig = _chunkSQRJUILRjs.defineConfig; exports.generate = _chunkSQRJUILRjs.generate; exports.generateComponent = _chunkSQRJUILRjs.generateComponent; exports.generateOnlyScript = _chunkSQRJUILRjs.generateOnlyScript; exports.parse = _chunkSQRJUILRjs.parse; exports.parseOnlyScript = _chunkSQRJUILRjs.parseOnlyScript; exports.parseSFC = _chunkSQRJUILRjs.parseSFC; exports.transform = _chunkSQRJUILRjs.transform;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vureact/compiler-core",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "🌀 Next Vue to React compiler, compiles Vue 3 syntax into runnable React 18+ code.",
5
5
  "author": "Ruihong Zhong (Ryan John)",
6
6
  "license": "MIT",