vxrn 1.19.6 → 1.19.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.
@@ -1,6 +1,6 @@
1
1
  import { webExtensions } from "../constants.mjs";
2
2
  function getOptimizeDeps(mode) {
3
- const needsInterop = ["nativewind/jsx-dev-runtime", "nativewind/jsx-runtime", "nativewind", "react-native-css-interop/jsx-runtime", "react-native-css-interop/jsx-dev-runtime", "react-native-css-interop", "secure-json-parse", "@react-native/normalize-colors", "@vxrn/safe-area", "@vxrn/vendor/react-19-prod", "@vxrn/vendor/react-19", "@vxrn/vendor/react-19-compiler-runtime", "@vxrn/vendor/react-dom-19", "@vxrn/vendor/react-dom-client-19", "@vxrn/vendor/react-dom-server.browser-19", "@vxrn/vendor/react-jsx-19", "@vxrn/vendor/react-jsx-dev-19", "react", "react/jsx-runtime", "react/jsx-dev-runtime", "react/compiler-runtime", "react-dom", "react-dom/server", "react-dom/client", "react-native-web-internals", "@react-native-masked-view/masked-view", "url-parse", "query-string", "escape-string-regexp", "use-latest-callback", "react-is", "fast-deep-equal", "@supabase/auth-helpers-react", "@supabase/postgres-js", "core-js", "parse-numeric-range", "use-sync-external-store", "use-sync-external-store/shim", "expo-constants", "expo-linking", "inline-style-prefixer", "@docsearch/react", "@algolia/autocomplete-core", "@algolia/autocomplete-plugin-algolia-insights", "@algolia/autocomplete-shared", "moti"];
3
+ const needsInterop = ["nativewind", "react-native-css-interop/jsx-runtime", "react-native-css-interop/jsx-dev-runtime", "react-native-css-interop", "secure-json-parse", "@react-native/normalize-colors", "@vxrn/safe-area", "@vxrn/vendor/react-19-prod", "@vxrn/vendor/react-19", "@vxrn/vendor/react-19-compiler-runtime", "@vxrn/vendor/react-dom-19", "@vxrn/vendor/react-dom-client-19", "@vxrn/vendor/react-dom-server.browser-19", "@vxrn/vendor/react-jsx-19", "@vxrn/vendor/react-jsx-dev-19", "react", "react/jsx-runtime", "react/jsx-dev-runtime", "react/compiler-runtime", "react-dom", "react-dom/server", "react-dom/client", "react-native-web-internals", "@react-native-masked-view/masked-view", "url-parse", "query-string", "escape-string-regexp", "use-latest-callback", "react-is", "fast-deep-equal", "@supabase/auth-helpers-react", "@supabase/postgres-js", "core-js", "parse-numeric-range", "use-sync-external-store", "use-sync-external-store/shim", "expo-constants", "expo-linking", "inline-style-prefixer", "@docsearch/react", "@algolia/autocomplete-core", "@algolia/autocomplete-plugin-algolia-insights", "@algolia/autocomplete-shared", "moti"];
4
4
  const depsToOptimize = [...needsInterop, "fast-xml-parser", "set-cookie-parser", "ipaddr.js", "cross-fetch", "pg", "react-native-svg", "react-native-screens", "ws", "lodash",
5
5
  // added these when using a worker env
6
6
  "reading-time", "mdx-bundler/client", "gray-matter", "glob", "memoize-one", "css-in-js-utils", "hyphenate-style-name", "use-sync-external-store", "react-native-reanimated",
@@ -1 +1 @@
1
- {"version":3,"names":["webExtensions","getOptimizeDeps","mode","needsInterop","depsToOptimize","push","optimizeDeps","include","exclude","holdUntilCrawlEnd","rolldownOptions","resolve","extensions","moduleTypes","shimMissingExports"],"sources":["../../src/config/getOptimizeDeps.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,aAAA,QAAqB;AAIvB,SAASC,gBAAgBC,IAAA,EAAyB;EACvD,MAAMC,YAAA,GAAe,CACnB,8BACA,0BACA,cAEA,wCACA,4CACA,4BAEA,qBAEA,kCACA,mBACA,8BACA,yBACA,0CACA,6BACA,oCACA,4CACA,6BACA,iCACA,SACA,qBACA,yBACA,0BACA,aACA,oBACA,oBACA,8BACA,yCACA,aACA,gBACA,wBACA,uBACA,YACA,mBACA,gCACA,yBACA,WACA,uBACA,2BACA,gCACA,kBACA,gBACA,yBACA,oBACA,8BACA,iDACA,gCACA,OACF;EAEA,MAAMC,cAAA,GAAiB,CACrB,GAAGD,YAAA,EAEH,mBACA,qBACA,aACA,eACA,MACA,oBACA,wBAEA,MACA;EAAA;EAGA,gBACA,sBACA,eACA,QACA,eACA,mBACA,wBACA,2BACA;EAAA;EACA,0BACA,4BACA,8BACA,iCACA,kCACA,OACA,UACA,QACA,gCACA,sBACA,iBACA,kBACA,oBACA,qBACA,wBACA,wBACA,kBACA,cACA,aACA,aACA,gCACA,wBACA,sBACA,UACA,OACA,gBACA,OACA,YACA,sBACA,aACA,2BACA,iCACA,qBACA,mBACA,gBACA,sBACA,0BACA,WACA,WACF;EAEA,IAAID,IAAA,KAAS,SAAS;IAEpBE,cAAA,CAAeC,IAAA,CAAK,gBAAgB;EACtC;EAEA,OAAO;IACLF,YAAA;IACAC,cAAA;IACAE,YAAA,EAAc;MACZC,OAAA,EAASH,cAAA;MACTI,OAAA,EAAS,CACP,QACA,aACA,0BACA,eACA,iBACA,mBACA,yBACF;MACAL,YAAA;MAAA;MAAA;MAGAM,iBAAA,EAAmB;MACnBC,eAAA,EAAiB;QACfC,OAAA,EAAS;UACPC,UAAA,EAAYZ;QACd;QAAA;QAEAa,WAAA,EAAa;UAAE,OAAO;QAAM;QAAA;QAAA;QAAA;QAAA;QAK5BC,kBAAA,EAAoB;MACtB;IACF;EACF;AACF","ignoreList":[]}
1
+ {"version":3,"names":["webExtensions","getOptimizeDeps","mode","needsInterop","depsToOptimize","push","optimizeDeps","include","exclude","holdUntilCrawlEnd","rolldownOptions","resolve","extensions","moduleTypes","shimMissingExports"],"sources":["../../src/config/getOptimizeDeps.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,aAAA,QAAqB;AAIvB,SAASC,gBAAgBC,IAAA,EAAyB;EACvD,MAAMC,YAAA,GAAe,CACnB,cAEA,wCACA,4CACA,4BAEA,qBAEA,kCACA,mBACA,8BACA,yBACA,0CACA,6BACA,oCACA,4CACA,6BACA,iCACA,SACA,qBACA,yBACA,0BACA,aACA,oBACA,oBACA,8BACA,yCACA,aACA,gBACA,wBACA,uBACA,YACA,mBACA,gCACA,yBACA,WACA,uBACA,2BACA,gCACA,kBACA,gBACA,yBACA,oBACA,8BACA,iDACA,gCACA,OACF;EAEA,MAAMC,cAAA,GAAiB,CACrB,GAAGD,YAAA,EAEH,mBACA,qBACA,aACA,eACA,MACA,oBACA,wBAEA,MACA;EAAA;EAGA,gBACA,sBACA,eACA,QACA,eACA,mBACA,wBACA,2BACA;EAAA;EACA,0BACA,4BACA,8BACA,iCACA,kCACA,OACA,UACA,QACA,gCACA,sBACA,iBACA,kBACA,oBACA,qBACA,wBACA,wBACA,kBACA,cACA,aACA,aACA,gCACA,wBACA,sBACA,UACA,OACA,gBACA,OACA,YACA,sBACA,aACA,2BACA,iCACA,qBACA,mBACA,gBACA,sBACA,0BACA,WACA,WACF;EAEA,IAAID,IAAA,KAAS,SAAS;IAEpBE,cAAA,CAAeC,IAAA,CAAK,gBAAgB;EACtC;EAEA,OAAO;IACLF,YAAA;IACAC,cAAA;IACAE,YAAA,EAAc;MACZC,OAAA,EAASH,cAAA;MACTI,OAAA,EAAS,CACP,QACA,aACA,0BACA,eACA,iBACA,mBACA,yBACF;MACAL,YAAA;MAAA;MAAA;MAGAM,iBAAA,EAAmB;MACnBC,eAAA,EAAiB;QACfC,OAAA,EAAS;UACPC,UAAA,EAAYZ;QACd;QAAA;QAEAa,WAAA,EAAa;UAAE,OAAO;QAAM;QAAA;QAAA;QAAA;QAAA;QAK5BC,kBAAA,EAAoB;MACtB;IACF;EACF;AACF","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import { webExtensions } from "../constants.native.js";
2
2
  function getOptimizeDeps(mode) {
3
- var needsInterop = ["nativewind/jsx-dev-runtime", "nativewind/jsx-runtime", "nativewind", "react-native-css-interop/jsx-runtime", "react-native-css-interop/jsx-dev-runtime", "react-native-css-interop", "secure-json-parse", "@react-native/normalize-colors", "@vxrn/safe-area", "@vxrn/vendor/react-19-prod", "@vxrn/vendor/react-19", "@vxrn/vendor/react-19-compiler-runtime", "@vxrn/vendor/react-dom-19", "@vxrn/vendor/react-dom-client-19", "@vxrn/vendor/react-dom-server.browser-19", "@vxrn/vendor/react-jsx-19", "@vxrn/vendor/react-jsx-dev-19", "react", "react/jsx-runtime", "react/jsx-dev-runtime", "react/compiler-runtime", "react-dom", "react-dom/server", "react-dom/client", "react-native-web-internals", "@react-native-masked-view/masked-view", "url-parse", "query-string", "escape-string-regexp", "use-latest-callback", "react-is", "fast-deep-equal", "@supabase/auth-helpers-react", "@supabase/postgres-js", "core-js", "parse-numeric-range", "use-sync-external-store", "use-sync-external-store/shim", "expo-constants", "expo-linking", "inline-style-prefixer", "@docsearch/react", "@algolia/autocomplete-core", "@algolia/autocomplete-plugin-algolia-insights", "@algolia/autocomplete-shared", "moti"];
3
+ var needsInterop = ["nativewind", "react-native-css-interop/jsx-runtime", "react-native-css-interop/jsx-dev-runtime", "react-native-css-interop", "secure-json-parse", "@react-native/normalize-colors", "@vxrn/safe-area", "@vxrn/vendor/react-19-prod", "@vxrn/vendor/react-19", "@vxrn/vendor/react-19-compiler-runtime", "@vxrn/vendor/react-dom-19", "@vxrn/vendor/react-dom-client-19", "@vxrn/vendor/react-dom-server.browser-19", "@vxrn/vendor/react-jsx-19", "@vxrn/vendor/react-jsx-dev-19", "react", "react/jsx-runtime", "react/jsx-dev-runtime", "react/compiler-runtime", "react-dom", "react-dom/server", "react-dom/client", "react-native-web-internals", "@react-native-masked-view/masked-view", "url-parse", "query-string", "escape-string-regexp", "use-latest-callback", "react-is", "fast-deep-equal", "@supabase/auth-helpers-react", "@supabase/postgres-js", "core-js", "parse-numeric-range", "use-sync-external-store", "use-sync-external-store/shim", "expo-constants", "expo-linking", "inline-style-prefixer", "@docsearch/react", "@algolia/autocomplete-core", "@algolia/autocomplete-plugin-algolia-insights", "@algolia/autocomplete-shared", "moti"];
4
4
  var depsToOptimize = [...needsInterop, "fast-xml-parser", "set-cookie-parser", "ipaddr.js", "cross-fetch", "pg", "react-native-svg", "react-native-screens", "ws", "lodash",
5
5
  // added these when using a worker env
6
6
  "reading-time", "mdx-bundler/client", "gray-matter", "glob", "memoize-one", "css-in-js-utils", "hyphenate-style-name", "use-sync-external-store", "react-native-reanimated",
@@ -1 +1 @@
1
- {"version":3,"names":["webExtensions","getOptimizeDeps","mode","needsInterop","depsToOptimize","push","optimizeDeps","include","exclude","holdUntilCrawlEnd","rolldownOptions","resolve","extensions","moduleTypes","shimMissingExports"],"sources":["../../src/config/getOptimizeDeps.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,aAAA,QAAqB;AAIvB,SAASC,gBAAgBC,IAAA,EAAyB;EACvD,IAAAC,YAAM,IACJ,8BACA,0BACA,cAEA,wCACA,4CACA,4BAEA,qBAEA,kCACA,mBACA,8BACA,yBACA,0CACA,6BACA,oCACA,4CACA,6BACA,iCACA,SACA,qBACA,yBACA,0BACA,aACA,oBACA,oBACA,8BACA,yCACA,aACA,gBACA,wBACA,uBACA,YACA,mBACA,gCACA,yBACA,WACA,uBACA,2BACA,gCACA,kBACA,gBACA,yBACA,oBACA,8BACA,iDACA,gCACA,OACF;EAEA,IAAAC,cAAM,IACJ,GAAGD,YAAA,EAEH,mBACA,qBACA,aACA,eACA,MACA,oBACA,wBAEA,MACA;EAAA;EAGA,gBACA,sBACA,eACA,QACA,eACA,mBACA,wBACA,2BACA;EAAA;EACA,0BACA,4BACA,8BACA,iCACA,kCACA,OACA,UACA,QACA,gCACA,sBACA,iBACA,kBACA,oBACA,qBACA,wBACA,wBACA,kBACA,cACA,aACA,aACA,gCACA,wBACA,sBACA,UACA,OACA,gBACA,OACA,YACA,sBACA,aACA,2BACA,iCACA,qBACA,mBACA,gBACA,sBACA,0BACA,WACA,WACF;EAEA,IAAID,IAAA,KAAS,SAAS;IAEpBE,cAAA,CAAeC,IAAA,CAAK,gBAAgB;EACtC;EAEA,OAAO;IACLF,YAAA;IACAC,cAAA;IACAE,YAAA,EAAc;MACZC,OAAA,EAASH,cAAA;MACTI,OAAA,EAAS,CACP,QACA,aACA,0BACA,eACA,iBACA,mBACA,yBACF;MACAL,YAAA;MAAA;MAAA;MAGAM,iBAAA,EAAmB;MACnBC,eAAA,EAAiB;QACfC,OAAA,EAAS;UACPC,UAAA,EAAYZ;QACd;QAAA;QAEAa,WAAA,EAAa;UAAe;QAAA;QAAA;QAAA;QAK5B;QACF;QACFC,kBAAA;MACF;IACF","ignoreList":[]}
1
+ {"version":3,"names":["webExtensions","getOptimizeDeps","mode","needsInterop","depsToOptimize","push","optimizeDeps","include","exclude","holdUntilCrawlEnd","rolldownOptions","resolve","extensions","moduleTypes","shimMissingExports"],"sources":["../../src/config/getOptimizeDeps.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,aAAA,QAAqB;AAIvB,SAASC,gBAAgBC,IAAA,EAAyB;EACvD,IAAAC,YAAM,IACJ,cAEA,wCACA,4CACA,4BAEA,qBAEA,kCACA,mBACA,8BACA,yBACA,0CACA,6BACA,oCACA,4CACA,6BACA,iCACA,SACA,qBACA,yBACA,0BACA,aACA,oBACA,oBACA,8BACA,yCACA,aACA,gBACA,wBACA,uBACA,YACA,mBACA,gCACA,yBACA,WACA,uBACA,2BACA,gCACA,kBACA,gBACA,yBACA,oBACA,8BACA,iDACA,gCACA,OACF;EAEA,IAAAC,cAAM,IACJ,GAAGD,YAAA,EAEH,mBACA,qBACA,aACA,eACA,MACA,oBACA,wBAEA,MACA;EAAA;EAGA,gBACA,sBACA,eACA,QACA,eACA,mBACA,wBACA,2BACA;EAAA;EACA,0BACA,4BACA,8BACA,iCACA,kCACA,OACA,UACA,QACA,gCACA,sBACA,iBACA,kBACA,oBACA,qBACA,wBACA,wBACA,kBACA,cACA,aACA,aACA,gCACA,wBACA,sBACA,UACA,OACA,gBACA,OACA,YACA,sBACA,aACA,2BACA,iCACA,qBACA,mBACA,gBACA,sBACA,0BACA,WACA,WACF;EAEA,IAAID,IAAA,KAAS,SAAS;IAEpBE,cAAA,CAAeC,IAAA,CAAK,gBAAgB;EACtC;EAEA,OAAO;IACLF,YAAA;IACAC,cAAA;IACAE,YAAA,EAAc;MACZC,OAAA,EAASH,cAAA;MACTI,OAAA,EAAS,CACP,QACA,aACA,0BACA,eACA,iBACA,mBACA,yBACF;MACAL,YAAA;MAAA;MAAA;MAGAM,iBAAA,EAAmB;MACnBC,eAAA,EAAiB;QACfC,OAAA,EAAS;UACPC,UAAA,EAAYZ;QACd;QAAA;QAEAa,WAAA,EAAa;UAAe;QAAA;QAAA;QAAA;QAK5B;QACF;QACFC,kBAAA;MACF;IACF","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { getOptimizeDeps } from "./getOptimizeDeps.mjs";
3
+ describe("getOptimizeDeps", () => {
4
+ it("does not force NativeWind JSX runtime subpaths into dev optimization", () => {
5
+ const {
6
+ depsToOptimize,
7
+ needsInterop,
8
+ optimizeDeps
9
+ } = getOptimizeDeps("serve");
10
+ const nativewindRuntimeSubpaths = ["nativewind/jsx-dev-runtime", "nativewind/jsx-runtime"];
11
+ for (const dep of nativewindRuntimeSubpaths) {
12
+ expect(depsToOptimize).not.toContain(dep);
13
+ expect(needsInterop).not.toContain(dep);
14
+ expect(optimizeDeps.include).not.toContain(dep);
15
+ expect(optimizeDeps.needsInterop).not.toContain(dep);
16
+ }
17
+ expect(optimizeDeps.include).toContain("nativewind");
18
+ });
19
+ });
20
+ //# sourceMappingURL=getOptimizeDeps.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["describe","expect","it","getOptimizeDeps","depsToOptimize","needsInterop","optimizeDeps","nativewindRuntimeSubpaths","dep","not","toContain","include"],"sources":["../../src/config/getOptimizeDeps.test.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,EAAUC,MAAA,EAAQC,EAAA,QAAU;AACrC,SAASC,eAAA,QAAuB;AAEhCH,QAAA,CAAS,mBAAmB,MAAM;EAChCE,EAAA,CAAG,wEAAwE,MAAM;IAC/E,MAAM;MAAEE,cAAA;MAAgBC,YAAA;MAAcC;IAAa,IAAIH,eAAA,CAAgB,OAAO;IAC9E,MAAMI,yBAAA,GAA4B,CAChC,8BACA,yBACF;IAEA,WAAWC,GAAA,IAAOD,yBAAA,EAA2B;MAC3CN,MAAA,CAAOG,cAAc,EAAEK,GAAA,CAAIC,SAAA,CAAUF,GAAG;MACxCP,MAAA,CAAOI,YAAY,EAAEI,GAAA,CAAIC,SAAA,CAAUF,GAAG;MACtCP,MAAA,CAAOK,YAAA,CAAaK,OAAO,EAAEF,GAAA,CAAIC,SAAA,CAAUF,GAAG;MAC9CP,MAAA,CAAOK,YAAA,CAAaD,YAAY,EAAEI,GAAA,CAAIC,SAAA,CAAUF,GAAG;IACrD;IAEAP,MAAA,CAAOK,YAAA,CAAaK,OAAO,EAAED,SAAA,CAAU,YAAY;EACrD,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { getOptimizeDeps } from "./getOptimizeDeps.native.js";
3
+ describe("getOptimizeDeps", function () {
4
+ it("does not force NativeWind JSX runtime subpaths into dev optimization", function () {
5
+ var {
6
+ depsToOptimize,
7
+ needsInterop,
8
+ optimizeDeps
9
+ } = getOptimizeDeps("serve");
10
+ var nativewindRuntimeSubpaths = ["nativewind/jsx-dev-runtime", "nativewind/jsx-runtime"];
11
+ var _iteratorNormalCompletion = true,
12
+ _didIteratorError = false,
13
+ _iteratorError = void 0;
14
+ try {
15
+ for (var _iterator = nativewindRuntimeSubpaths[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
16
+ var dep = _step.value;
17
+ expect(depsToOptimize).not.toContain(dep);
18
+ expect(needsInterop).not.toContain(dep);
19
+ expect(optimizeDeps.include).not.toContain(dep);
20
+ expect(optimizeDeps.needsInterop).not.toContain(dep);
21
+ }
22
+ } catch (err) {
23
+ _didIteratorError = true;
24
+ _iteratorError = err;
25
+ } finally {
26
+ try {
27
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
28
+ _iterator.return();
29
+ }
30
+ } finally {
31
+ if (_didIteratorError) {
32
+ throw _iteratorError;
33
+ }
34
+ }
35
+ }
36
+ expect(optimizeDeps.include).toContain("nativewind");
37
+ });
38
+ });
39
+ //# sourceMappingURL=getOptimizeDeps.test.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["describe","expect","it","getOptimizeDeps","depsToOptimize","needsInterop","optimizeDeps","nativewindRuntimeSubpaths","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","dep","value","not","toContain","include"],"sources":["../../src/config/getOptimizeDeps.test.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,EAAUC,MAAA,EAAQC,EAAA,QAAU;AACrC,SAASC,eAAA,QAAuB;AAEhCH,QAAA,CAAS,mBAAmB,YAAM;EAChCE,EAAA,CAAG,wEAAwE,YAAM;IAC/E;MAAME,cAAE;MAAAC,YAAgB;MAAAC;IAAc,IAAaH,eAAI,QAAgB;IACvE,IAAAI,yBAAM,IACJ,8BACA,yBACF;IAEA,IAAAC,yBAAkB;MAAAC,iBAA2B;MAAAC,cAAA;IAC3C;MACA,SAAOC,SAAA,GAAcJ,yBAAiB,CAAAK,MAAA,CAAAC,QAAA,KAAAC,KAAA,IAAAN,yBAAA,IAAAM,KAAA,GAAAH,SAAA,CAAAI,IAAA,IAAAC,IAAA,GAAAR,yBAAA;QACtC,IAAAS,GAAO,GAAAH,KAAA,CAAAI,KAAa;QACpBjB,MAAO,CAAAG,cAAa,EAAAe,GAAA,CAAAC,SAAkB,CAAAH,GAAA;QACxChB,MAAA,CAAAI,YAAA,EAAAc,GAAA,CAAAC,SAAA,CAAAH,GAAA;QAEAhB,MAAO,CAAAK,YAAa,CAAAe,OAAS,EAAAF,GAAA,CAAAC,SAAU,CAAAH,GAAA,CAAY;QACpDhB,MAAA,CAAAK,YAAA,CAAAD,YAAA,EAAAc,GAAA,CAAAC,SAAA,CAAAH,GAAA;MACF","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxrn",
3
- "version": "1.19.6",
3
+ "version": "1.19.7",
4
4
  "sideEffects": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -60,16 +60,16 @@
60
60
  "@expo/config-plugins": "~55.0.6",
61
61
  "@hono/node-server": "^1.19.14",
62
62
  "@react-native/dev-middleware": "^0.83.4",
63
- "@vxrn/compiler": "1.19.6",
64
- "@vxrn/debug": "1.19.6",
65
- "@vxrn/query-string": "1.19.6",
66
- "@vxrn/resolve": "1.19.6",
67
- "@vxrn/safe-area": "1.19.6",
68
- "@vxrn/url-parse": "1.19.6",
69
- "@vxrn/utils": "1.19.6",
70
- "@vxrn/vendor": "1.19.6",
71
- "@vxrn/vite-flow": "1.19.6",
72
- "@vxrn/vite-plugin-metro": "1.19.6",
63
+ "@vxrn/compiler": "1.19.7",
64
+ "@vxrn/debug": "1.19.7",
65
+ "@vxrn/query-string": "1.19.7",
66
+ "@vxrn/resolve": "1.19.7",
67
+ "@vxrn/safe-area": "1.19.7",
68
+ "@vxrn/url-parse": "1.19.7",
69
+ "@vxrn/utils": "1.19.7",
70
+ "@vxrn/vendor": "1.19.7",
71
+ "@vxrn/vite-flow": "1.19.7",
72
+ "@vxrn/vite-plugin-metro": "1.19.7",
73
73
  "citty": "^0.1.6",
74
74
  "dotenv": "^17.2.1",
75
75
  "dotenv-expand": "^12.0.2",
@@ -0,0 +1,21 @@
1
+ import { describe, expect, it } from 'vitest'
2
+ import { getOptimizeDeps } from './getOptimizeDeps'
3
+
4
+ describe('getOptimizeDeps', () => {
5
+ it('does not force NativeWind JSX runtime subpaths into dev optimization', () => {
6
+ const { depsToOptimize, needsInterop, optimizeDeps } = getOptimizeDeps('serve')
7
+ const nativewindRuntimeSubpaths = [
8
+ 'nativewind/jsx-dev-runtime',
9
+ 'nativewind/jsx-runtime',
10
+ ]
11
+
12
+ for (const dep of nativewindRuntimeSubpaths) {
13
+ expect(depsToOptimize).not.toContain(dep)
14
+ expect(needsInterop).not.toContain(dep)
15
+ expect(optimizeDeps.include).not.toContain(dep)
16
+ expect(optimizeDeps.needsInterop).not.toContain(dep)
17
+ }
18
+
19
+ expect(optimizeDeps.include).toContain('nativewind')
20
+ })
21
+ })
@@ -5,8 +5,6 @@ import { webExtensions } from '../constants'
5
5
 
6
6
  export function getOptimizeDeps(mode: 'build' | 'serve') {
7
7
  const needsInterop = [
8
- 'nativewind/jsx-dev-runtime',
9
- 'nativewind/jsx-runtime',
10
8
  'nativewind',
11
9
 
12
10
  'react-native-css-interop/jsx-runtime',
@@ -1 +1 @@
1
- {"version":3,"file":"getOptimizeDeps.d.ts","sourceRoot":"","sources":["../../src/config/getOptimizeDeps.ts"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO;;;;;;;;;;;;;;;;;;EA2JtD"}
1
+ {"version":3,"file":"getOptimizeDeps.d.ts","sourceRoot":"","sources":["../../src/config/getOptimizeDeps.ts"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO;;;;;;;;;;;;;;;;;;EAyJtD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getOptimizeDeps.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOptimizeDeps.test.d.ts","sourceRoot":"","sources":["../../src/config/getOptimizeDeps.test.ts"],"names":[],"mappings":""}