Read the documentation at the original repo
This repo does one very specific thing, in the Persistence module, it prefers using
path
from aglobal.path
then falls back torequire("path")
ifglobal.path
is undefined. This behavior is to allow next.js developers to getpath
fromcontextBridge
in electron then setglobal.path
variable for use in modules that require it.