Skip to content

Commit

Permalink
[fix] Make the framework require-able
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Mar 5, 2015
1 parent 72c33bf commit bcb679e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/compiler.js
Expand Up @@ -75,16 +75,17 @@ Compiler.prototype.__proto__ = require('eventemitter3').prototype;
* @api private
*/
Compiler.prototype.bigPipe = function bigPipe(done) {
var library = browserify({ standalone: 'BigPipe' })
, framework = this.pipe._framework
var framework = this.pipe._framework
, library
, plugin
, name
, file;

debug('Creating the bigpipe.js front-end library');

library = browserify();
framework.get('library').forEach(function each(file) {
library.add(file.path, { expose: file.expose });
library.require(file.path, { expose: file.expose });
});

if (this.core.length) library.require(new Content(this.core));
Expand Down

0 comments on commit bcb679e

Please sign in to comment.