fix global declaration in test

Signed-off-by: Clark Du <clark.duxin@gmail.com>
This commit is contained in:
Clark Du 2017-09-08 12:07:08 +08:00
parent 034df15231
commit 36a553236a

View File

@ -7,7 +7,7 @@ module.exports = function (options) {
loader: 'ts-loader' loader: 'ts-loader'
}) })
// Add TypeScript loader for vue files // Add TypeScript loader for vue files
for (rule of config.module.rules) { for (let rule of config.module.rules) {
if (rule.loader === 'vue-loader') { if (rule.loader === 'vue-loader') {
rule.query.loaders.ts = 'ts-loader?{"appendTsSuffixTo":["\\\\.vue$"]}' rule.query.loaders.ts = 'ts-loader?{"appendTsSuffixTo":["\\\\.vue$"]}'
} }