Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
14 lines
609 B
Plaintext
14 lines
609 B
Plaintext
import { LoaderThis } from './types';
|
|
export type ValueInjectionLoaderOptions = {
|
|
values: Record<string, unknown>;
|
|
};
|
|
/**
|
|
* Set values on the global/window object at the start of a module.
|
|
*
|
|
* Options:
|
|
* - `values`: An object where the keys correspond to the keys of the global values to set and the values
|
|
* correspond to the values of the values on the global object. Values must be JSON serializable.
|
|
*/
|
|
export default function valueInjectionLoader(this: LoaderThis<ValueInjectionLoaderOptions>, userCode: string): string;
|
|
//# sourceMappingURL=valueInjectionLoader.d.ts.map
|