Skip to content

Commit

Permalink
feat(webpack): webpack bundler exceptions fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
thepian committed Feb 11, 2015
1 parent c5adac7 commit f7ed22a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/client/bundler/webpack.js
Expand Up @@ -17,7 +17,7 @@ module.exports = function(webpack) {

html: assetHTML,
loader: assetLoader,
includeSystemModule: includeSystemModule,
systemModule: systemModule,
js: assetJS,
worker: assetWorker,
start: assetStart,
Expand Down Expand Up @@ -89,7 +89,7 @@ module.exports = function(webpack) {
* @param cb
*/
function assetLoader() {
return { type: 'loader', content: ';/* loader */' };
return { type: 'loader', names: [], content: ';/* loader */' };
}

/**
Expand Down Expand Up @@ -129,9 +129,9 @@ module.exports = function(webpack) {
* @param cb
* @returns {*}
*/
function assetStart(cb) {
function assetStart() {
var output = ss.bundler.startCode(bundler.client);
return cb(output);
return output;
}

/**
Expand Down
5 changes: 2 additions & 3 deletions lib/client/serve/dev.js
Expand Up @@ -55,9 +55,8 @@ module.exports = function (ss, router, options) {
var thisUrl = url.parse(request.url),
params = qs.parse(thisUrl.query);

ss.bundler.get(params).asset.launch(function(output) {
return utils.serve.js(output, response);
});
var start = ss.bundler.get(params).asset.start() || {};
return utils.serve.js(start.content || '', response);
});

// CSS
Expand Down

0 comments on commit f7ed22a

Please sign in to comment.