Skip to content

Commit db991a8

Browse files
committed
aliasing as example
1 parent 68d9ec7 commit db991a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/content/docs/workers/wrangler/configuration.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: Use a configuration file to customize the
99
Platform products.
1010
---
1111

12-
import { Render, Type, MetaInfo, WranglerConfig } from "~/components";
12+
import { Render, Type, MetaInfo, WranglerConfig, Details } from "~/components";
1313
import { FileTree } from "@astrojs/starlight/components";
1414

1515
Wrangler optionally uses a configuration file to customize the development and deployment setup for a Worker.
@@ -1112,6 +1112,11 @@ local_protocol = "http"
11121112

11131113
## Module Aliasing
11141114

1115+
<Details header="⚡ Vite plugin">
1116+
This is replaced "resolve.alias" in Vite - refer to the Vite documentation for
1117+
usage: https://vite.dev/config/shared-options.html#resolve-alias".
1118+
</Details>
1119+
11151120
You can configure Wrangler to replace all calls to import a particular package with a module of your choice, by configuring the `alias` field:
11161121

11171122
<WranglerConfig>

0 commit comments

Comments
 (0)