Skip to content

Commit faa2768

Browse files
committed
aliasing as example
1 parent 335bf1b commit faa2768

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.
@@ -1114,6 +1114,11 @@ local_protocol = "http"
11141114

11151115
## Module Aliasing
11161116

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

11191124
<WranglerConfig>

0 commit comments

Comments
 (0)