1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

watch-page-plugin: prevent null access (#523)

This commit is contained in:
Naoyuki Kanezawa 2016-12-27 03:13:28 +09:00 committed by Guillermo Rauch
parent 1888a251a8
commit ad0f0a4d79

View file

@ -3,7 +3,7 @@ import { resolve, relative, join, extname } from 'path'
export default class WatchPagesPlugin {
constructor (dir) {
this.dir = resolve(dir, 'pages')
this.prevFileDependencies = null
this.prevFileDependencies = []
}
apply (compiler) {