···
WARNING in d:/dws/projects/febs/febs//express/lib/view.js/express/lib/view.js 78:29-56
Critical dependencies:
78:29-56 the request of a dependency is an expression
@ d:/dws/projects/febs/febs/
···
Related code: https://github.com/strongloop/express/blob/master/lib/view.js#L78
P.S Webpack is very useful even in build server side bundles. It can reduce the size of release packages by include required js file only.
@dougwilson , There is a way to avoid the warning:
change these lines
to
and add this line to file head
and then create a new file
express-engine-loader.js
OK, that’s all.
Now, users can use
webpack.NormalModuleReplacementPlugin
to replaceexpress-engine-loader
in webpack’s build process to use static require which is friendly to bundler, or even ignore it bywebpack.IgnorePlugin
.Could this be reopened please and corrected with the above.