interface ExternalFetchResult {
    externalize: string;
    type?: "commonjs" | "module" | "builtin" | "network";
}

Properties

Properties

externalize: string

The path to the externalized module starting with file://, by default this will be imported via a dynamic "import" instead of being transformed by vite and loaded with vite runtime

type?: "commonjs" | "module" | "builtin" | "network"

Type of the module. Will be used to determine if import statement is correct. For example, if Vite needs to throw an error if variable is not actually exported