After a fresh install of npm packages (deleted node_modules and package.lock.json) polyfills-es5 file started having additional code to define _toPrimitive function
And when I load the app in IE I get @@toPrimitive must return a primitive value.
I debugged the IE and found that input = [Symbol [Object]]
(typeof input === 'object)
while in Chrome it is just a 'string'.
debugging more I figured out the caller function
So and as I checked in chrome it is just a string:
And in IE it is of type object:
I was able to find out that this function is added by babel. But I do not understand why it eventually started to be a case. Please, help me to understand what causes this code to be added like that. What dependency I need to rollback or maybe something change anywhere.
If I revert package.lock.json and reinstall node_modules this issue doesn't occur