Skip to content

Commit b185326

Browse files
committed
ability to specify compiler in gulp
1 parent f03ee39 commit b185326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gulp-vue-to-style-stream.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const {Transform} = require('stream');
2-
const {parseComponent} = require('vue-template-compiler');
32

4-
module.exports = function () {
3+
module.exports = function (compiler) {
4+
const {parseComponent} = compiler || require('vue-template-compiler');
55
return new Transform({
66
objectMode: true,
77
transform(file, enc, cb) {

0 commit comments

Comments
 (0)