-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Conversation
@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", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
src/compatibility.js
Outdated
@@ -0,0 +1,2 @@ | |||
require('es6-object-assign').polyfill(); |
There was a problem hiding this comment.
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();
There was a problem hiding this comment.
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.
src/compatibility.js
Outdated
@@ -0,0 +1,2 @@ | |||
require('es6-object-assign').polyfill(); | |||
module.exports = Object; |
There was a problem hiding this comment.
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.
rollup/compatibility.js
Outdated
moduleName: 'compatibility', | ||
}, | ||
], | ||
exports: 'default', |
There was a problem hiding this comment.
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.
a0f523a
to
d4a2cd4
Compare
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.
This PR adds a new js module compatibility.js, which currently adds polyfill support for Object.assign.