isomorphic-loader extend require instance
assets mapping data
Only setup in production mode (NODE_ENV === "production")
This is the require from @xarc/app's directory.
start node.js run time support for app server
options on what runtime support to start
Promise
Figure out the mode app is setup.
And then setup the env APP_SRC_DIR so in dev mode code in src is executed with run time compiler like @babel/register, but in prod mode transpiled code in lib will be executed.
directory to save data of the app mode
UI framework (react)
app mode data
Setup APP_SRC_DIR when running node.js server
src/ in development modelib/ in production modenothing
Setup assets mapping to CDN URLs
asset mapping options
nothing
Load the require hook to support isomorphic assets when doing SSR
when a require file is not found, and its extension is
in this, then it will be considered an isomorphic asset and an empty {} will
be returned for it to avoid failing with module not found errors.
".css|.scss|.sass|.pcss|.stylus|.styl|.less|.sss|.gif|.jpeg|.jpg|.png|.svg|.mp4|.webm|.ogv|.aac|.mp3|.wav|.ogg"false to disable this and let module not found error to throwisomorphic require extender
Generated using TypeDoc
Options for setting up CDN assets mapping