We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d919cf commit 024a2deCopy full SHA for 024a2de
packages/plugin-legacy/index.js
@@ -44,7 +44,12 @@ function viteLegacyPlugin(options = {}) {
44
const facadeToLegacyPolyfillMap = new Map()
45
const facadeToModernPolyfillMap = new Map()
46
const modernPolyfills = new Set()
47
- const legacyPolyfills = new Set()
+ // System JS relies on the Promise interface. It needs to be polyfilled for IE 11. (array.iterator is mandatory for supporting Promise.all)
48
+ const DEFAULT_LEGACY_POLYFILL = [
49
+ 'core-js/modules/es.promise',
50
+ 'core-js/modules/es.array.iterator'
51
+ ]
52
+ const legacyPolyfills = new Set(DEFAULT_LEGACY_POLYFILL)
53
54
if (Array.isArray(options.modernPolyfills)) {
55
options.modernPolyfills.forEach((i) => {
0 commit comments