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
|
@@ -686,6 +686,10 @@ async function createNativeDevEngine(options) {
|
|
|
686
686
|
},
|
|
687
687
|
treeshake: false,
|
|
688
688
|
shimMissingExports: true,
|
|
689
|
+
onwarn(warning, defaultHandler) {
|
|
690
|
+
if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes("use client")) return;
|
|
691
|
+
defaultHandler(warning);
|
|
692
|
+
},
|
|
689
693
|
moduleTypes: { ".js": "jsx" },
|
|
690
694
|
plugins: [virtualEntry.plugin, ...getNativePlugins(root, platform, viteImportGlobPlugin, true, void 0, assetRegistry.register, true, userPlugins)]
|
|
691
695
|
};
|
|
@@ -777,7 +781,10 @@ try {
|
|
|
777
781
|
}
|
|
778
782
|
},
|
|
779
783
|
rebuildStrategy: "never",
|
|
780
|
-
watch: {
|
|
784
|
+
watch: {
|
|
785
|
+
skipWrite: true,
|
|
786
|
+
exclude: ["**/node_modules/.test/**", "**/.git/**"]
|
|
787
|
+
}
|
|
781
788
|
});
|
|
782
789
|
async function handleOutput(result) {
|
|
783
790
|
if (result instanceof Error) {
|
|
@@ -911,6 +918,7 @@ async function buildNativeBundle(options) {
|
|
|
911
918
|
serverUrl
|
|
912
919
|
});
|
|
913
920
|
var chunk = (await build({
|
|
921
|
+
write: false,
|
|
914
922
|
input: entryFile ? normalizePath(resolve(root, entryFile)) : VIRTUAL_NATIVE_ENTRY,
|
|
915
923
|
cwd: root,
|
|
916
924
|
platform: "neutral",
|
|
@@ -919,6 +927,10 @@ async function buildNativeBundle(options) {
|
|
|
919
927
|
treeshake: !dev,
|
|
920
928
|
experimental: { lazyBarrel: false },
|
|
921
929
|
shimMissingExports: true,
|
|
930
|
+
onwarn(warning, defaultHandler) {
|
|
931
|
+
if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes("use client")) return;
|
|
932
|
+
defaultHandler(warning);
|
|
933
|
+
},
|
|
922
934
|
moduleTypes: { ".js": "jsx" },
|
|
923
935
|
plugins: [
|
|
924
936
|
...entryFile ? [] : [nativeVirtualEntryPlugin(root, {
|