How to use resolve

Comprehensive resolve code examples:

How to use resolve.sync:

187
188
189
190
191
192
193
194
195
196
    : undefined),
}),
new ForkTsCheckerWebpackPlugin({
  async: false,
  typescript: {
    typescriptPath: resolve.sync('typescript', {
      basedir: nodeModules,
    }),
    context: appPath,
    configFile: 'tsconfig.json',