Match-id-ffce6035a3d1044fbc03dff754645c0567aef4f2
This commit is contained in:
parent
e3366b5752
commit
8bf49d834e
|
@ -13,7 +13,7 @@ export function JSXElement(type, key, ref, vNode, props, source) {
|
|||
return {
|
||||
// 元素标识符
|
||||
vtype: TYPE_COMMON_ELEMENT,
|
||||
source: source,
|
||||
source: isDev ? source : null,
|
||||
|
||||
// 属于元素的内置属性
|
||||
type: type,
|
||||
|
|
|
@ -109,7 +109,6 @@ export function createUndeterminedVNode(type, key, props, source) {
|
|||
let vNodeTag = FunctionComponent;
|
||||
let isLazy = false;
|
||||
const componentType = typeof type;
|
||||
|
||||
if (componentType === 'function') {
|
||||
if (isClassComponent(type)) {
|
||||
vNodeTag = ClassComponent;
|
||||
|
@ -132,7 +131,8 @@ export function createUndeterminedVNode(type, key, props, source) {
|
|||
if (isLazy) {
|
||||
vNode.lazyType = type;
|
||||
}
|
||||
vNode.src = source;
|
||||
|
||||
vNode.src = isDev ? source : null;
|
||||
return vNode;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue