Skip to content

Commit 821012f

Browse files
committed
fix(rsc): remove ignoredPackageWarnings
1 parent a4174ce commit 821012f

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

packages/plugin-rsc/src/plugin.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,19 +1232,8 @@ function vitePluginUseServer(
12321232
this.environment.mode === 'dev' &&
12331233
id.includes('/node_modules/')
12341234
) {
1235-
const ignored =
1236-
useServerPluginOptions.ignoredPackageWarnings?.some(
1237-
(pattern) =>
1238-
pattern instanceof RegExp
1239-
? pattern.test(id)
1240-
: id.includes(`/node_modules/${pattern}/`),
1241-
)
1242-
if (!ignored) {
1243-
this.warn(
1244-
`[vite-rsc] detected an internal server function created by a package imported on ${this.environment.name} environment`,
1245-
)
1246-
}
1247-
// module runner has additional resolution step and it's not strict about
1235+
// similar situation as `use client` (see `virtual:client-in-server-package-proxy`)
1236+
// but module runner has additional resolution step and it's not strict about
12481237
// module identity of `import(id)` like browser, so we simply strip queries such as `?v=`.
12491238
id = cleanUrl(id)
12501239
}

0 commit comments

Comments
 (0)