baidu-template-loader
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -9,4 +9,6 @@ /** | ||
var baiduTplEngine = require('baidutemplate-x').template; | ||
var baiduTplEngine = require('baidutemplate-x').template, | ||
dependence = "var baidu = require('common:components/baidutemplate/baidutemplate');\n"; | ||
/** | ||
@@ -31,3 +33,3 @@ * 预编译 | ||
// output | ||
return 'module.exports=' + source; | ||
return dependence + 'module.exports=' + source; | ||
} | ||
@@ -34,0 +36,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"license": "ISC", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "webpack百度模板预处理模块", | ||
@@ -8,0 +8,0 @@ "main": "index.js", |
1847
32