Skip to content
New issue

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

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

Already on GitHub? # to your account

module processor在combine配置文件的时候报错 #107

Open
kekee000 opened this issue Jan 11, 2016 · 1 comment
Open

module processor在combine配置文件的时候报错 #107

kekee000 opened this issue Jan 11, 2016 · 1 comment

Comments

@kekee000
Copy link

在模块定义的时候,使用了模块简写:

define([
    {
        path: '/mobile/test'
    }
]);

然后module合并的时候挂了,报了这个错:

edp INFO Running ModuleCompiler
(16ms) ...
edp WARN TypeError: Cannot read property 'type' of undefined

改成了函数包裹的方式,就可以合并了:

define(function () {
    return [
        {
            path: '/mobile/test'
        }
    ];
});

module builder应该兼容一下简写的模块。

@leeight
Copy link
Member

leeight commented Jan 11, 2016

好像的确没有处理你说的这种情况

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

No branches or pull requests

2 participants