digamos que tengo un componente
import React, { createElement } from 'react'; import C from './C' function A(){ console.log(111) console.log(C) // return <div>111</div> } Aa=1111; export default AEl paquete acumulativo da como resultado un archivo RUNtime.js en formato UMD
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) : typeof define === 'function' && define.amd ? define(['react'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.rootcloud = global.rootcloud || {}, global.rootcloud.RootcloudBar = global.rootcloud.RootcloudBar || {}, global.rootcloud.RootcloudBar.runtime = factory(global.React))); })(this, (function (react) { 'use strict'; function A() { return /* @__PURE__ */ react.createElement("div", null, "111"); } Aa = 1111; var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); const Index = (props) => { return /* @__PURE__ */ react.createElement(A, __spreadProps(__spreadValues({}, props), { reversal: false })); }; return Index; }));Cuando importé runtime.js a un componente, descubrí que no había una propiedad A en el componente
import ShowCompoment from './runtime' console.log(ShowCompoment.a) // undefined¿Qué debo hacer para acceder a la propiedad A en el componente?