vue-jsx 3.3.0-rc.3 → 3.3.0-rc.4

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/dist/api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as transformVueJsx } from "./core-BgVvweAb.js";
1
+ import { t as transformVueJsx } from "./core-DndVcKyc.js";
2
2
  export { transformVueJsx };
@@ -1,6 +1,6 @@
1
1
  import { transform } from "@vue-jsx/compiler";
2
2
  //#region src/core/index.ts
3
- function transformVueJsx(code, id, options) {
3
+ function transformVueJsx(code, id, options = {}) {
4
4
  const vapor = new URLSearchParams(id).has("vapor");
5
5
  return transform(code, {
6
6
  filename: id,
package/dist/raw.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as transformVueJsx } from "./core-BgVvweAb.js";
1
+ import { t as transformVueJsx } from "./core-DndVcKyc.js";
2
2
  import macros from "@vue-jsx/macros/raw";
3
3
  import { propsHelperCode, propsHelperId, ssrHelperCode, ssrHelperId, vaporHelperCode, vaporHelperId, vdomHelperCode, vdomHelperId } from "@vue-jsx/runtime/raw";
4
4
  //#region src/raw.ts
@@ -50,6 +50,11 @@ const plugin = (options = {}) => {
50
50
  root,
51
51
  ...options
52
52
  });
53
+ for (const warning of result.warnings) this.warn(warning);
54
+ if (result.errors.length) {
55
+ for (const error of result.errors) this.error(error);
56
+ return;
57
+ }
53
58
  if (result?.code) return {
54
59
  code: result.code,
55
60
  map: result.map ? JSON.parse(result.map) : null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-jsx",
3
- "version": "3.3.0-rc.3",
3
+ "version": "3.3.0-rc.4",
4
4
  "description": "High-performance Vue JSX Compiler powered by Oxc",
5
5
  "keywords": [
6
6
  "compiler",
@@ -60,9 +60,9 @@
60
60
  "./*": "./*"
61
61
  },
62
62
  "dependencies": {
63
- "@vue-jsx/compiler": "3.3.0-rc.3",
64
- "@vue-jsx/macros": "3.3.0-rc.3",
65
- "@vue-jsx/runtime": "3.3.0-rc.3",
63
+ "@vue-jsx/compiler": "3.3.0-rc.4",
64
+ "@vue-jsx/macros": "3.3.0-rc.4",
65
+ "@vue-jsx/runtime": "3.3.0-rc.4",
66
66
  "unplugin": "^3.0.0"
67
67
  },
68
68
  "devDependencies": {