tasks/dev/watch.js
function renameFile (oldFile, newFile) {
    if (!isFileRegistered(oldFile) || isFileRegistered(newFile)) { return undefined; }

    let item = fileRegistry[oldFile];

    item.file = newFile;

    fileRegistry[newFile] = item;

    delete fileRegistry[oldFile];
}
function renameFile (oldFile, newFile) {
    if (!isFileRegistered(oldFile) || isFileRegistered(newFile)) { return undefined; }

    let item = fileRegistry[oldFile];

    item.file = newFile;

    fileRegistry[newFile] = item;

    delete fileRegistry[oldFile];
}
function renameFile ( oldFile , newFile ) { if ( ! isFileRegistered ( oldFile ) || isFileRegistered ( newFile ) ) { return undefined ; } let item = fileRegistry [ oldFile ] ; item . file = newFile ; fileRegistry [ newFile ] = item ; delete fileRegistry [ oldFile ] ; }
Unregister old file and register new one.

@function renameFile
@param {String} oldFile
@param {String} newFile
@api private
Unregister old file and register new one .