{"id":169776,"date":"2020-10-17T20:35:37","date_gmt":"2020-10-17T12:35:37","guid":{"rendered":"http:\/\/4563.org\/?p=169776"},"modified":"2020-10-17T20:35:37","modified_gmt":"2020-10-17T12:35:37","slug":"%e4%bb%8e-webpack-%e5%88%b0-snowpack-%e7%bc%96%e8%af%91%e9%80%9f%e5%ba%a6%e6%8f%90%e5%8d%87%e5%8d%81%e5%80%8d%e4%bb%a5%e4%b8%8a-trpg-engine-%e8%bf%81%e7%a7%bb%e5%b0%8f%e8%ae%b0","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=169776","title":{"rendered":"\u4ece Webpack \u5230 Snowpack, \u7f16\u8bd1\u901f\u5ea6\u63d0\u5347\u5341\u500d\u4ee5\u4e0a\u2014\u2014TRPG Engine \u8fc1\u79fb\u5c0f\u8bb0"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4ece Webpack \u5230 Snowpack, \u7f16\u8bd1\u901f\u5ea6\u63d0\u5347\u5341\u500d\u4ee5\u4e0a\u2014\u2014TRPG Engine \u8fc1\u79fb\u5c0f\u8bb0               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : moonrailgun <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u539f\u6587\u94fe\u63a5: http:\/\/moonrailgun.com\/posts\/74598ef5\/<\/p>\n<h2>\u52a8\u673a<\/h2>\n<p><code>TRPG Engine<\/code>\u7ecf\u8fc7\u957f\u4e45\u4ee5\u6765\u7684\u8fed\u4ee3\uff0c\u9879\u76ee\u5df2\u7ecf\u663e\u5f97\u975e\u5e38\u81c3\u80bf\u4e86\u3002\u6570\u5206\u949f\u7684\u5168\u91cf\u7f16\u8bd1, \u6bcf\u6b21\u6309\u4e0b\u4fdd\u5b58\u90fd\u4f1a\u89e6\u53d1\u4e00\u6b21<strong>10s<\/strong>\u5230<strong>1m<\/strong>\u4e0d\u7b49\u7684\u589e\u91cf\u7f16\u8bd1\u8ba9\u6211\u82e6\u4e0d\u582a\u8a00, \u5e9e\u5927\u7684\u4f9d\u8d56\u4f7f\u5176\u6bcf\u4e00\u6b21\u7f16\u8bd1\u90fd\u4f1a\u6d89\u53ca\u5f88\u591a\u6587\u4ef6\u548c\u5f88\u591a\u5305\uff0c\u957f\u65f6\u7684\u7f16\u8bd1\u65f6\u95f4\u5927\u5927\u964d\u4f4e\u4e86\u5f00\u53d1\u6548\u7387\u4e0e\u8fed\u4ee3\u901f\u5ea6\u3002<\/p>\n<h2>\u4f18\u5316\u65b9\u5f0f<\/h2>\n<p>\u7ecf\u8fc7\u4e00\u6bb5\u65f6\u95f4\u7684\u8003\u5bdf\uff0c\u6211\u9009\u62e9\u4e86<code>Snowpack<\/code>\u4f5c\u4e3a\u89e3\u51b3\u65b9\u6848\u3002\u4e0e<code>Webpack<\/code>\u4e0d\u540c\u7684\u662f\uff0c\u9664\u4e86\u7b2c\u4e00\u6b21\u7684\u5168\u91cf\u7f16\u8bd1\u4ee5\u5916\uff0c<code>Snowpack<\/code>\u7684\u589e\u91cf\u7f16\u8bd1\u4e0d\u4f1a\u6d89\u53ca\u5230\u5e9e\u5927\u7684<code>node_modules<\/code>\u6587\u4ef6\u5939, \u51c6\u786e\u6765\u8bf4\u53ea\u4f1a\u7f16\u8bd1\u53d8\u66f4\u6587\u4ef6\u672c\u8eab\u3002\u751a\u81f3\u4e8e\u5982\u679c\u6ca1\u6709\u5bf9\u4f9d\u8d56\u8fdb\u884c\u53d8\u66f4\uff0c\u4e0b\u6b21\u7684\u5168\u91cf\u7f16\u8bd1\u4f1a\u76f4\u63a5\u52a8\u7528\u4e4b\u524d\u7f16\u8bd1\u7684\u6587\u4ef6\u7f13\u5b58\uff0c\u4e0d\u9700\u8981\u82b1\u65f6\u95f4\u7b49\u5f85<code>node_modules<\/code>\u7684\u7f16\u8bd1\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u4f1a\u8fd9\u4e48\u5feb\uff1f\u8fd9\u662f\u7531\u4e8e<code>Snowpack<\/code>\u672c\u8eab\u7684\u5b9e\u73b0\u4e0e\u8bbe\u8ba1\u54f2\u5b66\u6709\u5173\u7684\u3002\u76f8\u6bd4<code>Webpack<\/code>, <code>Snowpack<\/code>\u5229\u7528\u4e86\u73b0\u4ee3\u6d4f\u89c8\u5668\u7684\u672c\u8eab\u7684<code>module<\/code>\u7cfb\u7edf\uff0c\u8df3\u8fc7\u590d\u6742\u7684\u6a21\u578b\u4e4b\u95f4\u7684\u7ec4\u7ec7\u7f16\u8bd1\u8fc7\u7a0b\u800c\u53ea\u5173\u6ce8\u4e8e\u53d8\u66f4\u6587\u4ef6\u672c\u8eab\u7684\u7f16\u8bd1\uff0c\u8fd9\u6837\u5f53\u7136\u5feb\u4e86\u3002<\/p>\n<p>\u62ff<code>Snowpack<\/code>\u5b98\u65b9\u7684\u4e00\u5f20\u56fe\u6765\u8bf4: <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201023_5f933d4ee96d1.png\" alt=\"\u4ece Webpack \u5230 Snowpack, \u7f16\u8bd1\u901f\u5ea6\u63d0\u5347\u5341\u500d\u4ee5\u4e0a\u2014\u2014TRPG Engine \u8fc1\u79fb\u5c0f\u8bb0\" \/><\/p>\n<p><code>snowpack<\/code>\u7684\u6700\u5c0f\u7f16\u8bd1\u5355\u4f4d\u662f\u6587\u4ef6\uff0c\u800c<code>webpack<\/code>\u7684\u6700\u5c0f\u7f16\u8bd1\u5355\u4f4d\u4e3a<code>chunk<\/code>, \u800c<code>chunk<\/code>\u8fd8\u9700\u8981\u989d\u5916\u7684\u8ba1\u7b97, \u4e0d\u8bba\u662f\u7f16\u8bd1\u90e8\u5206\u8fd8\u662f\u7f16\u8bd1\u540e\u7684\u7ec4\u88c5\u90e8\u5206\u3002snowpack \u7684\u8bbe\u8ba1\u903b\u8f91\u5929\u751f\u51b3\u5b9a\u4e86\u5979\u7684\u901f\u5ea6\u3002<\/p>\n<p><strong>\u4f18\u5316\u524d(\u4f7f\u7528<code>webpack<\/code>):<\/strong><\/p>\n<p>\u5168\u91cf\u7f16\u8bd1:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201023_5f933d552f592.jpg\" alt=\"\u4ece Webpack \u5230 Snowpack, \u7f16\u8bd1\u901f\u5ea6\u63d0\u5347\u5341\u500d\u4ee5\u4e0a\u2014\u2014TRPG Engine \u8fc1\u79fb\u5c0f\u8bb0\" \/><\/p>\n<p>\u589e\u91cf\u7f16\u8bd1:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201023_5f933d5a9b38f.jpg\" alt=\"\u4ece Webpack \u5230 Snowpack, \u7f16\u8bd1\u901f\u5ea6\u63d0\u5347\u5341\u500d\u4ee5\u4e0a\u2014\u2014TRPG Engine \u8fc1\u79fb\u5c0f\u8bb0\" \/><\/p>\n<p>\u5168\u91cf\u8bf7\u6c42\u7528\u65f6:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201023_5f933d5fed297.jpg\" alt=\"\u4ece Webpack \u5230 Snowpack, \u7f16\u8bd1\u901f\u5ea6\u63d0\u5347\u5341\u500d\u4ee5\u4e0a\u2014\u2014TRPG Engine \u8fc1\u79fb\u5c0f\u8bb0\" \/><\/p>\n<p><strong>\u4f18\u5316\u540e(\u4f7f\u7528<code>snowpack<\/code>):<\/strong><\/p>\n<p>\u5168\u91cf\u7f16\u8bd1:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201023_5f933d65acfcd.jpg\" alt=\"\u4ece Webpack \u5230 Snowpack, \u7f16\u8bd1\u901f\u5ea6\u63d0\u5347\u5341\u500d\u4ee5\u4e0a\u2014\u2014TRPG Engine \u8fc1\u79fb\u5c0f\u8bb0\" \/><\/p>\n<p>\u589e\u91cf\u7f16\u8bd1:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201023_5f933d6a489c8.jpg\" alt=\"\u4ece Webpack \u5230 Snowpack, \u7f16\u8bd1\u901f\u5ea6\u63d0\u5347\u5341\u500d\u4ee5\u4e0a\u2014\u2014TRPG Engine \u8fc1\u79fb\u5c0f\u8bb0\" \/><\/p>\n<p>(\u770b\u4e0d\u5230\u7f16\u8bd1\u7528\u65f6\uff0c\u4f46\u662f\u4f53\u611f\u5728 1s \u5185. \u800c\u4e14\u8be5\u6548\u679c\u5728\u7535\u8111\u8fd0\u884c\u5176\u4ed6\u5e94\u7528\u65f6\u66f4\u52a0\u663e\u8457)<\/p>\n<p>\u5168\u91cf\u8bf7\u6c42\u7528\u65f6:<\/p>\n<ul>\n<li>\n<p>\u4f7f\u7528 http1 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201023_5f933d709532b.jpg\" alt=\"\u4ece Webpack \u5230 Snowpack, \u7f16\u8bd1\u901f\u5ea6\u63d0\u5347\u5341\u500d\u4ee5\u4e0a\u2014\u2014TRPG Engine \u8fc1\u79fb\u5c0f\u8bb0\" \/><\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528 http2 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201023_5f933d767d0c7.jpg\" alt=\"\u4ece Webpack \u5230 Snowpack, \u7f16\u8bd1\u901f\u5ea6\u63d0\u5347\u5341\u500d\u4ee5\u4e0a\u2014\u2014TRPG Engine \u8fc1\u79fb\u5c0f\u8bb0\" \/><\/p>\n<\/li>\n<\/ul>\n<p><em>\u4ee5\u4e0a\u6d4b\u8bd5\u662f\u4fdd\u8bc1\u7535\u8111\u5728\u7a7a\u95f2\u65f6\u95f4\uff0c\u4e14\u4fdd\u5b58\u4e0e\u64cd\u4f5c\u5185\u5bb9\u4e3a\u540c\u4e00\u6587\u4ef6<\/em><\/p>\n<p><em>\u8be5\u7528\u65f6\u5df2\u7ecf\u662f\u5e73\u65f6\u64cd\u4f5c\u7684\u6700\u5feb\u65f6\u95f4\uff0c\u4e3a\u6b64\u6211\u7684 MBR \u91cd\u542f\u4e86\u4e00\u6b21\u5f3a\u5236\u6e05\u7a7a\u4e86 swap \u7a7a\u95f4, \u5b9e\u9645\u8868\u73b0\u4f1a\u66f4\u52a0\u663e\u8457<\/em><\/p>\n<p><em>\u56e0\u4e3a\u6587\u4ef6\u4f9d\u8d56\u4e8e\u6d4f\u89c8\u5668\u7684\u8017\u65f6\uff0c\u800c\u6d4f\u89c8\u5668\u9700\u8981\u4e32\u884c\u8bf7\u6c42\u4f9d\u8d56\uff0c\u56e0\u6b64\u8017\u65f6\u4f1a\u66f4\u52a0\u957f<\/em><\/p>\n<p><em>\u4f46\u5b9e\u9645\u4f7f\u7528\u4e2d\u4f7f\u7528 snowpack \u4f1a\u66f4\u52a0\u4f18\u79c0\u3002\u56e0\u4e3a\u5176\u76f8\u6bd4 webpack \u4f1a\u5927\u5927\u8282\u7ea6\u7535\u8111\u8d44\u6e90\u3002\u5728 webpack \u7f16\u8bd1\u65f6\u4f1a\u5360\u7528\u5927\u91cf\u7684\u7535\u8111\u8d44\u6e90\uff0c\u4f1a\u5f71\u54cd\u5230\u5176\u4ed6\u64cd\u4f5c<\/em><\/p>\n<h2>\u9047\u5230\u7684\u5751\u4e0e\u89e3\u51b3\u65b9\u6848<\/h2>\n<p><code>TRPG Engine<\/code>\u7b97\u662f\u975e\u5e38\u7ecf\u5178\u7684<code>Webpack<\/code>\u5e94\u7528\u4e86, \u4f7f\u7528\u4e86\u5404\u79cd Loader \u3002\u5149\u901a\u7528\u914d\u7f6e\u5c31\u6709 250+\u884c\uff0c\u5404\u79cd\u4f18\u5316\u914d\u7f6e\uff0c\u5404\u79cd alias \u3002\u7b49\u7b49\u957f\u65f6\u95f4\u8fed\u4ee3\u79ef\u6512\u4e0b\u6765\u7684\u914d\u7f6e\uff0c\u56e0\u6b64\u6beb\u4e0d\u610f\u5916\u7684\u4f1a\u9047\u5230\u5f88\u591a\u95ee\u9898\u4e0e\u5751\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u6211\u9047\u5230\u7684\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848:<\/p>\n<ul>\n<li>\u95ee\u9898 1:\n<ul>\n<li>\u5165\u53e3\u6587\u4ef6\u4f7f\u7528\u7684\u662fHtmlwebpackPlugin\u7f16\u8bd1\u7684<code>handlebars<\/code>\u6587\u4ef6\uff0c\u800c snowpack \u4e0d\u652f\u6301<code>handlebars<\/code>\u6587\u4ef6\u4f5c\u4e3a\u5165\u53e3<\/li>\n<li>\u89e3\u51b3\u65b9\u6848\uff1a\u91cd\u5199\u4e00\u4e2a<code>snowpack<\/code>\u4e13\u7528\u7684\u5165\u53e3\u6587\u4ef6\u3002\u4f7f\u7528<code>handlebars<\/code>\u4e3b\u8981\u89e3\u51b3\u7684\u662f dll \u7684\u95ee\u9898\uff0c<code>snowpack<\/code>\u4e0d\u9700\u8981\u5904\u7406\u8fd9\u90e8\u5206\u7684\u4f18\u5316\u56e0\u6b64\u76f4\u63a5\u8df3\u8fc7<\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 2:\n<ul>\n<li><code>snowpack<\/code>\u52a0\u8f7d\u6587\u4ef6\u7b56\u7565\u4e0e node \u4e0d\u540c\u3002\u6709\u540c\u540d\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u4f1a\u4f18\u5148\u4f7f\u7528\u6587\u4ef6\u5939\u7684 index.js \u4f5c\u4e3a\u8def\u5f84\u89e3\u6790\u3002\u5177\u4f53\u770b\u73b0\u8c61\u53ef\u4ee5\u53c2\u8003\u8fd9\u4e2a\u8ba8\u8bba: https:\/\/github.com\/snowpackjs\/snowpack\/discussions\/1320<\/li>\n<li>\u89e3\u51b3\u65b9\u6848\uff1a\u6539\u540d\u5b57\uff0c\u8ba9\u6587\u4ef6\u5939\u4e0e\u6587\u4ef6\u540d\u4e0d\u4f1a\u51fa\u73b0\u91cd\u590d\u3002\u5305\u62ec\u540c\u540d\u4f46\u662f\u5927\u5c0f\u5199\u4e0d\u540c\u7684\u95ee\u9898\uff0c\u56e0\u4e3a\u5e95\u5c42\u662f<code>node<\/code>\u7684<code>fs.stat<\/code>\u5b9e\u73b0\uff0c\u5728\u5927\u5c0f\u5199\u654f\u611f\u7684\u7cfb\u7edf\u4e0b\u4f9d\u65e7\u4f1a\u89c6\u4e3a\u540c\u540d<\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 3:\n<ul>\n<li><code>TRPG Engine<\/code>\u4e0d\u4f46\u6709 web \u7aef\uff0c\u8fd8\u6709<code>react-native<\/code>\u7aef\uff0c\u800c<code>react-native<\/code>\u662f\u65e0\u6cd5\u88ab\u6b63\u5e38\u89e3\u6790\u7684\u3002\u6211\u53ea\u60f3\u8981\u5904\u7406 web \u7aef\u7684\u5f00\u53d1\u73af\u5883\u4f7f\u7528<code>snowpack<\/code>\u4f18\u5316\u5f00\u53d1\u4f53\u9a8c<\/li>\n<li>\u89e3\u51b3\u65b9\u6848: <code>exclude<\/code>\u914d\u7f6e\u624b\u52a8\u8fc7\u6ee4<\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 4:\n<ul>\n<li>tspath \u4e0d\u652f\u6301\uff0c\u867d\u7136\u6709\u4e86<code>@snowpack\/plugin-typescript<\/code>\u4f46\u662f\u4e0d\u652f\u6301 tspath \u3002<\/li>\n<li>\u89e3\u51b3\u65b9\u6848: \u624b\u52a8\u5199\u4e86\u4e00\u4e2a\u81ea\u52a8\u89e3\u6790\u7684\u903b\u8f91\u5c06\u5176\u53d8\u6210\u5bf9\u5e94\u7684alias\u52a0\u5230\u914d\u7f6e\u4e0a<\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 5:\n<ul>\n<li>\u5728 css \u4e2d\u5f15\u5165\u4e86\u5b57\u4f53\u6587\u4ef6\uff0c\u4f46\u662f\u65e0\u6cd5\u6b63\u5e38\u52a0\u8f7d\u3002\u56e0\u4e3a snowpack \u65e0\u6cd5\u6b63\u786e\u8bc6\u522b url \u6307\u5b9a\u7684\u8d44\u6e90\u5e76\u5c06\u5176\u6253\u5305(webpack \u662f\u4f7f\u7528<code>css-loader<\/code>\u6765\u5b9e\u73b0\u7684)<\/li>\n<li>\u89e3\u51b3\u65b9\u6848:\n<pre><code>scripts: {   'mount:font': 'mount src\/web\/assets\/fonts --to \/main\/fonts', }, <\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 6::\n<ul>\n<li>\u5bf9\u4e8e\u4e00\u4e9b\u7279\u6b8a\u7684\u5199\u6cd5\u6211\u4e0d\u60f3\u5f71\u54cd webpack \u7684\u5b9e\u73b0\u4f46\u662f<code>snowpack<\/code>\u4e0d\u652f\u6301\u8fd9\u79cd\u5199\u6cd5\u3002\u6bd4\u5982\u4f7f\u7528<code>externals<\/code>\u5b9e\u73b0\u7684\u914d\u7f6e\u5f15\u5165, \u6bd4\u5982DefinePlugin\u5b9e\u73b0\u7684<code>process.env<\/code>(\u5728 snowpack \u4e2d\u5fc5\u987b\u4f7f\u7528<code>import.meta.env<\/code>), \u518d\u6bd4\u5982<code>require<\/code>\u7684\u4f7f\u7528<\/li>\n<li>\u89e3\u51b3\u65b9\u6848: \u6211\u5b9e\u73b0\u4e86\u4e00\u4e2asnowpack-plugin-replace\u63d2\u4ef6\u7528\u4e8e\u5c06\u8fd9\u4e9b\u4e1c\u897f\u5168\u90e8\u66ff\u6362\u6210\u6211\u60f3\u8981\u7684\u4ee3\u7801\u3002\u5177\u4f53\u4f7f\u7528\u5982\u4e0b:\n<pre><code>[   'snowpack-plugin-replace',   {     list: [       {         from: \/process.env\/g,         to: 'import.meta.env',       },       {         from: `require(\"..\/..\/package.json\").version`,         to: '\"0.0.0\"',       },       {         from: `const resBundle = require(\"i18next-resource-store-loader!.\/langs\/index.js\");`,         to: 'import resBundle from \".\/langs\/zh-CN\/translation.json\"',       },       {         from: 'import Config from \"config\";',         to: `const Config = ${JSON.stringify({           sentry: require('config').get('sentry'),         })};`,       },     ],   }, ], <\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 7:\n<ul>\n<li>rollup \u629b\u51fa\u65e0\u6cd5\u89e3\u6790<code>this<\/code>\u7684\u8b66\u544a<\/li>\n<li>\u89e3\u51b3\u65b9\u6848: \u4f7f\u7528 context \u6307\u5411 window \u6765\u79fb\u9664\u8b66\u544a\n<pre><code>installOptions: {   rollup: {     context: 'window',   }, }, <\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 8:\n<ul>\n<li>snowpack \u6253\u5305\u76ee\u6807\u8def\u5f84\u4e0e\u539f\u6709\u7684 build \u6587\u4ef6\u5939\u51b2\u7a81<\/li>\n<li>\u89e3\u51b3\u65b9\u6848: \u4fee\u6539\u8f93\u51fa\u76ee\u5f55\u4e3a<code>.snowpack<\/code>\u5e76\u5728 gitignore \u4e2d\u6dfb\u52a0\u8be5\u6587\u4ef6\u5939\n<pre><code>devOptions: {   out: '.snowpack', }, <\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 9:\n<ul>\n<li>\u4f7f\u7528<code>@snowpack\/plugin-typescript<\/code>\u5185\u90e8\u5305\u5bf9\u5168\u5c40\u53d8\u91cf\u7684\u58f0\u660e\u4f1a\u51fa\u73b0\u91cd\u590d\u58f0\u660e\u7684\u62a5\u9519<\/li>\n<li>\u89e3\u51b3\u65b9\u6848: <code>tsconfig<\/code>\u7684<code>\"skipLibCheck\": true<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 10:\n<ul>\n<li>\u73b0\u6709\u7684\u4f9d\u8d56\u9700\u8981<code>@babel\/plugin-transform-runtime<\/code>\u63d0\u4f9b\u7684<code>helpers<\/code>\u4f5c\u4e3a\u5168\u5c40\u4f9d\u8d56<\/li>\n<li>\u89e3\u51b3\u65b9\u6848: \u7ecf\u68c0\u67e5\u662f\u7528\u5230\u4e86<code>regenerator<\/code>\u529f\u80fd\uff0c\u624b\u52a8\u5b89\u88c5<code>regenerator-runtime<\/code>\u5e76\u5728\u5305\u524d\u5f15\u5165<code>import 'regenerator-runtime\/runtime';<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 11:\n<ul>\n<li>\u90e8\u5206\u4f9d\u8d56\u5728\u5176\u4e2d\u90e8\u5206\u4ee3\u7801\u4f7f\u7528\u4e86<code>require<\/code>\u4f5c\u4e3a\u5f15\u5165\u65b9\u5f0f, \u800c<code>snowpack<\/code>\u65e0\u6cd5\u6b63\u786e\u5904\u7406<code>require<\/code><\/li>\n<li>\u89e3\u51b3\u65b9\u6848: \u68c0\u67e5\u540e\u53d1\u73b0\u90fd\u5df2\u7ecf\u4fee\u6539\u3002\u5347\u7ea7\u4f9d\u8d56\u5230\u6700\u65b0\u7248\u5373\u53ef<\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898 12:\n<ul>\n<li>\u5728\u4f7f\u7528 less \u7684 import \u903b\u8f91\u65e0\u6cd5\u6b63\u5e38\u8fd0\u884c\uff0c\u8fd9\u662f\u7531\u4e8e<code>snowpack<\/code>\u7684\u5177\u4f53\u5b9e\u73b0\u51b3\u5b9a\u7684\u3002<\/li>\n<li>\u6682\u65f6\u65e0\u6cd5\u89e3\u51b3\uff0c\u4f7f\u7528<code>snowpack-plugin-replace<\/code>\u5c06\u5176\u66ff\u6362\u4e3a css \u6587\u4ef6\u5bfc\u5165\u4f5c\u4e3a\u4e34\u65f6\u89e3\u51b3\u65b9\u6848, \u89c1\u8ba8\u8bba: Github<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u603b\u7ed3<\/h2>\n<p>Snowpack \u867d\u7136\u4f5c\u4e3a\u4e00\u4e2a\u65b0\u5174\u7684\u6253\u5305\u5de5\u5177\uff0c\u76ee\u524d\u5c1a\u4e0d\u662f\u975e\u5e38\u5b8c\u5584, \u529f\u80fd\u4e5f\u6ca1\u6709 webpack \u8fd9\u6837\u4e30\u5bcc\u4e0e\u9f50\u5168\u3002\u4f46\u662f\u5b83\u7684\u65b0\u7684\u6253\u5305\u8bbe\u8ba1\u5bf9\u4e8e\u6709\u4e00\u5b9a\u89c4\u6a21\u7684\u524d\u7aef\u5e94\u7528\u8fd8\u662f\u975e\u5e38\u4f18\u79c0\u7684\u3002\u80fd\u6781\u5927\u63d0\u5347\u5f00\u53d1\u6548\u7387\u3002\u4e0d\u5931\u4e3a\u4e00\u79cd\u597d\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5f53\u7136\u6700\u540e\u8f93\u51fa\u8fd8\u662f\u9700\u8981\u4f7f\u7528 webpack \u5bf9\u5176\u8fdb\u884c\u4e00\u5b9a\u7684\u4f18\u5316\uff0c\u6bd5\u7adf\u539f\u751f\u7684 module \u652f\u6301\u76ee\u524d\u6d4f\u89c8\u5668\u7684\u652f\u6301\u5ea6\u8fd8\u6ca1\u6709\u8fbe\u5230\u8986\u76d6\u4e00\u4e2a\u7406\u60f3\u7684\u5730\u6b65https:\/\/caniuse.com\/es6-module<\/p>\n<p>\u6700\u540e\u8fd9\u662f\u6211\u6700\u540e\u63d0\u4ea4\u7684pr<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>16<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3832848\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Immortal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf4\u5b9e\u8bdd\u770b\u5230\u4e0b\u9762\u8fd9\u4e48\u591a\u9047\u5230\u7684\u95ee\u9898 \u8fd8\u662f\u4fdd\u6301\u89c2\u671b <br \/>\u4e0d\u8fc7\u6da8\u59ff\u52bf\u4e86 \u4e4b\u524d\u53ea\u77e5\u9053 esbuild \u624d\u77e5\u9053\u8fd8\u6709 Snowpack                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832849\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : love <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0a\u6b21\u6211\u4e5f\u4e00\u987f\u731b\u64cd\u6362\u6210\u8fd9\u4e2a\uff0c\u78b0\u5230\u4e00\u5806\u95ee\u9898\uff0c\u540e\u6765\u53c8\u9000\u56de\u53bb\u4e86\u3002\u5370\u8c61\u4e2d\u8fd8\u6709 commonjs \u683c\u5f0f\u5bfc\u51fa\u7684\u6a21\u5757\u4e5f\u662f\u4e0d\u80fd\u7528\u7684\u3002\u611f\u89c9\u8fd8\u662f\u8981\u7b49\u4e2a\u4e00\u5e74\u5404\u4e2a\u6a21\u5757\u517c\u5bb9\u6027\u4e0a\u53bb\u4e4b\u540e\u518d\u6362\u6bd4\u8f83\u5408\u9002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832850\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : felixin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u5c31\u6ca1\u6709 typescript \u7c7b\u578b\u68c0\u67e5\u4e86\u5427\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832851\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : codermagefox <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Webpack \u6362 Parcel \u90a3\u4e00\u6ce2\u5df2\u7ecf\u51b2\u8fc7\u4e86.\u7ed3\u679c\u5f88\u5931\u671b.<\/p>\n<p>\u73b0\u5728\u78b0\u5230\u6240\u6709\u65b0\u4e1c\u897f\u90fd\u5148\u89c2\u671b\u89c2\u671b\u4e86.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832852\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : moonrailgun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @felixin \u6709\u7684\u3002\u53ef\u4ee5\u9009\u62e9 babel \u63d2\u4ef6\u7684 ts \u6a21\u5757\u6216\u8005 typescript \u63d2\u4ef6(\u53ea\u80fd\u4e8c\u9009\u4e00)<\/p>\n<p>\u4f7f\u7528 typescript \u63d2\u4ef6\u7684\u7684\u8bdd\u5176\u5b9e\u5c31\u662f\u540e\u53f0\u8fd0\u884c\u4e00\u4e2a tsc \u7684 watch \u6a21\u5f0f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832853\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : moonrailgun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @codermagefox parcel \u672c\u8d28\u6ca1\u6709\u592a\u5927\u7684\u53d8\u5316\uff0c\u53cd\u800c\u5c11\u4e86 webpack \u7684\u5927\u91cf\u914d\u7f6e\u5e26\u6765\u7684\u4f18\u52bf\u4e0e\u52a3\u52bf\u3002<\/p>\n<p>\u6211\u6362 snowpack \u76ee\u7684\u662f\u4e3a\u4e86\u63d0\u5347\u5f00\u53d1\u4f53\u9a8c\u3002\u6211\u73b0\u5728\u6309\u4e00\u6b21\u4fdd\u5b58\u6309\u94ae\u7535\u8111\u5341\u51e0\u79d2\u4e0d\u80fd\u52a8 ide \u4e5f\u6ca1\u6709\u63d0\u793a\u3002\u7b97\u662f\u6bd4\u8f83\u6709\u76ee\u7684\u6027\u7684\u3002<\/p>\n<p>\u751f\u4ea7\u73af\u5883\u8fd8\u662f\u4f1a\u4f7f\u7528 webpack \u8fdb\u884c\u4ee3\u7801\u7684\u4f18\u5316\u4e0e\u7f16\u6392\u3002\u76ee\u524d\u5c1a\u6ca1\u6709\u5230\u53ef\u4ee5\u5b8c\u5168\u66ff\u6362\u7684\u5730\u6b65                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832854\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : codermagefox <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @moonrailgun #6 \u55ef.\u6211\u4e00\u5411\u8ba4\u540c\u65b0\u5de5\u5177\u7684\u4f18\u52bf,\u4f46\u662f\u5927\u90e8\u5206\u7684\u6210\u719f\u7a0b\u5ea6\u90fd\u6ca1\u6709\u5230\u652f\u6491\u5927\u578b\u9879\u76ee\u7684\u7a0b\u5ea6.\u6211\u4e2a\u4eba\u535a\u5ba2\u7528 Gatsby,\u4f46\u662f\u516c\u53f8\u9879\u76ee\u6211\u8fde TS \u90fd\u6ca1\u4e0a.\u4e0d\u60f3\u6316\u5751\u7ed9\u81ea\u5df1\u586b,\u6240\u4ee5\u8fd8\u662f\u7b97\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832855\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : moonrailgun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @love \u51e0\u4e2a\u6708\u524d\u6211\u4e5f\u8bd5\u8fc7\u3002\u4e5f\u662f\u4e00\u5806\u95ee\u9898\uff0c\u6539\u4e86\u6539\u6e90\u7801\u4e5f\u6ca1\u6cd5\u89e3\u51b3\u5dee\u592a\u591a\u4e86\uff0c\u5c31\u6ca1\u7ee7\u7eed\u641e\u3002\u6700\u8fd1\u91cd\u65b0\u5f04\u4e86\u4e00\u4e0b\u53d1\u73b0\u8fd8\u662f\u6709\u70b9\u76fc\u5934\u7684\u3002\u867d\u7136\u9047\u5230\u4e00\u5806\u95ee\u9898\u4f46\u662f\u57fa\u672c\u4e0a\u90fd\u89e3\u51b3\u6216\u8005\u627e\u5230\u66ff\u4ee3\u65b9\u6848\u3002<\/p>\n<p>\u505a\u5927\u52a8\u4f5c\u524d\u4e00\u5b9a\u8981\u5206\u5206\u652f\uff0c\u8fd9\u6837\u4e07\u4e00\u641e\u4e0d\u6210\u76f4\u63a5\u6254\u4e86\u5c31\u597d\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832856\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : moonrailgun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @codermagefox \u516c\u53f8\u9879\u76ee\u8fd8\u662f\u8c28\u614e\u4e00\u70b9\u6bd4\u8f83\u597d\u3002\u6bd5\u7adf\u4e0d\u540c\u4eba\u4e0d\u65ad\u8fed\u4ee3\u4e0b\u80af\u5b9a\u4f1a\u51fa\u73b0\u5f88\u591a\u5947\u5947\u602a\u602a\u7684 magic\uff0c\u5982\u679c\u662f\u4e2a\u4eba\u9879\u76ee\u80fd\u591f\u63a7\u5236\u5168\u5c40\uff0c\u6211\u89c9\u5f97\u8fd8\u662f\u53ef\u4ee5\u8003\u8651\u5b9e\u9645\u6839\u636e\u60c5\u51b5\u5c1d\u8bd5\u4e00\u4e0b\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832857\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nnnToTnnn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u548c webpack5 \u6bd4\u8f83\u600e\u4e48\u6837\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832858\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zy445566 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u662f\u7528\u4ece webpack \u6362\u6210\u4e86 rollup\uff0c\u901f\u5ea6\u4e5f\u662f\u5feb\u4e86\u5f88\u591a\uff0chttps:\/\/github.com\/zy445566\/before-server\/commit\/4d61a3b0c8464eb8d08605178fdaebc703db7599                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832859\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hewelzei <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u5927\u91cf\u5e93\u53ca\u5176\u4f9d\u8d56\u5e93\u4f7f\u7528 CommonJS \u5bfc\u5165\u5bfc\u51fa\uff0c\u8fd9\u5757\u662f\u6700\u96be\u89e3\u51b3\u7684\u3002\u5c31\u7b97\u6709\u4e00\u76f4\u6d3b\u8dc3\u7684\u5e93\u4fee\u6539\u4e3a ESModule\uff0c \u4fdd\u4e0d\u9f50\u4e0a\u7ea7\u6df1\u5c42\u7684\u67d0\u4e2a\u4f9d\u8d56\u4e07\u5e74\u4e0d\u4fee\uff0c\u4f9d\u65e7\u7528\u7684 CommonJS\uff0c\u90a3 Snowpack \u5c31\u6ca1\u6cd5\u7528\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832860\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yl14786922106 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             vue3 \u7684\u8bdd\u53ef\u4ee5\u76f4\u63a5 vite \u4e86 \u4e0d\u8fc7\u8e29\u4e86\u8fd9\u4e48\u591a\u5751 \u53ef\u4ee5\u6536\u85cf \u4ee5\u540e \u81ea\u5df1\u73a9\u7684\u65f6\u5019 \u53ef\u4ee5\u6765\u770b\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832861\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : moonrailgun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hewelzei <br \/>snowpack \u5185\u90e8\u901a\u8fc7 rollup \u6765\u5b9e\u73b0\u6253\u5305\u3002\u901a\u8fc7 commonjs-plugin \u5b9e\u73b0\u5bf9 commonjs \u683c\u5f0f\u7684\u517c\u5bb9<\/p>\n<p>\u5177\u4f53\u89c1: https:\/\/github.com\/snowpackjs\/snowpack\/blob\/d90a1fb8a080bfe32e7283d87063381cd97f48bb\/esinstall\/src\/index.ts#L383-L387<\/p>\n<p>\u4e0d\u8fc7\u5b9e\u9645\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u5982\u679c\u4f9d\u8d56\u4f7f\u7528\u4e86\u884c\u5185 require \u4f1a\u65e0\u6cd5\u6b63\u5e38\u6267\u884c\u3002\u6211\u7684\u5b9e\u9645 case \u4e2d\u9047\u5230\u4e86\u4e24\u5904\u3002\u7ffb\u9605\u4ee3\u7801\u53d1\u73b0\u5df2\u7ecf\u88ab\u4fee\u590d\u4e86\u56e0\u6b64\u5347\u7ea7\u5c31\u89e3\u51b3\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832862\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hewelzei <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @moonrailgun \u6211\u9047\u5230\u4e00\u5904\u884c\u5185 require \u7684\u95ee\u9898\uff0c\u67e5\u770b\u4f9d\u8d56\u4ee3\u7801\uff0c\u53d1\u73b0\u4e0d\u4e88\u89e3\u51b3\uff0c\u90a3\u5c31\u65e0\u89e3\u4e86\u3002\u6709\u8fd9\u7c7b\u95ee\u9898\u7684\u80af\u5b9a\u4e0d\u6b62\u4e00\u4e2a\u5305\uff0c\uff0c\u800c\u4e14\u8fd9\u95ee\u9898\u770b\u4f3c\u7b80\u5355\uff0c\u4e00\u65e6\u51fa\u73b0\uff0c\u4f60\u7684\u5f00\u53d1\u73af\u5883\u5c31\u8d77\u4e0d\u6765\u4e86\u3002<br \/>https:\/\/github.com\/antvis\/g\/pull\/598                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3832863\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : moonrailgun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hewelzei \u8fd9\u4e2a\u4e0d\u662f\u884c\u5185 require \u7684\u95ee\u9898\uff0c\u800c\u662f\u5728 esmodule \u4e2d\u4f7f\u7528 commonjs \u7684\u8bed\u6cd5\u5f15\u5165\u4e86\u4e00\u4e2a json \u5185\u5bb9\u7684\u95ee\u9898\u3002<\/p>\n<p>\u6309\u7167\u6807\u51c6\u6765\u8bf4\u8fd9\u79cd\u884c\u4e3a\u5c5e\u4e8e\u6df7\u7528\uff0c\u7edf\u4e00\u4f7f\u7528 esmodule \u6216\u8005\u7edf\u4e00\u4f7f\u7528 commonjs \u90fd\u4e0d\u4f1a\u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<p>\u6211\u89c9\u5f97\u4e0d\u652f\u6301\u6807\u51c6\u884c\u4e3a\u5c5e\u4e8e\u6b63\u5e38\u64cd\u4f5c\u3002\u672c\u8d28\u4e0a\u6765\u8bf4\u5185\u90e8\u7684 rollup \u6ca1\u6709\u5904\u7406\u8fd9\u79cd\u60c5\u51b5\uff0csnowpack \u81ea\u8eab\u4e5f\u4e0d\u4f1a\u53bb\u5904\u7406\uff0c\u4e5f\u5c31 webpack \u8fd9\u79cd\u5927\u800c\u5168\u7684\u4f1a\u8003\u8651\u65b9\u65b9\u9762\u9762\u517c\u5bb9\u4e00\u5207 case\u2014\u2014\u8fd9\u4e5f\u662f webpack \u663e\u5f97\u81c3\u80bf\u7684\u539f\u56e0                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece Webpack \u5230 Snowp&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\/169776"}],"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=169776"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/169776\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169776"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}