Skip to content

Custom transformation could affect order of files in bundle. #113

@acheshkov

Description

@acheshkov

Hi,

I use custom conditional browserfy transformation. In resulting bundle I have a problem to keep order of files. In example bellow I expect that jquery will go first but it does not.

var tfm = bundle.transformHelper.browserify(mainStream);
var typescriptTransforms = lazypipe()
  .pipe(function() {
    return gif(isTypescriptFile,  tfm());
  });

module.exports = {
    bundle: {
      vendor: {
        options: {
            transforms: { scripts: typescriptTransforms},
            order: {
                scripts: [
                    '**/jquery-1.10.2.js',
                    '!**/jquery-1.10.2.js'
                ]
            }
        },
        scripts: [
            './Scripts/jquery-1.10.2.js',
             // ... other files 
            './ts/index.ts',
             // ... other files 
        ]
      }
    }
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions