caleb / broccoli-fast-browserify

A caching, flexible Browserify Broccoli filter
https://github.com/caleb/broccoli-fast-browserify
BSD 3-Clause "New" or "Revised" License
14 stars 7 forks source link

Build failed `undefined` #10

Open Globegitter opened 9 years ago

Globegitter commented 9 years ago

Just trying this out on one of our quite big react projects trying to compare it to the custom build system we use with the following config:

var fastBrowserify = require('broccoli-fast-browserify');
var babelify = require('babelify');

var optionalTransforms = [
  'regenerator',
  // 'minification.deadCodeElimination',
  // 'minification.inlineExpressions'
];

var transformedBabelify = fastBrowserify('frontend/app', {
  browserify: {
    extensions: [".js"]
  },
  bundles: {
    'test/bundle.js': {
      entryPoints: ['app.js'],
      transform: {
        tr: babelify,
        options: {
          extensions: [".js"],
          stage: 0,
          optional: optionalTransforms,
          compact: true
        }
      }
    }
  }
});

module.exports = transformedBabelify

We use a lot of custom configuration so I did not expect this to work immediately but now after I have worked through a few expected errors I am getting:

undefined

Build failed

Once I have more time I will debug some more but I suppose I just wanted to report this error-message which does not help much.

Globegitter commented 8 years ago

This seemed to have been an issue with some of my options I provided and I could fix it. But some better error reporting would be appreciated.

caleb commented 8 years ago

Sorry I couldn't have looked at this, I've been busy lately. What exactly was the error in your options? I would love to add better error reporting to this.