Skip to content

Commit

Permalink
add support to eval-source-map
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahAlfaraj committed Oct 6, 2023
1 parent d75ca05 commit c1838e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"main": "index.html",
"manifestVersion": 5,
"requiredPermissions": {
"allowCodeGenerationFromStrings": true,
"network": {
"domains": "all"
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "npx webpack --config webpack.config.js --watch",
"watch": "npx webpack --config webpack.config.js --watch --devtool eval-source-map",
"build": "npx webpack --config webpack.config.js",
"format": "npx prettier -w typescripts"
},
Expand All @@ -59,4 +59,4 @@
"url": "https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin/issues"
},
"homepage": "https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin#readme"
}
}
5 changes: 3 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ module.exports = {
},
mode: 'development',
// mode: 'production',
devtool: 'inline-source-map', // won't work on XD due to lack of eval
// devtool: 'source-map',

devtool: false,

externals: {
uxp: 'commonjs2 uxp',
photoshop: 'commonjs2 photoshop',
Expand Down

0 comments on commit c1838e2

Please sign in to comment.