NickSuite
11/05/2020, 5:19 AM"paths": {
"configdao": "./dao/config_dao",
"constant": "./lib/constant",
"requestlib": "./lib/request_lib",
"responselib": "./lib/response_lib",
"synclib": "./lib/sync_lib",
"general": "./helpers/generalv2"
},
I cannot define a base url because this is going to be part of a bundle. It works with the files which are directly in the root directory. However, if some file/module is in another folder - let's say helpers/generalv2.js - and it tries to load requestlib, it is trying to load it from ./helpers/lib/request_lib instead of ./lib/request_lib.
What am I doing wrong? I have also tried "map" but somehow it is not working.battk
11/05/2020, 5:55 AMNickSuite
11/05/2020, 6:09 AMNickSuite
11/05/2020, 6:18 AMbattk
11/05/2020, 8:17 AMbattk
11/05/2020, 8:18 AMSandii
11/05/2020, 3:43 PM../
to go up and ./
to stay in relative same folderstalbert
11/05/2020, 4:35 PMconfig.json
at all, unless you plan to change those paths (which seems unlikely for a bundle)?NickSuite
11/06/2020, 9:44 AMNickSuite
11/06/2020, 9:44 AM