Skip to content

Commit

Permalink
Allow source maps files in webextension (#8541)
Browse files Browse the repository at this point in the history
* Allow source maps as files in webextension

* Fix code

Co-authored-by: 101arrowz <[email protected]>

---------

Co-authored-by: 101arrowz <[email protected]>
  • Loading branch information
SpaceK33z and 101arrowz authored Jun 2, 2023
1 parent 5c5dc30 commit 2a73cd2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,9 @@ export default (new Transformer({
},
sourceMap: asset.env.sourceMap && {
...asset.env.sourceMap,
inline: true,
inlineSources: true,
// Inline source maps work most reliably on web extensions but allow users to overwrite
inline: asset.env.sourceMap.inline ?? true,
inlineSources: asset.env.sourceMap.inlineSources ?? true,
},
includeNodeModules: asset.env.includeNodeModules,
sourceType: asset.env.sourceType,
Expand Down

0 comments on commit 2a73cd2

Please sign in to comment.