Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对有依赖链的模块进行起别名后使用出现问题 #726

Open
dot888 opened this issue Jun 3, 2015 · 0 comments
Open

对有依赖链的模块进行起别名后使用出现问题 #726

dot888 opened this issue Jun 3, 2015 · 0 comments

Comments

@dot888
Copy link

dot888 commented Jun 3, 2015

<script src="http://g.tbcdn.cn/kissy/k/1.4.8/??seed-min.js,import-style-min.js"></script>
<script>
    KISSY.config(
    {
        packages: {
            'a': {
                base: '/assets/common-lib/',
                ignorePackageNameInUri:true
            }
        },
        debug:true
    });

    KISSY.config('modules', {
        'a/b': {
            alias:['a/a']
        }
    });

我有4个js,a.js、b.js、c.js、d.js

a依赖b、b依赖于c、c依赖于d

单独引入a会将它所有的依赖全站下下来,现在的问题是如果我给a/a模块起别名后,,然后如果我
在使用a/b来使用a/a这个模块时,a/a模块可以正常下载下来,但是其它所依赖的js就下载不下来了。

啥问题呀? 控制台里的错误是:Uncaught RangeError: Maximum call stack size exceeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant