Compare commits
No commits in common. "main" and "v7.0.2" have entirely different histories.
@ -5,6 +5,8 @@
|
||||
|
||||
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)
|
||||
|
||||
4
index.js
4
index.js
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user