Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit e199b35

Browse files
committed
depend on vinyl directly
Change-Id: I531633ee69fec1c7fc2022a04e0c91e4201dc9ed
1 parent aff5ea3 commit e199b35

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/gulp.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ module.exports = function() {
4848
const compile = require('../compile');
4949
const logger = require('../logger');
5050
const gutil = require('gulp-util');
51+
const path = require('path');
52+
const File = require('vinyl');
5153
const PluginError = gutil.PluginError;
5254
const Transform = require('stream').Transform;
5355
const PLUGIN_NAME = 'gulp-google-closure-compiler-js';
5456
const DEFAULT_OUTPUT_PATH = 'compiled.js';
55-
const path = require('path');
5657

5758
class CompilationStream extends Transform {
5859
constructor(compilationOptions, pluginOptions) {
@@ -99,7 +100,7 @@ module.exports = function() {
99100
this.emit('error', new PluginError(this.pluginName_, message));
100101
}
101102

102-
const file = new gutil.File({
103+
const file = new File({
103104
path: outputFile || DEFAULT_OUTPUT_PATH,
104105
contents: new Buffer(output.compiledCode),
105106
});

0 commit comments

Comments
 (0)