{"id":1084,"date":"2021-01-26T09:52:24","date_gmt":"2021-01-26T09:52:24","guid":{"rendered":"https:\/\/fdream.net\/blog\/?p=1084"},"modified":"2021-01-26T09:52:25","modified_gmt":"2021-01-26T09:52:25","slug":"rollup%e6%89%93%e5%8c%85%e5%a4%84%e7%90%86%e6%b3%a8%e9%87%8a%e7%9a%84%e4%b8%80%e4%b8%aa%e5%a5%87%e6%80%aabug","status":"publish","type":"post","link":"https:\/\/fdream.net\/blog\/article\/1084","title":{"rendered":"rollup\u6253\u5305\u5904\u7406\u6ce8\u91ca\u7684\u4e00\u4e2a\u5947\u602abug"},"content":{"rendered":"<p>\u7528\u4e86\u4e2a\u7b2c\u4e09\u65b9zip\u538b\u7f29\u5e93\uff0c\u6b63\u5e38html\u7528\u6807\u7b7e\u65b9\u5f0f\u5f15\u5165\u6ca1\u6709\u95ee\u9898\uff0c\u7528npm\u5f15\u5165\u540e\u53d1\u73b0\u4e0d\u652f\u6301import\uff0c\u4e8e\u662f\u8dd1\u53bbgithub\u4e0a\u7ffb\u4e86\u4e0bissue\uff0c\u7ed3\u679c\u4f5c\u8005\u8ba4\u4e3aimport\u4e0d\u662f\u6b63\u5f0f\u6807\u51c6\uff0c\u4e0d\u6253\u7b97\u652f\u6301\uff0c\u751a\u81f3\u6709\u4ebapush\u4e86\u4fee\u6539\u540e\u7684\u4ee3\u7801\uff0c\u4ecd\u7136\u88ab\u62d2\u4e86\uff0c\u539f\u56e0\u662f\u7834\u574f\u4e86\u539f\u6709\u7684require\u8def\u5f84\u3002<\/p>\n<p>\u8fd9\u4e2a\u4e5f\u597d\u529e\uff0c\u628adist\u4e0b\u7684\u4ee3\u7801\u590d\u5236\u8fc7\u6765\uff0c\u52a0\u4e2aexport default\u5c31\u884c\u4e86\u3002\u7ed3\u679c\u53d1\u73b0\u4e0b\u5728\u6253\u5305\u65f6\u51fa\u73b0\u4e86\u5947\u602a\u7684\u8bed\u6cd5\u9519\u8bef\u201cSyntaxError: Unexpected token\u201d\uff0c\u901a\u8fc7\u5927\u6bb5\u5220\u4ee3\u7801\u7684\u65b9\u5f0f\u603b\u7b97\u5b9a\u4f4d\u5230\u4e00\u4e2a\u6ce8\u91ca\u7684\u95ee\u9898\uff1a<\/p>\n<pre lang=\"javascript\">const _tr_tally = (s, dist, lc) =&gt;\n\/\/    deflate_state *s;\n\/\/    unsigned dist;  \/* distance of matched string *\/\n\/\/    unsigned lc;    \/* match length-MIN_MATCH or unmatched char (if dist==0) *\/\n{\n<\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u7684\u6ce8\u91ca\u4f1a\u5bfc\u81f4\u6253\u5305\u51fa\u73b0\u8bed\u6cd5\u9519\u8bef\uff0c\u66f4\u6539\u4e3a\u4e0b\u9762\u7684\u4ee3\u7801\u540e\u6ca1\u6709\u95ee\u9898\u4e86\uff1a<\/p>\n<pre lang=\"javascript\">\/\/    deflate_state *s;\n\/\/    unsigned dist;  \/* distance of matched string *\/\n\/\/    unsigned lc;    \/* match length-MIN_MATCH or unmatched char (if dist==0) *\/\nconst _tr_tally = (s, dist, lc) =&gt;\n{\n<\/pre>\n<p>\u4ed4\u7ec6\u4e00\u60f3\uff0c\u8fd9\u4e2a\u4e0d\u79d1\u5b66\u554a\uff0c\u4e8e\u662f\u518d\u8bd5\uff1a<\/p>\n<pre lang=\"javascript\">const _tr_tally = (s, dist, lc) =&gt;\n\/\/    deflate_state *s;\n{\n<\/pre>\n<p>\u6ca1\u6709\u95ee\u9898\uff0c\u518d\u8bd5\uff1a<\/p>\n<pre lang=\"javascript\">const _tr_tally = (s, dist, lc) =&gt;\n\/\/    deflate_state *s;\n\/\/    unsigned dist;  \/* distance of matched string *\/\n{\n<\/pre>\n<p>\u4f9d\u7136\u6ca1\u6709\u95ee\u9898\u3002\u96be\u9053\u8bf4\u95ee\u9898\u5728\u7b2c\u4e09\u884c\u90a3\u4e2a\u62ec\u53f7\uff1a<\/p>\n<pre lang=\"javascript\">const _tr_tally = (s, dist, lc) =&gt;\n\/\/    deflate_state *s;\n\/\/    unsigned dist;  \/* distance of matched string *\/\n\/\/    unsigned lc;    \/* match length-MIN_MATCH or unmatched char *\/\n{\n<\/pre>\n<p>\u679c\u7136\u6ca1\u6709\u95ee\u9898\uff01\u770b\u6765\u8fd9\u4e2a\u5c31\u662fbug\u6240\u5728\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u4e86\u4e2a\u7b2c\u4e09\u65b9zip\u538b\u7f29\u5e93\uff0c\u6b63\u5e38html\u7528\u6807\u7b7e\u65b9\u5f0f\u5f15\u5165\u6ca1\u6709\u95ee\u9898\uff0c\u7528npm\u5f15\u5165\u540e\u53d1\u73b0\u4e0d\u652f\u6301import\uff0c\u4e8e\u662f\u8dd1\u53bbgithub\u4e0a\u7ffb\u4e86\u4e0bissue\uff0c\u7ed3\u679c\u4f5c\u8005\u8ba4\u4e3aimport\u4e0d\u662f\u6b63\u5f0f\u6807\u51c6\uff0c\u4e0d\u6253\u7b97\u652f\u6301\uff0c\u751a\u81f3\u6709\u4ebapush\u4e86\u4fee\u6539\u540e\u7684\u4ee3\u7801\uff0c\u4ecd\u7136\u88ab\u62d2\u4e86\uff0c\u539f\u56e0\u662f\u7834\u574f\u4e86\u539f\u6709\u7684require\u8def\u5f84\u3002<\/p>\n<p>\u8fd9\u4e2a\u4e5f\u597d\u529e\uff0c\u628adist\u4e0b\u7684\u4ee3\u7801\u590d\u5236\u8fc7\u6765\uff0c\u52a0\u4e2aexport default\u5c31\u884c\u4e86\u3002\u7ed3\u679c\u53d1\u73b0\u4e0b\u5728\u6253\u5305\u65f6\u51fa\u73b0\u4e86\u5947\u602a\u7684\u8bed\u6cd5\u9519\u8bef\u201cSyntaxError: Unexpected token\u201d\uff0c\u901a\u8fc7\u5927\u6bb5\u5220\u4ee3\u7801\u7684\u65b9\u5f0f\u603b\u7b97\u5b9a\u4f4d\u5230\u4e00\u4e2a\u6ce8\u91ca\u7684\u95ee\u9898\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[104,105],"class_list":["post-1084","post","type-post","status-publish","format-standard","hentry","category-coding","tag-JavaScript","tag-JS"],"views":2135,"_links":{"self":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts\/1084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/comments?post=1084"}],"version-history":[{"count":0,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts\/1084\/revisions"}],"wp:attachment":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/media?parent=1084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/categories?post=1084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/tags?post=1084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}