Skip to content

Commit ea1a963

Browse files
Expose compiler on http handler (#425)
And fixes choojs/create-choo-app#52 too.
1 parent bdebb61 commit ea1a963

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

http.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ function start (entry, opts) {
262262

263263
// TODO: move all UI code out of this file
264264
handler.state = state
265+
// Expose compiler so we can use it in `bankai start`
266+
handler.compiler = compiler
265267
return handler
266268

267269
// Return a handler to listen.

lib/cmd-start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = start
99
function start (entry, opts) {
1010
var handler = bankai(entry, opts)
1111

12-
isElectronProject(handler.dirname, function (err, bool) {
12+
isElectronProject(handler.compiler.dirname, function (err, bool) {
1313
if (err) throw err
1414
opts.electron = bool
1515

0 commit comments

Comments
 (0)