Compare commits

...

2 Commits
v7.0.2 ... main

Author SHA1 Message Date
91c0f4c0b2 Make filepath optional in riotconfig. 2022-02-10 06:00:03 -06:00
gianlucaguarini
8903b91d44 removed: warning from readme file 2021-10-24 17:23:47 +02:00
2 changed files with 2 additions and 4 deletions

View File

@ -5,8 +5,6 @@
The Riot.js official parcel transformer.
🚧 Parcel 2 was just released and this package is still under development and not yet 100% ready. Come back soon
## Important
- If you are using Parcel < 2.0.0 please check the [this branch](https://github.com/riot/parcel-transformer-riot/tree/parcel-v1)

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()