mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Removed babel polyfill
no issue - the polyfill is no longer required for latest browsers (tested on Chrome, FF, and Safari) - Edge may have problems but it's not currently supported - reduces build size. Before/after: - `vendor.min.js: 3.29 MB (706 KB gzipped)` - `vendor.min.js: 3.2 MB (672.92 KB gzipped)`
This commit is contained in:
parent
09497e9ba4
commit
428153dcd5
@ -102,7 +102,7 @@ module.exports = function (defaults) {
|
||||
let app = new EmberApp(defaults, {
|
||||
'ember-cli-babel': {
|
||||
optional: ['es6.spec.symbols'],
|
||||
includePolyfill: true
|
||||
includePolyfill: false
|
||||
},
|
||||
'ember-composable-helpers': {
|
||||
only: ['toggle']
|
||||
|
@ -221,8 +221,8 @@ export default Component.extend({
|
||||
// add our default atoms and cards, we want the defaults to be first so
|
||||
// that they can be overridden by any passed-in atoms or cards.
|
||||
// Use Array.concat to avoid modifying any passed in array references
|
||||
atoms = Array.concat(defaultAtoms, atoms);
|
||||
cards = Array.concat(defaultCards, cards);
|
||||
atoms = defaultAtoms.concat(atoms);
|
||||
cards = defaultCards.concat(cards);
|
||||
|
||||
return assign({
|
||||
placeholder: this.placeholder,
|
||||
|
Loading…
Reference in New Issue
Block a user