@vureact/compiler-core 1.6.1 → 1.7.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/lib/cli.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @vureact/compiler-core v1.6.1
3
+ * @vureact/compiler-core v1.7.0
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-NXCZJT5W.esm.js";
16
+ } from "./chunk-Q7HZAZHD.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.6.1
3
+ * @vureact/compiler-core v1.7.0
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 _chunkZOTZLL4Ujs = require('./chunk-ZOTZLL4U.js');
16
+ var _chunkQ36XF5TPjs = require('./chunk-Q36XF5TP.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, _chunkZOTZLL4Ujs.Helper)(config);
79
+ const cmpHelper = new (0, _chunkQ36XF5TPjs.Helper)(config);
80
80
  const watcher = _chokidar2.default.watch(cmpHelper.getInputPath(), {
81
81
  ignored: cmpHelper.getExcludes(),
82
82
  persistent: true,
@@ -111,7 +111,7 @@ function setupWatcher(compiler, config) {
111
111
  const fn = processors[ext];
112
112
  const unit = await fn(filePath);
113
113
  cmpHelper.printCoreLogs();
114
- cmpHelper.printCompileInfo(filePath, _chunkZOTZLL4Ujs.calcElapsedTime.call(void 0, startTime));
114
+ cmpHelper.printCompileInfo(filePath, _chunkQ36XF5TPjs.calcElapsedTime.call(void 0, startTime));
115
115
  if (unit) {
116
116
  await _optionalChain([config, 'access', _5 => _5.onChange, 'optionalCall', _6 => _6(event, unit)]);
117
117
  }
@@ -120,7 +120,7 @@ function setupWatcher(compiler, config) {
120
120
  await compiler.processAsset(filePath);
121
121
  cmpHelper.print(
122
122
  _kleur2.default.blue("Copied Asset"),
123
- _kleur2.default.dim(_chunkZOTZLL4Ujs.normalizePath.call(void 0, cmpHelper.relativePath(filePath)))
123
+ _kleur2.default.dim(_chunkQ36XF5TPjs.normalizePath.call(void 0, cmpHelper.relativePath(filePath)))
124
124
  );
125
125
  }
126
126
  spinner.stop();
@@ -133,7 +133,7 @@ function setupWatcher(compiler, config) {
133
133
  await compiler.removeOutputPath(filePath, type2);
134
134
  cmpHelper.print(
135
135
  _kleur2.default.yellow("Removed"),
136
- _kleur2.default.dim(_chunkZOTZLL4Ujs.normalizePath.call(void 0, cmpHelper.relativePath(filePath)))
136
+ _kleur2.default.dim(_chunkQ36XF5TPjs.normalizePath.call(void 0, cmpHelper.relativePath(filePath)))
137
137
  );
138
138
  };
139
139
  if (type === "unlink") {
@@ -166,7 +166,7 @@ async function resolveAction(root, options) {
166
166
  const projectRoot = root ? _path2.default.resolve(process.cwd(), root) : process.cwd();
167
167
  const userConfig = await loadUserConfig(projectRoot);
168
168
  const finalConfig = mergeConfig(projectRoot, options, userConfig);
169
- const compiler = new (0, _chunkZOTZLL4Ujs.VuReact)(finalConfig);
169
+ const compiler = new (0, _chunkQ36XF5TPjs.VuReact)(finalConfig);
170
170
  await compiler.execute();
171
171
  if (finalConfig.watch) {
172
172
  setupWatcher(compiler, finalConfig);
@@ -189,7 +189,7 @@ function resolveOptions(command) {
189
189
 
190
190
 
191
191
  var _updatenotifier = require('update-notifier'); var _updatenotifier2 = _interopRequireDefault(_updatenotifier);
192
- var __dirname = _chunkZOTZLL4Ujs.getDirname.call(void 0, import.meta.url);
192
+ var __dirname = _chunkQ36XF5TPjs.getDirname.call(void 0, import.meta.url);
193
193
  function checkForUpdates() {
194
194
  try {
195
195
  const possiblePaths = [
@@ -229,7 +229,7 @@ function checkForUpdates() {
229
229
  }
230
230
 
231
231
  // src/cli/index.ts
232
- var [programName] = Object.keys(_chunkZOTZLL4Ujs.bin);
232
+ var [programName] = Object.keys(_chunkQ36XF5TPjs.bin);
233
233
  var cli = _cac.cac.call(void 0, programName);
234
234
  checkForUpdates();
235
235
  var buildCommand = cli.command("build [root]", "Compile Vue3 to React (one-time)");
@@ -240,4 +240,4 @@ var watchCommand = cli.command("watch [root]", "Compile Vue3 to React and watch
240
240
  resolveOptions(watchCommand).action((root, options) => {
241
241
  resolveAction(root, { ...options, watch: true });
242
242
  });
243
- cli.help().version(_chunkZOTZLL4Ujs.version).parse();
243
+ cli.help().version(_chunkQ36XF5TPjs.version).parse();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vureact/compiler-core v1.6.1
2
+ * @vureact/compiler-core v1.7.0
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-NXCZJT5W.esm.js";
21
+ } from "./chunk-Q7HZAZHD.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.6.1
2
+ * @vureact/compiler-core v1.7.0
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 _chunkZOTZLL4Ujs = require('./chunk-ZOTZLL4U.js');
21
+ var _chunkQ36XF5TPjs = require('./chunk-Q36XF5TP.js');
22
22
 
23
23
 
24
24
 
@@ -33,4 +33,4 @@ var _chunkZOTZLL4Ujs = require('./chunk-ZOTZLL4U.js');
33
33
 
34
34
 
35
35
 
36
- exports.BaseCompiler = _chunkZOTZLL4Ujs.BaseCompiler; exports.CacheKey = _chunkZOTZLL4Ujs.CacheKey; exports.FileCompiler = _chunkZOTZLL4Ujs.FileCompiler; exports.Helper = _chunkZOTZLL4Ujs.Helper; exports.VuReact = _chunkZOTZLL4Ujs.VuReact; exports.defineConfig = _chunkZOTZLL4Ujs.defineConfig; exports.generate = _chunkZOTZLL4Ujs.generate; exports.generateComponent = _chunkZOTZLL4Ujs.generateComponent; exports.generateOnlyScript = _chunkZOTZLL4Ujs.generateOnlyScript; exports.parse = _chunkZOTZLL4Ujs.parse; exports.parseOnlyScript = _chunkZOTZLL4Ujs.parseOnlyScript; exports.parseSFC = _chunkZOTZLL4Ujs.parseSFC; exports.transform = _chunkZOTZLL4Ujs.transform;
36
+ exports.BaseCompiler = _chunkQ36XF5TPjs.BaseCompiler; exports.CacheKey = _chunkQ36XF5TPjs.CacheKey; exports.FileCompiler = _chunkQ36XF5TPjs.FileCompiler; exports.Helper = _chunkQ36XF5TPjs.Helper; exports.VuReact = _chunkQ36XF5TPjs.VuReact; exports.defineConfig = _chunkQ36XF5TPjs.defineConfig; exports.generate = _chunkQ36XF5TPjs.generate; exports.generateComponent = _chunkQ36XF5TPjs.generateComponent; exports.generateOnlyScript = _chunkQ36XF5TPjs.generateOnlyScript; exports.parse = _chunkQ36XF5TPjs.parse; exports.parseOnlyScript = _chunkQ36XF5TPjs.parseOnlyScript; exports.parseSFC = _chunkQ36XF5TPjs.parseSFC; exports.transform = _chunkQ36XF5TPjs.transform;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vureact/compiler-core",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "description": "⚡ Write in Vue 3, compile to React 18+ code.",
5
5
  "author": "Ruihong Zhong (Ryan John)",
6
6
  "license": "MIT",
@@ -87,6 +87,7 @@
87
87
  "minimatch": "^10.1.1",
88
88
  "ora": "^9.1.0",
89
89
  "postcss": "^8.5.6",
90
+ "postcss-selector-parser": "^7.1.1",
90
91
  "proper-lockfile": "^4.1.2",
91
92
  "sass": "^1.97.3",
92
93
  "tsx": "^4.21.0",