Skip to content

Commit

Permalink
docs: resolve.alias for SSR externalized deps (#9337)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Jul 25, 2022
1 parent 7ae58a0 commit e511702
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/shared-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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[]`
Expand Down

0 comments on commit e511702

Please sign in to comment.