From bcb679ee6f6a80cf5e4944c874768f27342a319a Mon Sep 17 00:00:00 2001 From: Arnout Kazemier Date: Thu, 5 Mar 2015 12:35:18 -0700 Subject: [PATCH] [fix] Make the framework require-able --- lib/compiler.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/compiler.js b/lib/compiler.js index 7aa1bba..c3a51d6 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -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));