{"action":"created","issue":{"url":"https://api.github.com/repos/fex-team/fis3-postpackager-loader/issues/83","repository_url":"https://api.github.com/repos/fex-team/fis3-postpackager-loader","labels_url":"https://api.github.com/repos/fex-team/fis3-postpackager-loader/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/fis3-postpackager-loader/issues/83/comments","events_url":"https://api.github.com/repos/fex-team/fis3-postpackager-loader/issues/83/events","html_url":"https://github.com/fex-team/fis3-postpackager-loader/issues/83","id":191944003,"number":83,"title":"混用[es6]import和require会产生两个_aio.js文件","user":{"login":"fancyboynet","id":1636927,"avatar_url":"https://avatars.githubusercontent.com/u/1636927?v=3","gravatar_id":"","url":"https://api.github.com/users/fancyboynet","html_url":"https://github.com/fancyboynet","followers_url":"https://api.github.com/users/fancyboynet/followers","following_url":"https://api.github.com/users/fancyboynet/following{/other_user}","gists_url":"https://api.github.com/users/fancyboynet/gists{/gist_id}","starred_url":"https://api.github.com/users/fancyboynet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fancyboynet/subscriptions","organizations_url":"https://api.github.com/users/fancyboynet/orgs","repos_url":"https://api.github.com/users/fancyboynet/repos","events_url":"https://api.github.com/users/fancyboynet/events{/privacy}","received_events_url":"https://api.github.com/users/fancyboynet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-28T08:22:17Z","updated_at":"2016-11-28T09:40:36Z","closed_at":null,"body":"正常情况,只产生一个aio.js\r\n```\r\nvar $ = require('jquery')\r\nvar util = require('/widget/util/util')\r\nvar dom = require('/widget/dom/dom')\r\n```\r\n混用情况,会产生aio.js和aio2.js\r\n```\r\nvar $ = require('jquery')\r\nimport util from '/widget/util/util'\r\nvar dom = require('/widget/dom/dom')\r\n```\r\n\r\nfis.config\r\n```\r\n//babel\r\nfis.match('/{page,widget}/**.js', {\r\n    parser: fis.plugin('babel-5.x', {\r\n        stage: 3,\r\n        blacklist: [\"useStrict\"]\r\n    })\r\n})\r\n\r\nfis.match('::packager', {\r\n    // npm install [-g] fis3-postpackager-loader\r\n    // 分析 __RESOURCE_MAP__ 结构，来解决资源加载问题\r\n    postpackager: fis.plugin('loader', {\r\n        resourceType: 'mod',\r\n        useInlineMap: true // 资源映射表内嵌\r\n    })\r\n});\r\n\r\n// pack\r\nfis.media('prod')\r\n    // 启用打包插件，必须匹配 ::packager\r\n    .match('::packager', {\r\n        postpackager: fis.plugin('loader', {\r\n            allInOne: {\r\n                ignore: ['static/lib/**', 'node_modules/jquery/**']\r\n            }\r\n        }),\r\n        packager: fis.plugin('map'),\r\n        spriter: fis.plugin('csssprites', {\r\n            layout: 'matrix',\r\n            margin: '15'\r\n        })\r\n    });\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/fex-team/fis3-postpackager-loader/issues/comments/263225482","html_url":"https://github.com/fex-team/fis3-postpackager-loader/issues/83#issuecomment-263225482","issue_url":"https://api.github.com/repos/fex-team/fis3-postpackager-loader/issues/83","id":263225482,"user":{"login":"2betop","id":2698393,"avatar_url":"https://avatars.githubusercontent.com/u/2698393?v=3","gravatar_id":"","url":"https://api.github.com/users/2betop","html_url":"https://github.com/2betop","followers_url":"https://api.github.com/users/2betop/followers","following_url":"https://api.github.com/users/2betop/following{/other_user}","gists_url":"https://api.github.com/users/2betop/gists{/gist_id}","starred_url":"https://api.github.com/users/2betop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2betop/subscriptions","organizations_url":"https://api.github.com/users/2betop/orgs","repos_url":"https://api.github.com/users/2betop/repos","events_url":"https://api.github.com/users/2betop/events{/privacy}","received_events_url":"https://api.github.com/users/2betop/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T09:40:36Z","updated_at":"2016-11-28T09:40:36Z","body":"先看看 aio.js和aio2.js 之前隔了什么，看产出的 html 源码。"}}
{"actor":{"display_login":"2betop"}}