Skip to content

Commit

Permalink
Run tsconfig paths resolver before PnP (vercel#12104)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens authored and rokinsky committed Jul 11, 2020
1 parent 9623de7 commit b3b5488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack-config.ts
Expand Up @@ -1014,7 +1014,7 @@ export default async function getBaseWebpackConfig(
}

if (jsConfig?.compilerOptions?.paths && resolvedBaseUrl) {
webpackConfig.resolve?.plugins?.push(
webpackConfig.resolve?.plugins?.unshift(
new JsConfigPathsPlugin(jsConfig.compilerOptions.paths, resolvedBaseUrl)
)
}
Expand Down

0 comments on commit b3b5488

Please sign in to comment.