docs-ko icon indicating copy to clipboard operation
docs-ko copied to clipboard

[SYNC] docs: `resolve.alias` for SSR externalized deps (#9337)

Open github-actions[bot] opened this issue 3 years ago • 0 comments

docs: resolve.alias for SSR externalized deps (#9337) (b2a4931)


+++ b/docs/config/shared-options.md
@@ -110,6 +110,10 @@ When aliasing to file system paths, always use absolute paths. Relative alias va
More advanced custom resolution can be achieved through [plugins](/guide/api-plugin).
+::: warning Using with SSR
+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.
+:::
+
## resolve.dedupe
- **Type:** `string[]`

github-actions[bot] avatar Jul 26 '22 00:07 github-actions[bot]