Skip to content

Commit

Permalink
fix(polyfill): use core-js promise and iife fetch polyfill (#2443)
Browse files Browse the repository at this point in the history
* fix(polyfill): use core-js promise and iife fetch polyfill

* docs(readme): update core-js generated snippet in readme
  • Loading branch information
warapitiya committed Jul 22, 2020
1 parent 3be1d72 commit 7b7ed0b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ require('core-js-builder')({
'es.data-view',
'es.typed-array',
'es.reflect',
'es.promise'
]
});
```
Expand Down
7 changes: 4 additions & 3 deletions src/client/polyfills/core-js.js

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions src/client/polyfills/promise.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/compiler/app-core/app-polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export const getAppBrowserCorePolyfills = async (config: d.Config, compilerCtx:

// order of the polyfills matters!! test test test
// actual source of the polyfills are found in /src/client/polyfills/
const INLINE_POLYFILLS = ['promise.js', 'core-js.js', 'dom.js', 'es5-html-element.js', 'system.js'];
const INLINE_POLYFILLS = ['core-js.js', 'dom.js', 'es5-html-element.js', 'system.js'];

const INLINE_CSS_SHIM = 'css-shim.js';

0 comments on commit 7b7ed0b

Please sign in to comment.