{"id":28007,"date":"2024-11-24T13:52:49","date_gmt":"2024-11-24T05:52:49","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28007\/"},"modified":"2024-11-24T13:52:49","modified_gmt":"2024-11-24T05:52:49","slug":"%e5%b0%8f%e5%85%ac%e5%8f%b8%e5%a6%82%e4%bd%95%e9%ab%98%e6%95%88%e6%9e%84%e5%bb%ba%e4%b8%93%e5%b1%9e%e4%b8%9a%e5%8a%a1%e7%bb%84%e4%bb%b6%e5%ba%93%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28007\/","title":{"rendered":"\u5c0f\u516c\u53f8\u5982\u4f55\u9ad8\u6548\u6784\u5efa\u4e13\u5c5e\u4e1a\u52a1\u7ec4\u4ef6\u5e93\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173137932438195.jpg\" class=\"aligncenter\" title=\"\u5c0f\u516c\u53f8\u5982\u4f55\u9ad8\u6548\u6784\u5efa\u4e13\u5c5e\u4e1a\u52a1\u7ec4\u4ef6\u5e93\uff1f\u63d2\u56fe\" alt=\"\u5c0f\u516c\u53f8\u5982\u4f55\u9ad8\u6548\u6784\u5efa\u4e13\u5c5e\u4e1a\u52a1\u7ec4\u4ef6\u5e93\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5c0f\u516c\u53f8\u7684\u4e1a\u52a1\u7ec4\u4ef6\u5e93\u5f00\u53d1\u7b56\u7565<\/strong><\/p>\n<p>\u5bf9\u4e8e\u5c0f\u516c\u53f8\u800c\u8a00\uff0c\u6253\u9020\u4e00\u4e2a\u4e13\u5c5e\u7684\u4e1a\u52a1\u7ec4\u4ef6\u5e93\u662f\u4e00\u9879\u503c\u5f97\u8003\u8651\u7684\u4e3e\u63aa\u3002\u7136\u800c\uff0c\u5728\u7740\u624b\u5f00\u53d1\u4e4b\u524d\uff0c\u6709\u5fc5\u8981\u5398\u6e05\u4ee5\u4e0b\u5173\u952e\u95ee\u9898\uff1a<\/p>\n<p><strong> vs. \u4e8c\u6b21\u5c01\u88c5<\/strong><\/p>\n<p>\u4e8c\u6b21\u5f00\u53d1\u610f\u5473\u7740\u5728\u6df1\u5165\u4e86\u89e3 ElementUI \u6e90\u4ee3\u7801\u7684\u57fa\u7840\u4e0a\uff0c\u8fdb\u884c\u4fee\u6539\u6216\u589e\u52a0\u529f\u80fd\u3002\u5982\u679c\u56e2\u961f\u6210\u5458\u5bf9 ElementUI \u5341\u5206\u719f\u6089\u4e14\u9700\u8981\u5927\u5e45\u5ea6\u4fee\u6539\uff0c\u53ef\u4ee5\u9009\u62e9\u6b64\u65b9\u6848\u3002\u53cd\u4e4b\uff0c\u5efa\u8bae\u91c7\u7528\u4e8c\u6b21\u5c01\u88c5\uff0c\u65e2\u7701\u5fc3\u53c8\u7701\u529b\u3002<\/p>\n<p><strong>\u6253\u5305\u5de5\u5177\uff1awebpack vs. rollup<\/strong><\/p>\n<p>\u6253\u5305\u7ec4\u4ef6\u5e93\u65f6\uff0crollup \u662f\u4e00\u4e2a\u503c\u5f97\u8003\u8651\u7684\u5de5\u5177\u3002\u5176\u8f7b\u91cf\u5316\u3001\u6e05\u6670\u7684\u6253\u5305\u7ed3\u6784\u4ee5\u53ca\u5bf9 tree-shaking \u548c\u4f9d\u8d56\u89e3\u6790\u7684\u652f\u6301\u4f7f\u5176\u6210\u4e3a\u6253\u9020\u7ec4\u4ef6\u5e93\u7684\u7406\u60f3\u4e4b\u9009\u3002<\/p>\n<p>\u7efc\u4e0a\uff0c\u5bf9\u4e8e\u5c0f\u516c\u53f8\u800c\u8a00\uff0c\u4e8c\u6b21\u5c01\u88c5 ElementUI \u518d\u642d\u914d rollup \u8fdb\u884c\u6253\u5305\u662f\u4e00\u4e2a\u8f83\u4e3a\u660e\u667a\u7684\u9009\u62e9\uff0c\u5176\u6210\u672c\u4f4e\u3001\u6548\u7387\u9ad8\uff0c\u80fd\u5feb\u901f\u6784\u5efa\u51fa\u6ee1\u8db3\u9700\u6c42\u7684\u4e1a\u52a1\u7ec4\u4ef6\u5e93\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5c0f\u516c\u53f8\u5982\u4f55\u9ad8\u6548\u6784\u5efa\u4e13\u5c5e\u4e1a\u52a1\u7ec4\u4ef6\u5e93\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u516c\u53f8\u7684\u4e1a\u52a1\u7ec4\u4ef6\u5e93\u5f00\u53d1\u7b56\u7565 \u5bf9\u4e8e\u5c0f\u516c\u53f8\u800c\u8a00\uff0c\u6253\u9020\u4e00\u4e2a\u4e13\u5c5e\u7684\u4e1a\u52a1\u7ec4\u4ef6\u5e93\u662f\u4e00\u9879\u503c\u5f97\u8003\u8651\u7684\u4e3e\u63aa\u3002\u7136\u800c\uff0c\u5728\u7740\u624b\u5f00\u53d1\u4e4b\u524d\uff0c\u6709\u5fc5\u8981\u5398\u6e05\u4ee5\u4e0b\u5173\u952e\u95ee\u9898\uff1a vs. \u4e8c\u6b21\u5c01\u88c5 \u4e8c\u6b21\u5f00\u53d1\u610f\u5473\u7740\u5728\u6df1\u5165\u4e86\u89e3 ElementUI \u6e90\u4ee3\u7801\u7684\u57fa\u7840\u4e0a\uff0c\u8fdb\u884c\u4fee\u6539\u6216\u589e\u52a0\u529f\u80fd\u3002\u5982\u679c\u56e2\u961f\u6210\u5458\u5bf9 ElementUI \u5341\u5206\u719f\u6089\u4e14\u9700\u8981\u5927\u5e45\u5ea6\u4fee\u6539\uff0c\u53ef\u4ee5\u9009\u62e9\u6b64\u65b9\u6848\u3002\u53cd\u4e4b\uff0c\u5efa\u8bae\u91c7\u7528\u4e8c\u6b21\u5c01\u88c5\uff0c\u65e2\u7701\u5fc3\u53c8\u7701\u529b\u3002 \u6253\u5305\u5de5\u5177\uff1awebpack vs. rollup \u6253\u5305\u7ec4\u4ef6\u5e93\u65f6\uff0crollup \u662f\u4e00\u4e2a\u503c\u5f97\u8003\u8651\u7684\u5de5\u5177\u3002\u5176\u8f7b\u91cf\u5316\u3001\u6e05\u6670\u7684\u6253\u5305\u7ed3\u6784\u4ee5\u53ca\u5bf9 tree-shaking \u548c\u4f9d\u8d56\u89e3\u6790\u7684\u652f\u6301\u4f7f\u5176\u6210\u4e3a\u6253\u9020\u7ec4\u4ef6\u5e93\u7684\u7406\u60f3\u4e4b\u9009\u3002 \u7efc\u4e0a\uff0c\u5bf9\u4e8e\u5c0f\u516c\u53f8\u800c\u8a00\uff0c\u4e8c\u6b21\u5c01\u88c5 ElementUI \u518d\u642d\u914d rollup \u8fdb\u884c\u6253\u5305\u662f\u4e00\u4e2a\u8f83\u4e3a\u660e\u667a\u7684\u9009\u62e9\uff0c\u5176\u6210\u672c\u4f4e\u3001\u6548\u7387\u9ad8\uff0c\u80fd\u5feb\u901f\u6784\u5efa\u51fa\u6ee1\u8db3\u9700\u6c42\u7684\u4e1a\u52a1\u7ec4\u4ef6\u5e93\u3002 \u4ee5\u4e0a\u5c31\u662f\u5c0f\u516c\u53f8\u5982\u4f55\u9ad8\u6548\u6784\u5efa\u4e13\u5c5e\u4e1a\u52a1\u7ec4\u4ef6\u5e93\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-28007","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=28007"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28007\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}