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

Polyfill to vendor bundle #550

Open
iHateYourGlasses opened this issue Nov 29, 2017 · 1 comment
Open

Polyfill to vendor bundle #550

iHateYourGlasses opened this issue Nov 29, 2017 · 1 comment

Comments

@iHateYourGlasses
Copy link

It seems like adding 'babel-polyfill' to the top of client/index.js or server/index.js doesn't affect vendor bundle. For example, if you create new project with kyt-cli and then add to

node_modules/react/lib/React.js

following code:

var promiseTest = new Promise(function(resolve){
  console.log('i am promise in react!');
  resolve('hi react');
});

promiseTest.then(function(successMessage) {
  console.log(successMessage);
});

it will fail in IE11 with message "Promise is not defined".

How can i add polyfill to my vendor bundle?

@seancy
Copy link

seancy commented Jun 25, 2019

I also met this problem now, The project has many entries and a vendor, each of the entry works find, but not vendor. (on IE9)

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

No branches or pull requests

2 participants