Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Build failed undefined #10

Open
Globegitter opened this issue Jul 26, 2015 · 2 comments
Open

Build failed undefined #10

Globegitter opened this issue Jul 26, 2015 · 2 comments

Comments

@Globegitter
Copy link

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
Copy link
Author

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
Copy link
Owner

caleb commented Aug 5, 2015

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants