Node.js Loading
A plain ./demo.js still runs on QuickJS. Node.js must use index.js.md5 as the configuration entry, with index.js, index.config.js and index.config.js.md5 in the same directory.
Loading flow
- The App starts the bundle and reads
videoordata.videofrom the/configresponse. - It maps
video.sitestonode:site routes. - The spider handles
/init,/home,/category,/detail,/searchand/playappended to each site route over HTTP JSON.
Don't just swap the api prefix
Node.js is not QuickJS's export default object model. Changing the api of a normal configuration to node: does not initialize a Node bundle.
Differences from QuickJS
Related: runtime modules, loading a spider.