From dc5e2543cb1166124febc1e041874b0d0be0857a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 17 Dec 2017 21:07:34 -0500 Subject: [PATCH] argh copypasta fail --- lib/utils/create_app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/utils/create_app.js b/lib/utils/create_app.js index 7b6a272..d808623 100644 --- a/lib/utils/create_app.js +++ b/lib/utils/create_app.js @@ -29,8 +29,7 @@ module.exports = function create_app(src, dest, routes, options) { fs.writeFileSync(file, main); // need to fudge the mtime, because webpack is soft in the head - const stats = fs.statSync(file); - const { atime, mtime } = statSync(file); + const { atime, mtime } = fs.statSync(file); fs.utimesSync(file, atime.getTime() - 999999, mtime.getTime() - 999999); }