Commit 7f25fb6c authored by James George's avatar James George Committed by Tim Neutkens

chore: Minor code refactor to eliminate redundant code (#10051)

parent 0a67c7ee
...@@ -432,8 +432,7 @@ export default async function getBaseWebpackConfig( ...@@ -432,8 +432,7 @@ export default async function getBaseWebpackConfig(
// are relative to requests we've already resolved here. // are relative to requests we've already resolved here.
// Absolute requires (require('/foo')) are extremely uncommon, but // Absolute requires (require('/foo')) are extremely uncommon, but
// also have no need for customization as they're already resolved. // also have no need for customization as they're already resolved.
const start = request.charAt(0) if (request.startsWith('.') || request.startsWith('/')) {
if (start === '.' || start === '/') {
return callback() return callback()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment