tmpl-loader
Advanced tools
+5
-1
| module.exports = function(source, map){ | ||
| this.cacheable && this.cacheable(); | ||
| //对source进行解析 | ||
| return 'rgy'; | ||
| var compiled = "var tpl = require('baidutemplate').template;\n"; | ||
| compiled += "module.exports = tpl("; | ||
| compiled += JSON.stringify(source.toString('utf-8')); | ||
| compiled += ");"; | ||
| return compiled; | ||
| } |
+1
-1
| { | ||
| "name": "tmpl-loader", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "Webpack loader for tmpl", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
806
29.79%9
80%