You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}).join('') +'\n </ul>\n </dd>\n </dl>\n </section>\n <!-- section end -->\n';
53
+
};
50
54
```
51
55
52
56
```javascript
53
-
// babel => template-string-optimize => uglify
54
-
function(t,e){"use strict";vari=function(t){return"<section><h3>"+t.title+"</h3><div>"+t.date+"</div><dl><dt>Coffee</dt><dt>Black hot drink</dt><dt>Milk</dt><dd><ul>"+t.list.map(function(t){return"<li>"+t+"</li>"}).join("")+"</ul></dd></dl></section>"};
57
+
// source => babel => template-string-optimize
58
+
vartemplate=functiontemplate(data) {
59
+
return'<section><h3>'+data.title+'</h3><div>'+data.date+'</div><dl><dt>Coffee</dt><dt>Black hot drink</dt><dt>Milk</dt><dd><ul>'+data.list.map(function (item) {
!function(t){functione(d){if(i[d])returni[d].exports;varn=i[d]={exports:{},id:d,loaded:!1};returnt[d].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}vari={};returne.m=t,e.c=i,e.p="",e(0)}([function(t,e){"use strict";vari=function(t){return"<section><h3>"+t.title+"</h3><div>"+t.date+"</div><dl><dt>Coffee</dt><dt>Black hot drink</dt><dt>Milk</dt><dd><ul>"+t.list.map(function(t){return"<li>"+t+"</li>"}).join("")+"</ul></dd></dl></section>"};document.body.innerHTML=i({title:"title",date:"2000-01-01",list:["item1","item2","item3"]})}]);
1
+
/******/(function(modules){// webpackBootstrap
2
+
/******/// The module cache
3
+
/******/varinstalledModules={};
4
+
5
+
/******/// The require function
6
+
/******/function__webpack_require__(moduleId){
7
+
8
+
/******/// Check if module is in cache
9
+
/******/if(installedModules[moduleId])
10
+
/******/returninstalledModules[moduleId].exports;
11
+
12
+
/******/// Create a new module (and put it into the cache)
return'<section><h3>'+data.title+'</h3><div>'+data.date+'</div><dl><dt>Coffee</dt><dt>Black hot drink</dt><dt>Milk</dt><dd><ul>'+data.list.map(function(item){
0 commit comments