Spencer Elliott d74ab4e9d6
fix(core): resolve webpack loaders with require.resolve() (#3341)
With strict package managers such as pnpm or Yarn PnP, transitive
dependencies are *not* hoisted to the root node_modules folder. This
means that a webpack config defined within a package like
'@nrwl/cypress' cannot resolve loaders like 'ts-loader', unless
'ts-loader' is declared in the workspace's own package.json.

This is a problem because the workspace might define a different version
of 'ts-loader', incompatible with the version declared by
'@nrwl/cypress/package.json'. The workspace should not need to declare
a dependency on 'ts-loader' anyway.

See also:
* https://github.com/pnpm/pnpm/issues/801
* https://github.com/webpack/webpack/issues/5087
2020-07-15 13:55:38 -04:00
..
2020-06-03 16:25:25 -04:00
2020-06-03 16:25:25 -04:00
2020-06-03 16:25:25 -04:00

{{links}}


NodeJS Plugin for Nx

{{what-is-nx}}

What is It?

Builders and schematics adding basic functionality for building, testing and linting node applications and libraries.

How to Use

This package is used by the @nrwl/express, and @nrwl/next. See https://github.com/nrwl/nx for more information.

{{resources}}