{"id":169313,"date":"2020-10-05T10:41:37","date_gmt":"2020-10-05T02:41:37","guid":{"rendered":"http:\/\/4563.org\/?p=169313"},"modified":"2020-10-05T10:41:37","modified_gmt":"2020-10-05T02:41:37","slug":"rollup-%e6%89%93%e5%8c%85%e4%b8%8d%e6%94%af%e6%8c%81-async-%e8%af%ad%e6%b3%95%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=169313","title":{"rendered":"rollup \u6253\u5305\u4e0d\u652f\u6301 async \u8bed\u6cd5\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  rollup \u6253\u5305\u4e0d\u652f\u6301 async \u8bed\u6cd5\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sologgfun <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5165\u53e3\u6587\u4ef6 index.js<\/p>\n<pre><code>const { determineRepoDir } = require('.\/expo');  console.log(determineRepoDir) <\/code><\/pre>\n<p>expo.js<\/p>\n<pre><code>const { mark } = require('..\/lib\/profile'); async function fff() {   console.log('11') } <\/code><\/pre>\n<p>\u73b0\u8c61\u5c31\u662f\u5982\u679c expo.js \u7684 fff \u51fd\u6570\u4e0d\u5e26 async \u5934\uff0c\u90a3\u4e48 profile \u6587\u4ef6\u91cc\u9762\u7684\u4ee3\u7801\u5c31\u4f1a\u88ab\u6253\u5305\u8d77\u6765\uff0c\u5426\u5219\u4e0d\u4f1a\u6253\u5305\uff0c\u53ea\u4f1a\u4fdd\u7559 require \u7684\u4ee3\u7801?<\/p>\n<p>\u81ea\u5df1\u770b\u4e86\u534a\u5929\u6ca1\u6574\u51fa\u6765\u4e3a\u5565\u3002\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3813514\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Geo200 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u53ef\u80fd\u9700\u8981\u4e2a\u89e3\u6790 async \u7684\u63d2\u4ef6\uff1a https:\/\/github.com\/leebyron\/rollup-plugin-async                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3813515\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sologgfun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Geo200 \u5e94\u8be5\u4e0d\u662f\u7684\uff0c\u6211\u52a0\u4e86 ployfill \u4e4b\u540e\u8fd8\u662f\u4e0d\u884c\uff0c\u76f4\u63a5\u4e0d\u7ba1\u52a0\u4e0d\u52a0 async\uff0c\u90fd\u4e0d\u4f1a\u6253\u5305 profile \u6587\u4ef6\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>rollup \u6253\u5305\u4e0d\u652f\u6301 asyn&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/169313"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169313"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/169313\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169313"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}