From 17821136382929ec6ddb9075a122a559a04e8290 Mon Sep 17 00:00:00 2001 From: Arik Date: Tue, 15 Dec 2020 14:30:56 +0200 Subject: [PATCH] fix: can't render pages on older versions of Nuxt if options.watch is missing (#52) * Fixed support for older versions of Nuxt Tested on Nuxt v1.4.2 and v2.14.6 * fixed lint errors --- lib/module.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/module.js b/lib/module.js index c4d7384..b8d2e37 100644 --- a/lib/module.js +++ b/lib/module.js @@ -29,6 +29,7 @@ module.exports = function (moduleOptions) { '.eslintrc.js' ] + this.options.watch = this.options.watch || [] this.options.watch.push( ...filesToWatch.map(file => resolve(this.options.rootDir, file)) )