Skip to content

Commit

Permalink
Merge pull request #57 from didi/bugfix
Browse files Browse the repository at this point in the history
fix bug caused by template preprocessor. wxml may used by vscode plugin
  • Loading branch information
hiyuki authored Jan 4, 2019
2 parents 5ff8a2d + 2d5fb36 commit f8c2484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ module.exports = function createHelpers (loaderContext, options, moduleId, parts
}

function getRawLoaderString (type, part, index, scoped) {
let lang = part.lang || defaultLang[type]
let lang = (part.lang && part.lang !== 'wxml') ? part.lang : defaultLang[type]

let styleCompiler = ''
if (type === 'styles') {
Expand Down

0 comments on commit f8c2484

Please sign in to comment.