[ 
https://issues.apache.org/jira/browse/CB-9436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14654499#comment-14654499
 ] 

ASF GitHub Bot commented on CB-9436:
------------------------------------

Github user vladimir-kotikov commented on a diff in the pull request:

    https://github.com/apache/cordova-js/pull/124#discussion_r36251972
  
    --- Diff: tasks/lib/packager-browserify.js ---
    @@ -46,25 +37,13 @@ module.exports = function generate(platform, 
useWindowsLineEndings, platformVers
             outReleaseFile = path.join('pkg', 'cordova.' + platform + '.js');
             outReleaseFileStream = fs.createWriteStream(outReleaseFile);
     
    -        var symbolList = null;
    -        var addSymbolList = through.obj(function(row, enc, next) {
    -            if(symbolList === null) {
    -                symbolList = requireTr.getModules(platform);
    -                this.push(util.format('var symbolList = %s;\n%s\n', 
JSON.stringify(symbolList, null, 4), row));
    -            } else {
    -                this.push(row);
    -            }
    -            next();
    -        });
    -
    -        libraryRelease.pipeline.get('wrap').push(addSymbolList);
    -
             // write license header
             writeLicenseHeader(outReleaseFileStream, platform, commitId, 
platformVersion);
     
    -        releaseBundle = libraryRelease.bundle();
    -
    -        releaseBundle.pipe(outReleaseFileStream);
    +        bundle(platform, false, commitId, platformVersion, platformPath)
    +          .add(path.resolve(__dirname, '..', '..', 
'src/scripts/bootstrap.js'))
    --- End diff --
    
    Yes, they both needed. This was moved from `bundle-browserify.js` direcly 
to `cordova-lib/prepare-browserify` due to some reasons (see 
https://github.com/apache/cordova-lib/pull/275#issuecomment-127782310) but we 
still need to add this file when building clean cordova-js bundle (without 
plugins) from grunt task. 


> Refactor browserify to get rid of `require-tr` transform
> --------------------------------------------------------
>
>                 Key: CB-9436
>                 URL: https://issues.apache.org/jira/browse/CB-9436
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaJS, CordovaLib
>            Reporter: Vladimir Kotikov
>            Assignee: Vladimir Kotikov
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to