【发布时间】:2020-11-25 17:20:04
【问题描述】:
我正在尝试使用 esbuild 将“express.js”脚本捆绑在一起
esbuild index.js --bundle --platform=node --outfile=server.js
作为 netlify/aws lambda 函数运行并且似乎总是收到此警告:
> node_modules/express/lib/view.js: warning: This call to "require" will not be bundled because the argument is not a string literal
81 │ var fn = require(mod).__express
╵ ~~~~~~~
该功能似乎在运行,但我想找出可能是什么问题,我在任何地方都找不到任何在线提示?
【问题讨论】:
标签: node.js express bundle esbuild