fix: prevent rollup from optimizing "void 0" to "undefined"
All checks were successful
tagged-release / Tagged Release (push) Successful in 2m29s
All checks were successful
tagged-release / Tagged Release (push) Successful in 2m29s
This commit is contained in:
parent
98dde69751
commit
31e2e95bc8
@ -112,7 +112,8 @@ export interface Primordials {
|
||||
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 primordials: Primordials = (globalThis as any).primordials;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user