Skip to content

Commit

Permalink
Add js extension to cjs-ponyfill
Browse files Browse the repository at this point in the history
Prevents an import error in FastBoot.
See ember-cli#115 (comment)
  • Loading branch information
mhluska committed Jun 24, 2018
1 parent d25abf6 commit 46e263f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"configPath": "tests/dummy/config",
"fastbootDependencies": [
"node-fetch",
"abortcontroller-polyfill/dist/cjs-ponyfill"
"abortcontroller-polyfill/dist/cjs-ponyfill.js"
]
}
}
2 changes: 1 addition & 1 deletion public/fastboot-fetch.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* globals define FastBoot */
(function() {
define('fetch', ['exports'], function(self) {
var AbortControllerPolyfill = FastBoot.require('abortcontroller-polyfill/dist/cjs-ponyfill');
var AbortControllerPolyfill = FastBoot.require('abortcontroller-polyfill/dist/cjs-ponyfill.js');
var nodeFetch = FastBoot.require('node-fetch');
var abortableFetch = AbortControllerPolyfill.abortableFetch({
fetch: nodeFetch,
Expand Down

0 comments on commit 46e263f

Please sign in to comment.