Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config object transforms are run twice #1124

Closed
simonzack opened this issue Feb 15, 2015 · 2 comments
Closed

config object transforms are run twice #1124

simonzack opened this issue Feb 15, 2015 · 2 comments

Comments

@simonzack
Copy link
Contributor

Doing the following will run transforms twice, no matter what the transform is:

var bundler = browserify('file.js', {
    transform: [to5ify]
});

using .transform instead works.

simonzack added a commit to simonzack/node-browserify that referenced this issue Feb 17, 2015
@seansfkelley
Copy link

Seeing this as well. Here's a more complete repro:

var browserify = require('browserify');
var through = require('through');

function transform1() {
  console.log('this log line appears once');
  return through();
};

function transform2() {
  console.log('this log line appears twice');
  return through();
};

browserify('./blank.js', {
  transform: [transform2]
})
.transform(transform1)
.bundle();

simonzack added a commit to simonzack/node-browserify that referenced this issue Feb 21, 2015
@ghost
Copy link

ghost commented Feb 21, 2015

All fixed in 9.0.2.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants