index.js
:
but this makes it impossible for node to call
directly.if export is used in node, the rendering process will not work.
how to maintain the current usage in the rendering process, and how to use global properties in the main process
or some other good global method property can be used