Skip to content

Commit

Permalink
fixed: #29
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Mar 29, 2024
1 parent 99e67cc commit 9b6f732
Show file tree
Hide file tree
Showing 3 changed files with 433 additions and 230 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default new Transformer({
packageKey: PACKAGE_KEY,
})) || {}
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()
Expand Down
Loading

0 comments on commit 9b6f732

Please sign in to comment.