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

Object.assign is used in transpiled ES5 #53

Closed
moog16 opened this issue May 18, 2018 · 1 comment
Closed

Object.assign is used in transpiled ES5 #53

moog16 opened this issue May 18, 2018 · 1 comment
Assignees

Comments

@moog16
Copy link
Contributor

moog16 commented May 18, 2018

IE11 does not natively support Object.assign. Add babel-polyfill to build pipeline to support IE11.

@moog16 moog16 self-assigned this May 18, 2018
@moog16
Copy link
Contributor Author

moog16 commented May 22, 2018

Closing this since it actually seems like the polyfill is included in the npm run build step.

module.exports = shouldUseNative() ? Object.assign : function (target, source) {
	var from;
	var to = toObject(target);
	var symbols;

	for (var s = 1; s < arguments.length; s++) {
		from = Object(arguments[s]);

		for (var key in from) {
			if (hasOwnProperty.call(from, key)) {
				to[key] = from[key];
			}
		}

		if (getOwnPropertySymbols) {
			symbols = getOwnPropertySymbols(from);
			for (var i = 0; i < symbols.length; i++) {
				if (propIsEnumerable.call(from, symbols[i])) {
					to[symbols[i]] = from[symbols[i]];
				}
			}
		}
	}

	return to;
};

@moog16 moog16 closed this as completed May 22, 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

No branches or pull requests

1 participant