saberland / saber

()==[:::::::::::::> Build static sites in Vue.js, without the hassle
https://saber.egoist.dev
MIT License
2.15k stars 112 forks source link

Support asynchronous transformers #459

Open egoist opened 5 years ago

egoist commented 5 years ago

Issuehunt badges

Feature request

What problem does this feature solve?

Some transformers like remark.js.org allows asynchronous plugins and expose an asynchronous API.

How should this be implemented in your opinion?

Make api.pages.createPage and api.pages.normalizePage return a Promise.


IssueHunt Summary ### Backers (Total: $50.00) - [issuehunt issuehunt](https://issuehunt.io/u/issuehunt) ($50.00) ### Submitted pull Requests - [#495 Transformers - Converted functions to asyncs](https://issuehunt.io/r/saberland/saber/pull/495) --- #### [Become a backer now!](https://issuehunt.io/r/saberland/saber/issues/459) #### [Or submit a pull request to get the deposits!](https://issuehunt.io/r/saberland/saber/issues/459) ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/saberland/saber/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds. --- IssueHunt has been backed by the following sponsors. [Become a sponsor](https://issuehunt.io/membership/members)
issuehunt-oss[bot] commented 5 years ago

@issuehunt has funded $50.00 to this issue.


egoist commented 5 years ago

Turns out remark (which uses unified) has an synchronous API https://github.com/unifiedjs/unified#api (if you don't use async plugins)

cc @limitlessloop