fix: prevent rollup from optimizing "void 0" to "undefined"
This commit is contained in:
parent
98dde69751
commit
9076c5fc1b
@ -112,7 +112,8 @@ export interface Primordials {
|
|||||||
schedule(func: () => void, delay: number): () => void;
|
schedule(func: () => void, delay: number): () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
globalThis.undefined = void 0;
|
// prevent optimization to "undefined", which doesn't exist yet
|
||||||
|
globalThis.undefined = ({} as any).bogus;
|
||||||
export const target = (globalThis as any).target;
|
export const target = (globalThis as any).target;
|
||||||
export const primordials: Primordials = (globalThis as any).primordials;
|
export const primordials: Primordials = (globalThis as any).primordials;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user