cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From surajpindoria <>
Subject [GitHub] cordova-js pull request: CB-7332: Fixed Windows path issue when tr...
Date Tue, 19 Aug 2014 18:28:40 GMT
Github user surajpindoria commented on a diff in the pull request:
    --- Diff: tasks/lib/require-tr.js ---
    @@ -86,7 +88,15 @@ function _updateRequires(code) {
         if(node instanceof UglifyJS.AST_Call) {
           // check if function call is a require('module') call
           if( === "require" && node.args.length === 1) {
    +        // Uglify is not able to recognize Windows style paths using '\' instead of '/'
    +        // So replacing all of the '/' back to Windows '\'
    +        if (node.args[0].value !== undefined && node.args[0].value.indexOf('/android/app')
!== -1 && process.platform === 'win32') {
    --- End diff --
    I have added the check for the Windows platform now.  I also removed the check for 'c:'
and changed it to check for '/android/app'.  We need this here because in the code above,
we are actually replacing code in the source file, so it needs to be changed back to appropriate
Windows path.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message