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
3 changed files with 5 additions and 5 deletions

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

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@riotjs/parcel-transformer-riot",
"version": "7.0.3",
"version": "7.0.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@riotjs/parcel-transformer-riot",
"version": "7.0.3",
"version": "7.0.2",
"license": "MIT",
"dependencies": {
"@parcel/plugin": "^2.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "@riotjs/parcel-transformer-riot",
"version": "7.0.3",
"version": "7.0.2",
"description": "The Riot.js official parcel transformer",
"main": "index.js",
"scripts": {