How to use pnp-webpack-plugin

Comprehensive pnp-webpack-plugin code examples:

How to use pnp-webpack-plugin.moduleLoader:

198
199
200
201
202
203
204
205
206
207
resolve: webpackResolve,
resolveLoader: {
  plugins: [
    // Also related to Plug'n'Play, but this time it tells Webpack to load its loaders
    // from the current package.
    PnpWebpackPlugin.moduleLoader(module)
  ]
},
module: {
  strictExportPresence: true,