This commit is contained in:
tangjinzhou 2018-03-30 10:25:34 +08:00
parent 591f286618
commit a3c1d235a1
2 changed files with 1 additions and 3 deletions

View File

@ -217,8 +217,7 @@ export function mergeProps () {
}
function isValidElement (element) {
const name = element.constructor.name
return element.tag && (name === 'VNode' || name === 'VueComponent')
return element && element.context && element.context._isVue
}
export {

View File

@ -12,7 +12,6 @@ const modulePlugin = new ExtractTextPlugin({
})
module.exports = merge(baseWebpackConfig, {
devtool: '#source-map',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: './',