ImportProtectionOptions
Glob lists of the import protection.
Glob lists of the import protection.
Import#
ts
import type { ImportProtectionOptions } from "@shadow-js/dusk/vite";
Signature#
ts
interface ImportProtectionOptions {
/** Extra files (globs, relative to the project root) that client code must not import. */
readonly server?: readonly string[];
/** Extra files that server code must not import. */
readonly client?: readonly string[];
/** Files exempt from the check (globs). */
readonly ignore?: readonly string[];
}
Members#
| Name | Type | Description |
|---|---|---|
server? |
readonly server?: readonly string[] |
Extra files (globs, relative to the project root) that client code must not import. |
client? |
readonly client?: readonly string[] |
Extra files that server code must not import. |
ignore? |
readonly ignore?: readonly string[] |
Files exempt from the check (globs). |