mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
fix(polyfills): Use object shape for Stackblitz polyfill list
This commit is contained in:
parent
db39206cbb
commit
632d1b6842
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ const isStackblitz = process.env.SHELL === '/bin/jsh' && process.versions.webcon
|
|||
|
||||
export function apply() {
|
||||
if (isStackblitz) {
|
||||
const neededPolyfills = [
|
||||
const neededPolyfills = {
|
||||
ByteLengthQueuingStrategy,
|
||||
CountQueuingStrategy,
|
||||
ReadableByteStreamController,
|
||||
|
@ -43,7 +43,7 @@ export function apply() {
|
|||
Request,
|
||||
Response,
|
||||
fetch,
|
||||
];
|
||||
};
|
||||
|
||||
for (let polyfillName of Object.keys(neededPolyfills)) {
|
||||
if (Object.hasOwnProperty.call(globalThis, polyfillName)) continue;
|
||||
|
|
Loading…
Reference in a new issue