@vxrn/vite-flow 1.12.8 → 1.13.0-1774659724735

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.
@@ -27,8 +27,8 @@ __export(index_exports, {
27
27
  });
28
28
  module.exports = __toCommonJS(index_exports);
29
29
  var import_vite = require("vite"),
30
- import_transformFlowBabel = require("./transformFlowBabel.native.js"),
31
- import_transformFlowBabel2 = require("./transformFlowBabel.native.js");
30
+ import_transformFlowBabel = require("./transformFlowBabel"),
31
+ import_transformFlowBabel2 = require("./transformFlowBabel");
32
32
  function createFlowPlugin(opts) {
33
33
  if (!(!opts?.include || Array.isArray(opts.include) && opts.include.length === 0)) {
34
34
  var filter = (0, import_vite.createFilter)(opts?.include, opts?.exclude);
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","default","createFlowPlugin","transformFlowBabel","import_transformFlowBabel2","module","exports","import_vite","require","import_transformFlowBabel","opts","include","Array","isArray","length","filter","createFilter","exclude","name","enforce","transform","code","id"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC,gBAAA;EAAAC,kBAAA,EAAAA,CAAA,KAAAC,0BAAA,CAAAD;AAAA;AACAE,MAAA,CAAAC,OAAA,GAAAZ,YAA6B,CAAAK,aAC7B;AASe,IAAAQ,WAAR,GAAAC,OAAA,CAAkC,MAA8B;EAAAC,yBAAA,GAAAD,OAAA;EAAAJ,0BAAA,GAAAI,OAAA;AACrE,SAAKN,gBAAkBA,CAAAQ,IAAM;EAC3B,OAAAA,IAAA,EAAAC,OAAA,IAAAC,KAAA,CAAAC,OAAA,CAAAH,IAAA,CAAAC,OAAA,KAAAD,IAAA,CAAAC,OAAA,CAAAG,MAAA;IAGF,IAAMC,MAAA,OAASR,WAAA,CAAAS,YAAA,EAAaN,IAAA,EAAMC,OAAA,EAASD,IAAA,EAAMO,OAAO;IAExD,OAAO;MACLC,IAAM;MACNC,OAAS;MACTC,SAAUA,CAAAC,IAAM,EAAAC,EAAI;QAClB,OAAIP,MAAO,CAAEO,EAAA,MACJ,EAAAb,yBAAA,CAAAN,kBAAmB,EAAAkB,IAAI,IAEzB;MACT;IACF;EACF","ignoreList":[]}
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","index_exports","default","createFlowPlugin","transformFlowBabel","import_transformFlowBabel2","module","exports","import_vite","require","import_transformFlowBabel","opts","include","Array","isArray","length","filter","createFilter","exclude","enforce","transform","code","id"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: !0 });\n}, __copyProps = (to, from, except, desc) => {\n if (from && typeof from == \"object\" || typeof from == \"function\")\n for (let key of __getOwnPropNames(from))\n !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: !0 }), mod);\nvar index_exports = {};\n__export(index_exports, {\n default: () => createFlowPlugin,\n transformFlowBabel: () => import_transformFlowBabel2.transformFlowBabel\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_vite = require(\"vite\"), import_transformFlowBabel = require(\"./transformFlowBabel\"), import_transformFlowBabel2 = require(\"./transformFlowBabel\");\nfunction createFlowPlugin(opts) {\n if (!(!opts?.include || Array.isArray(opts.include) && opts.include.length === 0)) {\n var filter = (0, import_vite.createFilter)(opts?.include, opts?.exclude);\n return {\n name: \"@vxrn/vite-flow\",\n enforce: \"pre\",\n transform(code, id) {\n return filter(id) ? (0, import_transformFlowBabel.transformFlowBabel)(code) : null;\n }\n };\n }\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;IAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;MAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;MAAEE,UAAU,EAAE,CAAC;IAAE,CAAC,CAAC;EAC/D,CAAC;EAAEC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;IAC3C,IAAIF,IAAI,IAAI,OAAOA,IAAI,IAAI,QAAQ,IAAI,OAAOA,IAAI,IAAI,UAAU,EAC9D,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,IAAInB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAG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;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","transformFlowBabel_exports","__export","transformFlowBabel","module","exports","import_promises","require","import_core","__toESM","import_resolve","input","development","path","arguments","length","babelPreset","attempt","resolvePath","stat","isDirectory","Promise","res","rej","default","transform","filename","presets","plugins","err","result","code"],"sources":["../../src/transformFlowBabel.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,0BAAA;AAAAC,QAAA,CAAAD,0BAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAqB,CAAAK,0BACrB;AAGA,IAAAK,eAAsB,GAAAC,OAAA,cAElB;EAAAC,WAAc,GAAAC,OAAY,CAAAF,OAC5B;EAAAG,cAAA,GAAAH,OAAA;AACA,eAAIJ,kBAAcA,CAAAQ,KAAA;EAElB,IAAI;MAAAC,WAAA;MAAAC;IAAA,IAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;IAAAE,WAAA;EAGF;IACA,IAAKC,OAAM,OAAAP,cAAA,CAAKQ,WAAU,8BACxB,CAAc;IAElB,OAAc,IAAAZ,eAAA,CAAAa,IAAA,EAAAF,OAAA,GAAAG,WAAA,OAAAJ,WAAA,GAAAC,OAAA;EAEd,SAEA;EACE,iBAAAI,OAAM,WAAAC,GAAA,EAAAC,GAAA;IAAAf,WACJ,CAAAgB,OAAA,CAAAC,SAAA,CAAAd,KAAA;MACAe,QAAA,EAAAb,IAAA;MAAAc,OACE,GACAX,WAAU,CAAW;MAEvBY,OAAA;IAAA,GACC,UAAUC,GAAA,EAAAC,MAAW;MACpB,KAAAA,MAAK,IAAAD,GAAU,EACb,OAAAN,GAAO,CAAAM,GAAI,YAAO;MAEpBP,GAAA,CAAAQ,MAAI,CAAAC,IAAQ;IAAK,EACnB;EAAA,EACF;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","transformFlowBabel_exports","transformFlowBabel","module","exports","import_promises","require","import_core","import_resolve","input","development","path","arguments","length","babelPreset","attempt","resolvePath","stat","isDirectory","Promise","res","rej","default","transform","filename","presets","plugins","err","result","code"],"sources":["transformFlowBabel.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: !0 });\n}, __copyProps = (to, from, except, desc) => {\n if (from && typeof from == \"object\" || typeof from == \"function\")\n for (let key of __getOwnPropNames(from))\n !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: !0 }) : target,\n mod\n)), __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: !0 }), mod);\nvar transformFlowBabel_exports = {};\n__export(transformFlowBabel_exports, {\n transformFlowBabel: () => transformFlowBabel\n});\nmodule.exports = __toCommonJS(transformFlowBabel_exports);\nvar import_promises = require(\"fs/promises\"), import_core = __toESM(require(\"@babel/core\"), 1), import_resolve = require(\"@vxrn/resolve\");\nasync function transformFlowBabel(input) {\n var { development = !1, path } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, babelPreset = \"module:@react-native/babel-preset\";\n try {\n var attempt = (0, import_resolve.resolvePath)(\"@react-native/babel-preset\");\n (await (0, import_promises.stat)(attempt)).isDirectory() && (babelPreset = attempt);\n } catch {\n }\n return await new Promise(function(res, rej) {\n import_core.default.transform(input, {\n filename: path || \"file.js\",\n presets: [\n babelPreset\n ],\n plugins: []\n }, function(err, result) {\n if (!result || err)\n return rej(err || \"no res\");\n res(result.code);\n });\n });\n}\n//# sourceMappingURL=transformFlowBabel.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAgB,GAAGJ,MAAM,CAACK,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGN,MAAM,CAACO,mBAAmB;AAClD,IAAIC,YAAY,GAAGR,MAAM,CAACS,cAAc;EAAEC,YAAY,GAAGV,MAAM,CAACW,SAAS,CAACC,cAAc;AACxF,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;IAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBb,SAAS,CAACY,MAAM,EAAEE,IAAI,EAAE;MAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;MAAEE,UAAU,EAAE,CAAC;IAAE,CAAC,CAAC;EAC/D,CAAC;EAAEC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;IAC3C,IAAIF,IAAI,IAAI,OAAOA,IAAI,IAA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13.0-1774659724735",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
@@ -31,12 +31,12 @@
31
31
  "@babel/core": "^7.28.5",
32
32
  "@babel/helper-plugin-utils": "^7.27.1",
33
33
  "@react-native/babel-preset": "^0.83.0",
34
- "@vxrn/resolve": "1.12.8",
34
+ "@vxrn/resolve": "1.13.0-1774659724735",
35
35
  "vite": "^8.0.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@biomejs/biome": "2.3.3",
39
- "@tamagui/build": "2.0.0-rc.31"
39
+ "@tamagui/build": "2.0.0-rc.32"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"