Open paramsinghvc opened 5 years ago
@paramsinghvc it happened because register.js
has dynamic import on 24 line:
var lib = require(implementation)
It means webpack
can't resolve the require statically and imports entire package
You can read this part of webpack docs: https://webpack.js.org/guides/dependency-management/#require-with-expression
It can be solved using ContextReplacementPlugin, for example you can add "fake" config in your webpack to suppress this warning
plugins: [
new ContextReplacementPlugin(/any-promise/)
]