Skip to content

Commit

Permalink
fix name shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
edge committed Mar 27, 2016
1 parent bceeabf commit d144a43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions skel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const app = express();
const router = express.Router();

let hashes = {};
let dev = {};
let devopt = {};
const dynamicRequire = makeRequire(here, {
ast: false,
comments: false,
Expand All @@ -39,7 +39,7 @@ else {
noInfo: true,
publicPath: config.output.publicPath
})).use(hot(compiler));
dev.hotAccept = require('./hot')
devopt.hotAccept = require('./hot')
.make(compiler, dynamicRequire, next => hashes = next);
}

Expand All @@ -55,7 +55,7 @@ let endpoint = ({ app, page, route, id }) => {

if (process.env.NODE_ENV !== 'production') {
// register program with hot rebuilder
dev.hotAccept(app, m => { program = m.default; });
devopt.hotAccept(app, m => { program = m.default; });
}

router.get(route, (req, res, next) => {
Expand Down

0 comments on commit d144a43

Please sign in to comment.