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