Skip to content

Commit 0421d18

Browse files
committed
Use package name of AbortController polyfill in whitelisted dependencies
This ensures that polyfill will be listed in `dist/package.json`'s `dependencies` at build, and then properly installed in FastBoot application server.
1 parent d7bb5af commit 0421d18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"configPath": "tests/dummy/config",
6767
"fastbootDependencies": [
6868
"node-fetch",
69-
"abortcontroller-polyfill/dist/cjs-ponyfill"
69+
"abortcontroller-polyfill"
7070
]
7171
}
7272
}

public/fastboot-fetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
self['default'] = abortableFetch.fetch;
1212
self['Request'] = abortableFetch.Request;
1313

14-
self['Headers'] = nodeFetch.Headers;
14+
self['Headers'] = nodeFetch.Headers;
1515
self['Response'] = nodeFetch.Response;
1616

1717
self['AbortController'] = AbortControllerPolyfill.AbortController;

0 commit comments

Comments
 (0)