config/webpack/alias-builder.js
function setSpaAlias(alias, moduleName, path) {
  let resolvedPath = spaPath(path);

  if (!fs.existsSync(resolvedPath)) {
    resolvedPath = outPath(path);
  }

  alias['sky-pages-internal/' + moduleName] = resolvedPath;
}
function setSpaAlias(alias, moduleName, path) {
  let resolvedPath = spaPath(path);

  if (!fs.existsSync(resolvedPath)) {
    resolvedPath = outPath(path);
  }

  alias['sky-pages-internal/' + moduleName] = resolvedPath;
}
function setSpaAlias ( alias , moduleName , path ) { let resolvedPath = spaPath ( path ) ; if ( ! fs . existsSync ( resolvedPath ) ) { resolvedPath = outPath ( path ) ; } alias [ 'sky-pages-internal/' + moduleName ] = resolvedPath ; }
Sets an alias to the specified module using the SPA path if the file exists in the SPA;
otherwise it sets the alias to the file in SKY UX Builder.
@name setSpaAlias
@param {Object} alias
@param {String} moduleName
@param {String} path
Sets an alias to the specified module using the SPA path if the file exists in the SPA ; otherwise it sets the alias to the file in SKY UX Builder .