fex-team / fis3-hook-amd

fis3 amd 模块化开发支持
BSD 2-Clause "Simplified" License
25 stars 9 forks source link

资源的id替换出错 #7

Closed harvey-woo closed 8 years ago

harvey-woo commented 9 years ago
    require(['../../../bower_components/armerjs/src/ui/suggestion'], function(){
        //......
    });        

release 之前

        require(['bower_components/armerjs/src/ui/suggestion'./../bower_components/armerjs/src/ui/suggestion0jsAsync'], function(){
        //......
    });        

release之后

   // .....
   fis.hook('amd');
   fis.hook('module', {
       mode: 'amd'
   });
   // ....

配置

oxUnd commented 9 years ago

module 已经被废弃,所以你只需要用 amd 即可。

2betop commented 9 years ago

两个性质相同的插件同时启用了吗?把 module 干掉吧