What does api.imply do?

前端 未结 2 1217
时光说笑
时光说笑 2020-12-11 01:00

From the Meteor docs:

Give users of this package access to another package (by passing in the string packagename) or a collection of pack

2条回答
  •  长情又很酷
    2020-12-11 01:38

    If you have something in your app that consumes api from package:name and you install just package package:dependant which has a package:name as a dependency, but you don't use imply here, your api from package:name will not work in the app. It will work only in package:dependant package. You need use imply if you want to use something from package:name outside your package:dependant

    I don't know if this is clear ;)

提交回复
热议问题