lib/compiler-js.js
function compileDEP( project, src, watch ) {
    const
    moduleName = src.name(),
    depFilename = Util.replaceExtension( moduleName, '.dep' );

    if ( !project.srcOrLibPath( depFilename ) ) return '';

    const depFile = new Source( project, depFilename );
    let code = '';
    try {
        const depJSON = ToloframeworkPermissiveJson.parse( depFile.read() );
        code = processAttributeVar( project, depJSON, watch, depFile.getAbsoluteFilePath() );
    } catch ( ex ) {
        Fatal.fire( `Unable to parse JSON dependency file!\n${ex}`, depFile.getAbsoluteFilePath() );
    }

    /*
     * List of files to watch. If  one of those files is newer
     * that the JS file, we have to recompile.
     */
    src.tag( 'watch', watch );
    return code;
}
function compileDEP( project, src, watch ) {
    const
    moduleName = src.name(),
    depFilename = Util.replaceExtension( moduleName, '.dep' );

    if ( !project.srcOrLibPath( depFilename ) ) return '';

    const depFile = new Source( project, depFilename );
    let code = '';
    try {
        const depJSON = ToloframeworkPermissiveJson.parse( depFile.read() );
        code = processAttributeVar( project, depJSON, watch, depFile.getAbsoluteFilePath() );
    } catch ( ex ) {
        Fatal.fire( `Unable to parse JSON dependency file!\n${ex}`, depFile.getAbsoluteFilePath() );
    }

    /*
     * List of files to watch. If  one of those files is newer
     * that the JS file, we have to recompile.
     */
    src.tag( 'watch', watch );
    return code;
}
function compileDEP ( project , src , watch ) { const moduleName = src . name ( ) , depFilename = Util . replaceExtension ( moduleName , '.dep' ) ; if ( ! project . srcOrLibPath ( depFilename ) ) return '' ; const depFile = new Source ( project , depFilename ) ; let code = '' ; try { const depJSON = ToloframeworkPermissiveJson . parse ( depFile . read ( ) ) ; code = processAttributeVar ( project , depJSON , watch , depFile . getAbsoluteFilePath ( ) ) ; } catch ( ex ) { Fatal . fire ( ` \n ${ ex } ` , depFile . getAbsoluteFilePath ( ) ) ; } /*
     * List of files to watch. If  one of those files is newer
     * that the JS file, we have to recompile.
     */ src . tag ( 'watch' , watch ) ; return code ; }
DEP file is here to load GLOBAL variable into the module.
@param {Project} project - Current project.
@param {Source} src - Module source file.
@param {array} watch - Array of files to watch for rebuild.
@returns {string} Javascript defining the const variable GLOBAL.
DEP file is here to load GLOBAL variable into the module .