'Webpack 4 + fullySpecified option

I have a project that currently uses webpack 4 - the team doesn't want to upgrade right now.

webpack 5 has this option https://webpack.js.org/configuration/module/#resolvefullyspecified

fullySpecified: false

Does anyone know if the same can be achieved in Webpack 4 somehow?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source