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:
parent
1888a251a8
commit
ad0f0a4d79
|
@ -3,7 +3,7 @@ import { resolve, relative, join, extname } from 'path'
|
||||||
export default class WatchPagesPlugin {
|
export default class WatchPagesPlugin {
|
||||||
constructor (dir) {
|
constructor (dir) {
|
||||||
this.dir = resolve(dir, 'pages')
|
this.dir = resolve(dir, 'pages')
|
||||||
this.prevFileDependencies = null
|
this.prevFileDependencies = []
|
||||||
}
|
}
|
||||||
|
|
||||||
apply (compiler) {
|
apply (compiler) {
|
||||||
|
|
Loading…
Reference in a new issue