vxrn 2.15.0 → 2.16.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/dist/exports/prebuild.mjs +37 -0
- package/dist/exports/prebuild.mjs.map +1 -1
- package/dist/exports/prebuild.native.js +55 -0
- package/dist/exports/prebuild.native.js.map +1 -1
- package/dist/exports/prebuildWithoutExpo.mjs +197 -12
- package/dist/exports/prebuildWithoutExpo.mjs.map +1 -1
- package/dist/exports/prebuildWithoutExpo.native.js +197 -10
- package/dist/exports/prebuildWithoutExpo.native.js.map +1 -1
- package/dist/utils/createNativeDevEngine.mjs +13 -1
- package/dist/utils/createNativeDevEngine.mjs.map +1 -1
- package/dist/utils/createNativeDevEngine.native.js +13 -1
- package/dist/utils/createNativeDevEngine.native.js.map +1 -1
- package/package.json +13 -13
- package/src/exports/prebuild.ts +30 -0
- package/src/exports/prebuildWithoutExpo.test.ts +74 -2
- package/src/exports/prebuildWithoutExpo.ts +204 -12
- package/src/utils/createNativeDevEngine.ts +20 -0
- package/types/exports/prebuild.d.ts.map +1 -1
- package/types/exports/prebuildWithoutExpo.d.ts.map +1 -1
- package/types/utils/createNativeDevEngine.d.ts.map +1 -1
|
@@ -578,6 +578,10 @@ async function createNativeDevEngine(options) {
|
|
|
578
578
|
},
|
|
579
579
|
treeshake: false,
|
|
580
580
|
shimMissingExports: true,
|
|
581
|
+
onwarn(warning, defaultHandler) {
|
|
582
|
+
if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes("use client")) return;
|
|
583
|
+
defaultHandler(warning);
|
|
584
|
+
},
|
|
581
585
|
moduleTypes: { ".js": "jsx" },
|
|
582
586
|
plugins: [virtualEntry.plugin, ...getNativePlugins(root, platform, viteImportGlobPlugin, true, void 0, assetRegistry.register, true, userPlugins)]
|
|
583
587
|
};
|
|
@@ -649,7 +653,10 @@ try {
|
|
|
649
653
|
});
|
|
650
654
|
},
|
|
651
655
|
rebuildStrategy: "never",
|
|
652
|
-
watch: {
|
|
656
|
+
watch: {
|
|
657
|
+
skipWrite: true,
|
|
658
|
+
exclude: ["**/node_modules/.test/**", "**/.git/**"]
|
|
659
|
+
}
|
|
653
660
|
});
|
|
654
661
|
async function handleOutput(result) {
|
|
655
662
|
if (result instanceof Error) {
|
|
@@ -780,6 +787,7 @@ async function buildNativeBundle(options) {
|
|
|
780
787
|
serverUrl
|
|
781
788
|
});
|
|
782
789
|
const chunk = (await build({
|
|
790
|
+
write: false,
|
|
783
791
|
input: entryFile ? normalizePath(resolve(root, entryFile)) : VIRTUAL_NATIVE_ENTRY,
|
|
784
792
|
cwd: root,
|
|
785
793
|
platform: "neutral",
|
|
@@ -788,6 +796,10 @@ async function buildNativeBundle(options) {
|
|
|
788
796
|
treeshake: !dev,
|
|
789
797
|
experimental: { lazyBarrel: false },
|
|
790
798
|
shimMissingExports: true,
|
|
799
|
+
onwarn(warning, defaultHandler) {
|
|
800
|
+
if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes("use client")) return;
|
|
801
|
+
defaultHandler(warning);
|
|
802
|
+
},
|
|
791
803
|
moduleTypes: { ".js": "jsx" },
|
|
792
804
|
plugins: [
|
|
793
805
|
...entryFile ? [] : [nativeVirtualEntryPlugin(root, {
|