Make filepath optional in riotconfig.
This commit is contained in:
parent
8903b91d44
commit
91c0f4c0b2
4
index.js
4
index.js
@ -33,8 +33,8 @@ module.exports = new Transformer({
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
const shouldInvalidateOnStartup = riotConfig &&
|
const shouldInvalidateOnStartup = riotConfig &&
|
||||||
riotConfig.filePath.endsWith('.js') ||
|
riotConfig?.filePath?.endsWith('.js') ||
|
||||||
riotConfig.filePath.endsWith(CONFIG_FILES[0])
|
riotConfig?.filePath?.endsWith(CONFIG_FILES[0])
|
||||||
|
|
||||||
if (shouldInvalidateOnStartup) {
|
if (shouldInvalidateOnStartup) {
|
||||||
config.invalidateOnStartup()
|
config.invalidateOnStartup()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user