From 2c3b78a35eb40082fc7c0b3c81d7a6d53fe11041 Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Sun, 21 Jul 2024 10:37:29 +0200 Subject: [PATCH] chore(vite): Don't exclude Router in attw check (#11031) --- packages/vite/attw.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/vite/attw.ts b/packages/vite/attw.ts index 3bca042a3a80..1f2be53edb3d 100644 --- a/packages/vite/attw.ts +++ b/packages/vite/attw.ts @@ -6,17 +6,14 @@ interface Problem { resolutionKind?: string } -/*** - * Excluded entry points: - * - ./bins/rw-vite-build.mjs: this is only used in the build handler - * - SsrRouter, Router: this should be moved out of the Vite package anyway, and is only used in ESM - * - ./react-node-loader: used to run the Worker - * - - */ +// Excluded entry points: +// - ./bins/rw-vite-build.mjs: this is only used in the build handler +// - ./SsrRouter: this should be moved out of the Vite package anyway, and is only used in ESM +// - ./react-node-loader: used to run the Worker await $({ nothrow: true, -})`yarn attw -P --exclude-entrypoints ./bins/rw-vite-build.mjs ./SsrRouter ./Router ./react-node-loader -f json > .attw.json` +})`yarn attw -P --exclude-entrypoints ./bins/rw-vite-build.mjs ./SsrRouter ./react-node-loader -f json > .attw.json` const output = await $`cat .attw.json` await $`rm .attw.json`