Skip to content

Commit

Permalink
Ensure ember-fetch is optimised
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiemh committed Jan 28, 2024
1 parent 8d4a6ba commit ab3f034
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ module.exports = {
// Don't store app config in meta tag
app.options.storeConfigInMeta = false;

// Ensure ember-fetch configuration is optimised
app.options['ember-fetch'] = app.options['ember-fetch'] || {};
app.options['ember-fetch'].preferNative = true;
app.options['ember-fetch'].alwaysIncludePolyfill = false;

// Ensure correct file types are converted
app.options.fingerprint = app.options.fingerprint || {};
app.options.fingerprint.exclude = app.options.fingerprint.exclude || [];
Expand Down
1 change: 1 addition & 0 deletions packages/mdfiles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"broccoli-merge-trees": "^4.2.0",
"ember-cli-babel": "^7.26.6",
"ember-cli-htmlbars": "^5.7.1",
"ember-fetch": "^8.1.2",
"front-matter": "^4.0.2"
},
"ember-addon": {
Expand Down

0 comments on commit ab3f034

Please sign in to comment.