Skip to content

Commit ebc80a8

Browse files
authored
docs(configuration): update output.trustedTypes (#7152)
1 parent 778e923 commit ebc80a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/configuration/output.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,13 +2272,13 @@ require('module'); // <- also throws
22722272

22732273
## output.trustedTypes
22742274

2275-
`boolean = false` `string` `object`
2275+
`true` `string` `object`
22762276

22772277
<Badge text="5.37.0+" />
22782278

22792279
Controls [Trusted Types](https://web.dev/trusted-types) compatibility. When enabled, webpack will detect Trusted Types support and, if they are supported, use Trusted Types policies to create script URLs it loads dynamically. Use when the application runs under a [`require-trusted-types-for`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/require-trusted-types-for) Content Security Policy directive.
22802280

2281-
It defaults to `false` (no compatibility, script URLs are strings).
2281+
It is disabled by default (no compatibility, script URLs are strings).
22822282

22832283
- When set to `true`, webpack will use [`output.uniqueName`](#outputuniquename) as the Trusted Types policy name.
22842284
- When set to a non-empty string, its value will be used as a policy name.

0 commit comments

Comments
 (0)