Skip to content

Commit

Permalink
build: disable preload source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Dec 14, 2024
1 parent 1a43b32 commit bcd74e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/electron-chrome-extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"description": "Chrome extension support for Electron",
"main": "dist/index.js",
"scripts": {
"clean": "node ../../scripts/clean.js",
"build": "tsc && webpack",
"pretest": "esbuild spec/fixtures/crx-test-preload.ts --bundle --external:electron --outfile=spec/fixtures/crx-test-preload.js --platform=node",
"test": "node ./script/spec-runner.js",
"prepublishOnly": "npm run build"
"prepublishOnly": "yarn clean && NODE_ENV=production yarn build"
},
"keywords": [
"electron",
Expand Down
1 change: 1 addition & 0 deletions packages/electron-chrome-extensions/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const libs = {
...webpackBase,

target: 'electron-preload',
devtool: false,

entry: {
'browser-action': './src/browser-action.ts',
Expand Down

0 comments on commit bcd74e7

Please sign in to comment.