Webpack - Critical dependency: the request of a dependency is an expression
问题 I am getting three warning messages when importing request in a barebone webpack project. A minimal example to reproduce the bug is available on GitHub (run npm install and npm start ). Critical dependency: the request of a dependency is an expression How can I get rid of this warning? More information: Webpack tries to resolve require calls statically to make a minimal bundle. When a library uses variables or expressions in a require call (such as require('' + 'nodent') in these lines of ajv