@zeus-js/compiler 0.1.0-beta.5 → 0.1.0-beta.7
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/compiler.cjs.js +4 -4
- package/dist/compiler.cjs.prod.js +4 -4
- package/dist/compiler.d.ts +1 -1
- package/dist/compiler.esm-browser.js +5600 -14177
- package/dist/compiler.esm-browser.prod.js +5 -6
- package/dist/compiler.esm-bundler.js +9 -9
- package/dist/compiler.global.js +5600 -14177
- package/dist/compiler.global.prod.js +5 -6
- package/package.json +41 -35
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* compiler v0.1.0-beta.
|
|
2
|
+
* compiler v0.1.0-beta.7
|
|
3
3
|
* (c) 2026 baicie
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
**/
|
|
@@ -195,7 +195,7 @@ function escapeHTML(value, attr = false) {
|
|
|
195
195
|
function trimJSXText(value) {
|
|
196
196
|
return value.replace(/\r\n?/g, "\n").split("\n").map((line) => line.trim()).filter(Boolean).join(" ");
|
|
197
197
|
}
|
|
198
|
-
const rawTextElements = new Set([
|
|
198
|
+
const rawTextElements = /* @__PURE__ */ new Set([
|
|
199
199
|
"script",
|
|
200
200
|
"style",
|
|
201
201
|
"textarea",
|
|
@@ -792,7 +792,7 @@ var CompilerError = class extends Error {
|
|
|
792
792
|
}
|
|
793
793
|
};
|
|
794
794
|
//#endregion
|
|
795
|
-
//#region \0@oxc-project+runtime@0.
|
|
795
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
|
|
796
796
|
function _typeof(o) {
|
|
797
797
|
"@babel/helpers - typeof";
|
|
798
798
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -802,7 +802,7 @@ function _typeof(o) {
|
|
|
802
802
|
}, _typeof(o);
|
|
803
803
|
}
|
|
804
804
|
//#endregion
|
|
805
|
-
//#region \0@oxc-project+runtime@0.
|
|
805
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
|
|
806
806
|
function toPrimitive(t, r) {
|
|
807
807
|
if ("object" != _typeof(t) || !t) return t;
|
|
808
808
|
var e = t[Symbol.toPrimitive];
|
|
@@ -814,13 +814,13 @@ function toPrimitive(t, r) {
|
|
|
814
814
|
return ("string" === r ? String : Number)(t);
|
|
815
815
|
}
|
|
816
816
|
//#endregion
|
|
817
|
-
//#region \0@oxc-project+runtime@0.
|
|
817
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
|
|
818
818
|
function toPropertyKey(t) {
|
|
819
819
|
var i = toPrimitive(t, "string");
|
|
820
820
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
821
821
|
}
|
|
822
822
|
//#endregion
|
|
823
|
-
//#region \0@oxc-project+runtime@0.
|
|
823
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
|
|
824
824
|
function _defineProperty(e, r, t) {
|
|
825
825
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
826
826
|
value: t,
|
|
@@ -830,7 +830,7 @@ function _defineProperty(e, r, t) {
|
|
|
830
830
|
}) : e[r] = t, e;
|
|
831
831
|
}
|
|
832
832
|
//#endregion
|
|
833
|
-
//#region \0@oxc-project+runtime@0.
|
|
833
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/objectSpread2.js
|
|
834
834
|
function ownKeys(e, r) {
|
|
835
835
|
var t = Object.keys(e);
|
|
836
836
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1084,7 +1084,7 @@ function lowerChildren(children, context) {
|
|
|
1084
1084
|
}
|
|
1085
1085
|
//#endregion
|
|
1086
1086
|
//#region packages/core/compiler/src/lower/lowerBuiltin.ts
|
|
1087
|
-
const HOST_SKIP_PROPS = new Set([
|
|
1087
|
+
const HOST_SKIP_PROPS = /* @__PURE__ */ new Set([
|
|
1088
1088
|
"key",
|
|
1089
1089
|
"__slot",
|
|
1090
1090
|
"__anchor"
|
|
@@ -1751,7 +1751,7 @@ function hasParserPlugin(plugins, name) {
|
|
|
1751
1751
|
return plugins.some((plugin) => (Array.isArray(plugin) ? plugin[0] : plugin) === name);
|
|
1752
1752
|
}
|
|
1753
1753
|
var src_default = declare((api, options) => {
|
|
1754
|
-
api.assertVersion(
|
|
1754
|
+
api.assertVersion(8);
|
|
1755
1755
|
return {
|
|
1756
1756
|
name: "babel-plugin-zeus-compiler",
|
|
1757
1757
|
manipulateOptions(_opts, parserOpts) {
|