Skip to content

Commit

Permalink
tests: webpack config and react bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rithvikvibhu authored and pinheadmz committed Feb 9, 2022
1 parent 1c9f05f commit 78085f7
Show file tree
Hide file tree
Showing 5 changed files with 488 additions and 793 deletions.
6 changes: 1 addition & 5 deletions app/background/ipc/ipc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
const Sentry = (
process.type === 'renderer'
? require('@sentry/electron/renderer')
: require('@sentry/electron/main')
);
const Sentry = require('@sentry/browser');

export const SIGIL = '@@RPC@@';

Expand Down
54 changes: 4 additions & 50 deletions configs/webpack.config.test.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,60 +78,14 @@ module.exports = {
}
]
},
// WOFF Font
{
test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
use: {
loader: 'url-loader',
options: {
limit: 10000,
mimetype: 'application/font-woff'
}
}
test: /\.(png|svg|jpg|jpeg|gif|ico|webp)$/i,
type: 'asset/resource',
},
// WOFF2 Font
{
test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
use: {
loader: 'url-loader',
options: {
limit: 10000,
mimetype: 'application/font-woff'
}
}
test: /\.(woff|woff2|eot|ttf|otf)$/i,
type: 'asset/resource',
},
// TTF Font
{
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
use: {
loader: 'url-loader',
options: {
limit: 10000,
mimetype: 'application/octet-stream'
}
}
},
// EOT Font
{
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
use: 'file-loader'
},
// SVG Font
{
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
use: {
loader: 'url-loader',
options: {
limit: 10000,
mimetype: 'image/svg+xml'
}
}
},
// Common Image Formats
{
test: /\.(?:ico|gif|png|jpg|jpeg|webp)$/,
use: 'url-loader'
}
]
},

Expand Down
Loading

0 comments on commit 78085f7

Please sign in to comment.