1 | function process(source) {
|
2 | const res = JSON.stringify(source);
|
3 | return res;
|
4 | }
|
5 |
|
6 |
|
7 | module.exports = function(source, map){
|
8 | this.cacheable && this.cacheable();
|
9 | //对source进行解析
|
10 | var exports = process(source);
|
11 | return "module.exports = " + exports;
|
12 | } |
\ | No newline at end of file |