Options
All
  • Public
  • Public/Protected
  • All
Menu

Use a Trusted Types policy to create urls for chunks.

Hierarchy

  • TrustedTypes

Index

Properties

onPolicyCreationFailure?: "continue" | "stop"

If the call to trustedTypes.createPolicy(...) fails -- e.g., due to the policy name missing from the CSP trusted-types list, or it being a duplicate name, etc. -- controls whether to continue with loading in the hope that require-trusted-types-for 'script' isn't enforced yet, versus fail immediately. Default behavior is 'stop'.

policyName?: string

The name of the Trusted Types policy created by webpack to serve bundle chunks.