Skip to content

Commit

Permalink
chore: Removing unnecessary try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Nov 24, 2021
1 parent f8d4b17 commit 5ee6e58
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/cli/lib/lib/webpack/transform-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ module.exports = async function (env, webpackConfig, isServer = false) {
// The line above results in an empty object w/ Jest,
// so we need to do the following in order to load it:
if (Object.keys(m).length === 0) {
try {
m = require(myConfig);
} catch {}
m = require(myConfig);
}

const transformers = parseConfig((m && m.default) || m);
Expand Down

0 comments on commit 5ee6e58

Please sign in to comment.