'use strict'

let app

try {
  app = require('ext')
} catch (err) {
  app = require('./template')
}

module.exports = app

@@ -67,35 +67,114 @@
 %7B%0A  
-app = require('./template')
+if (err && err.code === 'MODULE_NOT_FOUND') %7B%0A    app = require('./template')%0A  %7D else %7B%0A    throw err%0A  %7D
 %0A%7D%0A%0A

fix throw error when /ext is beign loaded