Skip to content

Commit

Permalink
chore(vite): Don't exclude Router in attw check (#11031)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jul 21, 2024
1 parent 5e1caa8 commit 2c3b78a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/vite/attw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit 2c3b78a

Please sign in to comment.