Compare commits

...

1 Commits
v7.0.3 ... main

Author SHA1 Message Date
91c0f4c0b2 Make filepath optional in riotconfig. 2022-02-10 06:00:03 -06:00

View File

@ -33,8 +33,8 @@ module.exports = new Transformer({
}
)
const shouldInvalidateOnStartup = riotConfig &&
riotConfig.filePath.endsWith('.js') ||
riotConfig.filePath.endsWith(CONFIG_FILES[0])
riotConfig?.filePath?.endsWith('.js') ||
riotConfig?.filePath?.endsWith(CONFIG_FILES[0])
if (shouldInvalidateOnStartup) {
config.invalidateOnStartup()