File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments