Skip to content

Commit 9c80985

Browse files
svewagAkryum
authored andcommitted
fix(apollo): add fetch polyfill for client (#106)
in order to polyfill `window.fetch` we have to add it to the `entry-client.js` as well
1 parent da41831 commit 9c80985

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generator/templates/default/src/entry-client.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<%_ if (apollo) { _%>
2+
import 'isomorphic-fetch'
3+
<%_ } _%>
14
import { loadAsyncComponents } from '@akryum/vue-cli-plugin-ssr/client'
25
<%_ if (pwa) { _%>
36
import './registerServiceWorker'

0 commit comments

Comments
 (0)