I have a 2.x AMD config question related to suite ...
# suitescript
c
I have a 2.x AMD config question related to suite bundles. I want to bundle up my custom solution but cannot for the life of me figure out the "appropriate" configuration path. I know what the bundle ID will be so I've tried all the following: The structure is this:
Copy code
SuiteBundles >
  Bundle 0000 >
    config.json
    resources >
      myjsfile.js
      ... a whole lot more...
In my config.json I have:
Copy code
{
  "baseUrl": "SuiteBundles/Bundle 0000" (also tried adding a slash at the end)
}
In my entry point JS I have the following
Copy code
/**
 * ...
 * @NAmdConfig /SuiteBundles/Bundle 0000/config.json
 * ...
 */
define(["resources/myjsfile"], function(MyFile) {...});
I get Module doesn't exist "/resources/myjsfile.js" (shows that it's trying to load from the root of the file cabinet meaning it's not seeing config.json or not reading it right.) I tried changing NAmdConfig to a virtual path "/.bundle/0000/config.json" (no quotes) and that gave me an internal error when trying to upload the entry point file. I tried the following in the config.json as well
Copy code
{
  // note tried this with and without a "baseUrl"
  "paths": {
    "resources": "resources" (also tried with forward slash at beginning)
  }
}
Also tried
Copy code
{
  // note tried this with and without a "baseUrl"
  "paths": {
    "resources": "/.bundle/0000/resources"
  }
}
Nothing works except below
Copy code
define("/.bundle/0000/myjsfile"...
But I really don't want to go through all the resources (there's a lot) and turn them into this style of path. I prefer to have the config point to the right root and leave all my defines to use the relative paths. What am I missing or doing wrong?