Skip to content

Commit

Permalink
fix: web accessible resource resolution (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgv committed Sep 23, 2022
1 parent 6bb1d0f commit e7cd086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/plasmo/src/features/manifest-factory/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@ export abstract class BaseFactory<T extends ExtensionManifest = any> {
filesOnly: true
})

const filePaths = await Promise.all(files.map(this.copyProjectFile))
return filePaths.flat()
await Promise.all(files.map(this.copyProjectFile))
return inputFilePath
}

const resourceFilePath = isAbsolute(inputFilePath)
Expand All @@ -455,7 +455,7 @@ export abstract class BaseFactory<T extends ExtensionManifest = any> {

return toPosix(inputFilePath)
} catch {
return null
return inputFilePath
}
}

Expand Down

0 comments on commit e7cd086

Please sign in to comment.