Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Do not use a promise polyfill on modern setups#815

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

alubbe
Copy link
Member

To make the most of async/await (performance & stack traces), we need to use the native Promises. This PR does not change that the default export usespromish, but it does add two new exports that allow access to the modern codebase and native promises. I've also fixed a couple of eslint failures in the affected files.

constExcel=require('exceljs/modern.nodejs');importExcelfrom'exceljs/modern.browser';

Copy link
Contributor

@defshiftdefshift left a comment

Choose a reason for hiding this comment

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

👍

@alubbealubbeforce-pushed theno-promise-polyfill-on-modern-setups branch from274a84e to791292aCompareMay 14, 2019 09:54
if(valueinstanceofDate){
if(dateFormat){
dateUTC ?moment.utc(value).format(dateFormat) :moment(value).format(dateFormat);
returndateUTC ?moment.utc(value).format(dateFormat) :moment(value).format(dateFormat);
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I'm pretty sure the missing return here was a bug

defshift reacted with thumbs up emoji
Copy link
Collaborator

@guyonrocheguyonroche left a comment

Choose a reason for hiding this comment

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

LGTM

@guyonrocheguyonroche merged commitea2b1d2 intoexceljs:masterMay 15, 2019
@alubbealubbe deleted the no-promise-polyfill-on-modern-setups branchMay 15, 2019 11:14
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@guyonrocheguyonrocheguyonroche approved these changes

@SiemienikSiemienikAwaiting requested review from Siemienik

+1 more reviewer

@defshiftdefshiftdefshift approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@alubbe@guyonroche@defshift

[8]ページ先頭

©2009-2025 Movatter.jp