0
我不明白如何使用CommonJS模块加载外部资源。使用CommonJS加载外部资源
RequireJS提供垫片CONFIGS像:
require.config({
shim: {
'facebook' : {
export: 'FB'
}
},
paths: {
'facebook': '//connect.facebook.net/en_US/all/debug'
}
});
我怎样才能做同样的CommonJS的?