Add polyfills for global.StructuredClone and Array.prototype.at (#16461)

GitOrigin-RevId: 28119b7bbda1d5c062f80bce96a8a69be8386559
This commit is contained in:
Alf Eaton
2024-02-05 11:44:20 +00:00
committed by Copybot
parent fa9b246ac5
commit 9e9c054219

View File

@@ -3,6 +3,8 @@
import 'core-js/stable/global-this' // polyfill for globalThis (used by pdf.js)
import 'core-js/stable/promise/all-settled' // polyfill for Promise.allSettled (used by pdf.js)
import 'core-js/stable/structured-clone' // polyfill for global.StructuredClone (used by pdf.js)
import 'core-js/stable/array/at' // polyfill for Array.prototype.at (used by pdf.js)
import getMeta from '@/utils/meta'
import { createWorker } from '@/utils/worker'