How can I load my own js module with goog.provide and goog.require?

后端 未结 7 1092
小蘑菇
小蘑菇 2020-12-30 04:05

We are trying to switch the packaging for our project from dojo to google closure, but we haven\'t had any luck so far. Here is a simple example that illustrates what we are

7条回答
  •  旧巷少年郎
    2020-12-30 04:27

    Yes you should use calcdepds.py. I created a big blog post after much trial and error to figure out the best way to do this, I also go over the differences between dojo.require and goog.require:

    http://apphacker.wordpress.com/2009/12/28/howto-how-to-use-goog-require-and-goog-provide-for-your-own-code/

提交回复
热议问题