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 Object.assign polyfill support #210

Merged
merged 3 commits into from
Feb 14, 2017

Conversation

emlove
Copy link
Contributor

@emlove emlove commented Feb 14, 2017

This PR adds a new js module compatibility.js, which currently adds polyfill support for Object.assign.

@mention-bot
Copy link

@armills, thanks for your PR! By analyzing the history of the files in this pull request, we identified @balloob, @robbiet480 and @syphernl to be potential reviewers.

"ru_demo": "rollup --config rollup/demo.js",
"watch_ru_all": "npm run watch_ru_core && npm run watch_ru_demo",
"watch_ru_all": "(npm run watch_ru_core & npm run watch_ru_compatibility & npm run watch_ru_demo) && wait",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were being run in sequence previously, which ends up only watching core. I believe the intention is to watch all of them at once.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting, I never realized that. Then again, we hardly develop anything but the core.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what I figured. Just wanted to confirm.

@@ -0,0 +1,2 @@
require('es6-object-assign').polyfill();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make this ES6.

import objAssign from es6-object-assign;
objAssign.polyfill();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this is what I was missing.

@@ -0,0 +1,2 @@
require('es6-object-assign').polyfill();
module.exports = Object;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need an export.

moduleName: 'compatibility',
},
],
exports: 'default',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to expose an export as this is a polyfill.

@emlove emlove force-pushed the object-assign-polyfill branch from a0f523a to d4a2cd4 Compare February 14, 2017 18:26
@balloob balloob merged commit 5207629 into home-assistant:master Feb 14, 2017
@emlove emlove deleted the object-assign-polyfill branch February 14, 2017 20:09
tkdrob pushed a commit to tkdrob/frontend that referenced this pull request Apr 20, 2021
Change from using either MarkDown quotes or custom CSS tool tips to the new native boxes in DSv2 which are much punchier and fresher looking.
@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants