supporting both CommonJS and AMD

后端 未结 6 2259
臣服心动
臣服心动 2020-11-29 18:15

Is there a way to create a javascript micro-library (a library that has no dependencies), that support all of the following module formats:

  • Asynchronous Module
6条回答
  •  情歌与酒
    2020-11-29 18:55

    Here is a list of various cross-compatible module formats.

    I suspect that the one you're looking for is what they're calling "commonjsStrict.js"

提交回复
热议问题