Skip to content

Commit 5ab86b5

Browse files
Update src/content/docs/workers/wrangler/bundling.mdx
Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
1 parent 05b1503 commit 5ab86b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ This approach is useful for supporting lazy loading of large or dynamically impo
6262
- Normally a large lazy imported file (e.g. `await import("./large-dep.mjs")`) would be bundled directly into your entrypoint, making lazy loading less effective.
6363
If matching rule is added to `rules`, then this file would only be loaded and executed at runtime when it is actually imported.
6464
- Previously, variable based dynamic imports (e.g. ``await import(`./lang/${language}.mjs`)``) would always fail at runtime, as Wrangler would have no way of knowing which modules to include in the upload.
65-
Providing a rule that matches all these files (e.g. ` { type = "EsModule", globs = ["./land/**/*.mjs"], fallthrough = true }), will ensure this module is available at runtime.
65+
Providing a rule that matches all these files, such as { type = "EsModule", globs = ["./land/**/*.mjs"], fallthrough = true }, will ensure this module is available at runtime.
6666
- "Partial bundling" is supported when `find_additional_modules` is `true`, and a source file matches one of the configured `rules`, since Wrangler will then treat it as "external" and not try to bundle it into the entry-point file.
6767

6868
## Conditional exports

0 commit comments

Comments
 (0)