通用Javascript模块加载器:SystemJS

jopen 10年前

通用动态模块加载 - 用于在在浏览器和NodeJS中加载ES6模块,AMD,CommonJS和全局脚本。

   // Identical to writing System.baseURL = ...    System.config({        // set all requires to "lib" for library code      baseURL: '/lib/',        // set "app" as an exception for our application code      paths: {        'app/*': '/app/*.js'      }    });      System.import('app/app')

项目主页:http://www.open-open.com/lib/view/home/1420785944296