TypeScript to JavvaScript IIFE for AMD / NodeJS / CommonJS / Browser global

前端 未结 0 404
攒了一身酷
攒了一身酷 2020-11-27 19:59

In my old JavaScript libraries I often use the following pattern:

;(function (root, factory) {
  \'use strict\';
  
  // AMD
  if (typeof define === \'functio         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题