unable to split Firebase functions in multiple files

前端 未结 4 1877
名媛妹妹
名媛妹妹 2021-02-05 10:17

I\'m working with firebase functions and arrived to hundreds of functions, and now it is very hard to manage it in single index.js file as shown in their lots of ex

4条回答
  •  被撕碎了的回忆
    2021-02-05 10:49

    If you want support for multiple functions inside a file, this Gist show a real example of how to do it

    https://gist.github.com/saintplay/3f965e0aea933a1129cc2c9a823e74d7#file-index-js

    You can dynamically import functions for every *.function.js

提交回复
热议问题