Match-id-ffce6035a3d1044fbc03dff754645c0567aef4f2

This commit is contained in:
* 2022-08-04 10:52:23 +08:00 committed by *
parent e3366b5752
commit 8bf49d834e
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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;
}