我试图从我的项目gulpfile(theme/SiteTheme/frontend/
)中导入外部gulpfile(从供应商处),但不幸的是,我收到了错误:“ ReferenceError:在“供应商”中指定的未知插件“ transform-object-rest-spread” /SomeVendor/.babelrc“设置为0,试图相对于” vendors / SomeVendor“”进行解析。
这似乎是供应商中的问题.babelrc
,但是我不能更改或删除它,因为这是供应商的一部分。我的主题/项目gulpfile:
import './../../../vendors/SomeVendor/SomePackage/gulpfile.babel';
和目录结构: