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.
@@ -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: { exclude: ["**/node_modules/.test/**", "**/.git/**"] }
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, {