From f88294b982a3715954e3b55ac0f746317b7feaa8 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 30 Mar 2018 10:25:34 +0800 Subject: [PATCH] fix --- components/_util/props-util.js | 3 +-- webpack.site.config.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/components/_util/props-util.js b/components/_util/props-util.js index 651109a9a..6211c7bc5 100644 --- a/components/_util/props-util.js +++ b/components/_util/props-util.js @@ -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 { diff --git a/webpack.site.config.js b/webpack.site.config.js index 636e7ed6f..59ca57af6 100644 --- a/webpack.site.config.js +++ b/webpack.site.config.js @@ -12,7 +12,6 @@ const modulePlugin = new ExtractTextPlugin({ }) module.exports = merge(baseWebpackConfig, { - devtool: '#source-map', output: { path: path.resolve(__dirname, './dist'), publicPath: './',