Skip to content

Polyfill to vendor bundle #550

Description

@iHateYourGlasses

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions