Compare commits

..

No commits in common. "main" and "v7.0.2" have entirely different histories.
main ... v7.0.2

2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,8 @@
The Riot.js official parcel transformer. 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 ## Important
- If you are using Parcel < 2.0.0 please check the [this branch](https://github.com/riot/parcel-transformer-riot/tree/parcel-v1) - 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 && 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()