Skip to content

Commit e5e6a00

Browse files
committed
feat: context bridge
Signed-off-by: Adam Setch <[email protected]>
1 parent e193c05 commit e5e6a00

9 files changed

+4
-34
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626

2727
- run: pnpm install
2828
- run: pnpm build
29-
- run: pnpm prepare:remove-source-maps
3029
- run: pnpm package:macos --publish=never -c.mac.identity=null
3130
env:
3231
CSC_LINK: ${{ secrets.CSC_LINK }}
@@ -61,7 +60,6 @@ jobs:
6160

6261
- run: pnpm install
6362
- run: pnpm build
64-
- run: pnpm prepare:remove-source-maps
6563
- run: pnpm package:win --publish=never
6664

6765
- name: Clean up builds
@@ -93,7 +91,6 @@ jobs:
9391

9492
- run: pnpm install
9593
- run: pnpm build
96-
- run: pnpm prepare:remove-source-maps
9794
- run: pnpm package:linux --publish=never
9895

9996
- name: Clean up builds

config/webpack.config.main.base.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ const configuration: webpack.Configuration = {
1818
output: {
1919
path: webpackPaths.buildPath,
2020
filename: 'main.js',
21-
library: {
22-
type: 'umd',
23-
},
2421
},
2522
};
2623

config/webpack.config.main.prod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { merge } from 'webpack-merge';
55
import baseConfig from './webpack.config.main.base';
66

77
const configuration: webpack.Configuration = {
8-
devtool: 'source-map',
8+
devtool: false,
99

1010
mode: 'production',
1111

config/webpack.config.preload.base.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ const configuration: webpack.Configuration = {
1818
output: {
1919
path: webpackPaths.buildPath,
2020
filename: 'preload.js',
21-
library: {
22-
type: 'umd',
23-
},
2421
},
2522
};
2623

config/webpack.config.preload.prod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { merge } from 'webpack-merge';
55
import baseConfig from './webpack.config.preload.base';
66

77
const configuration: webpack.Configuration = {
8-
devtool: 'source-map',
8+
devtool: false,
99

1010
mode: 'production',
1111

config/webpack.config.renderer.base.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,13 @@ const configuration: webpack.Configuration = {
3131

3232
mode: 'development',
3333

34-
target: 'electron-renderer',
34+
target: ['web', 'electron-renderer'],
3535

3636
entry: [path.join(webpackPaths.srcRendererPath, 'index.tsx')],
3737

3838
output: {
3939
path: webpackPaths.buildPath,
4040
filename: 'renderer.js',
41-
library: {
42-
type: 'umd',
43-
},
4441
},
4542

4643
module: {
@@ -77,7 +74,6 @@ const configuration: webpack.Configuration = {
7774
removeAttributeQuotes: true,
7875
removeComments: true,
7976
},
80-
isBrowser: false,
8177
}),
8278

8379
// Twemoji SVGs for Emoji parsing

config/webpack.config.renderer.prod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { merge } from 'webpack-merge';
66
import baseConfig from './webpack.config.renderer.base';
77

88
const configuration: webpack.Configuration = {
9-
devtool: 'source-map',
9+
devtool: false,
1010

1111
mode: 'production',
1212

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"watch:main": "webpack --watch --config ./config/webpack.config.main.base.ts",
1414
"watch:preload": "webpack --watch --config ./config/webpack.config.preload.base.ts",
1515
"watch:renderer": "webpack --watch --config ./config/webpack.config.renderer.base.ts",
16-
"prepare:remove-source-maps": "ts-node ./scripts/delete-source-maps.ts",
1716
"package:linux": "electron-builder --linux --config ./config/electron-builder.js",
1817
"package:macos": "electron-builder --mac --config ./config/electron-builder.js",
1918
"package:win": "electron-builder --win --config ./config/electron-builder.js",

scripts/delete-source-maps.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)