Skip to content

Commit eed960b

Browse files
committed
aliasing as example
1 parent 8b89f1e commit eed960b

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

11181118
## Module Aliasing
11191119

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

11221127
<WranglerConfig>

0 commit comments

Comments
 (0)