[英]serverless framework - babel-runtime warnings
I'm using the serverless framework with the serverless-webpack plugin, and whenever I run sls deploy, I'm getting the following warning in yellow: 我正在将无服务器框架与无服务器Webpack插件一起使用,每当我运行sls deploy时,都会收到黄色警告:
Serverless: WARNING: Could not determine version of module babel-runtime 无服务器:警告:无法确定模块babel运行时的版本
Serverless: WARNING: Could not determine version of module babel-runtime 无服务器:警告:无法确定模块babel运行时的版本
Serverless: WARNING: Could not determine version of module babel-runtime 无服务器:警告:无法确定模块babel运行时的版本
Does anyone know how to handle these? 有谁知道如何处理这些? I coulnd't find any information about it. 我找不到任何相关信息。
Thanks. 谢谢。
My solution was to have the following in my .babelrc 我的解决方案是在我的.babelrc文件中添加以下内容
"transform-runtime":{
"corejs": false,
},
You can also play around with these options: 您也可以使用以下选项:
"transform-runtime":{
"absoluteRuntime": false,
"corejs": false,
"helpers": true,
"regenerator": true,
"useESModules": false
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.