Skip to content

Commit e38e65d

Browse files
committed
remove data patch for gulp-data, users will need to use 'file.data.xxx' instead of having it directly available.
1 parent d4d778e commit e38e65d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ module.exports = function (headerText, data) {
2020
headerText = headerText || '';
2121

2222
function TransformStream(file, enc, cb) {
23-
// direct support for gulp-data
24-
if (file.data) {
25-
data = Object.assign({}, data, file.data);
26-
}
27-
2823
// format template
2924
var filename = path.basename(file.path);
3025
var template = data === false ? headerText : lodashTemplate(headerText)(Object.assign({ file: file, filename: filename }, data));

0 commit comments

Comments
 (0)