Skip to content

Commit

Permalink
Run tsconfig paths resolver before PnP (#12104)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Apr 24, 2020
1 parent 99eedc4 commit 555ba60
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 555ba60

Please sign in to comment.