I"m going to take out some components in the npm package to study.
then copy it out and introduce it. As a result,
the code in some packages looks like this:
render() {
return (
<div class={portalTargetClass} style={portalTargetStyle} data-instance-id={instance.getInstanceId()}>
<Menu ref="menu" />
</div>
)
},
after packing, return reports an error here
Syntax Error: Unexpected token
but why don"t you report an error in the npm package? How should I change it?