Skip to content

Commit 305bdd0

Browse files
nkovacsegoist
authored andcommitted
Fix node 4 compatibility. (#453)
Node 4 does not support destructuring.
1 parent 9b8100c commit 305bdd0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/vue-init

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ var logger = require('../lib/logger')
1313
var generate = require('../lib/generate')
1414
var checkVersion = require('../lib/check-version')
1515
var warnings = require('../lib/warnings')
16-
var { isLocalPath, getTemplatePath } = require('../lib/local-path')
16+
var localPath = require('../lib/local-path')
17+
18+
var isLocalPath = localPath.isLocalPath
19+
var getTemplatePath = localPath.getTemplatePath
1720

1821
/**
1922
* Usage.

0 commit comments

Comments
 (0)