Skip to content

Commit e511702

Browse files
authored
docs: resolve.alias for SSR externalized deps (#9337)
1 parent 7ae58a0 commit e511702

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/shared-options.md

+4
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ When aliasing to file system paths, always use absolute paths. Relative alias va
110110

111111
More advanced custom resolution can be achieved through [plugins](/guide/api-plugin).
112112

113+
::: warning Using with SSR
114+
If you have configured aliases for [SSR externalized dependencies](/guide/ssr.md#ssr-externals), you may want to alias the actual `node_modules` packages. Both [Yarn](https://classic.yarnpkg.com/en/docs/cli/add/#toc-yarn-add-alias) and [pnpm](https://pnpm.js.org/en/aliases) support aliasing via the `npm:` prefix.
115+
:::
116+
113117
## resolve.dedupe
114118

115119
- **Type:** `string[]`

0 commit comments

Comments
 (0)