{"action":"opened","issue":{"number":98,"created_at":"2011-10-12T03:31:14Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"libs 目录下的文件内容又两种书写形式：\r\n\r\ndefine(deps, fn)\r\n=============\r\n\r\n1. 好处是：id 由文件名指定，require('jquery/1.6.1/jquery') 可以直接用\r\n1. 缺点是：无法直接使用 combo 服务合并多个 libs 文件\r\n\r\n\r\ndefine(id, deps, fn)\r\n===============\r\n\r\n1. 好处是：可以使用 combo 服务合并多个 libs 文件\r\n2. 坏处是：使用时，必须先在 alias({ 'jquery': 'jquery/1/6.1/jquery' }), 然后通过 require('jquery') 调用\r\n\r\n\r\n上面两种形式各有利弊，考虑改善如下：\r\n\r\nhttp://path/to/jquery/1.6.1/jquery.js:\r\n\r\n````\r\ndefine('jquery', [], fn) {}\r\n````\r\n\r\na.js:\r\n\r\n````\r\n...\r\nrequire('jquery/1.6.1/jquery')\r\n...\r\n````\r\n\r\nb.js:\r\n\r\n````\r\nrequire('jquery')\r\n````\r\n\r\n\r\n同时要支持 combo 合并。","comments":0,"title":"improve package support","updated_at":"2011-10-12T03:31:14Z","url":"https://api.github.com/repos/seajs/seajs/issues/98","id":1883993,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/db33090541526c03c798f82aa0a5dbaa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/lifesinger","id":97227,"login":"lifesinger"},"html_url":"https://github.com/seajs/seajs/issues/98","labels":[],"state":"open"},"legacy":{"number":98,"action":"opened","issue":1883993}}