Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add polyfill to browser entry point #119

Closed
wants to merge 1 commit into from
Closed

Add polyfill to browser entry point #119

wants to merge 1 commit into from

Conversation

flopes89
Copy link

With this polyfill, the kit will work in "server-render" mode (:8081) for older browsers (tested IE11 in Edge and IE10 mode, didn't dare to go any lower).

"hot-reloading" mode still doesn't work, though. There I run into this issue.

I tried changing the order of entry as commented on that issue, but new errors just keep creeping up.

Nonetheless, when building for production, server-rendering is enabled anyway, so this PR will make the kit work for more browsers in production.

@flopes89 flopes89 mentioned this pull request Nov 10, 2017
@shiruken1
Copy link

For us, we also needed to change line 36 in browser_dev.js to

conf.entry.browser.splice(1, 0,

So that babel-polyfill would come first

@flopes89 flopes89 closed this Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants