8000 需要匹配 node_modules/@ali/tingle-* 的路径 · Issue #8 · tinglejs/tingle-dev-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

需要匹配 node_modules/@ali/tingle-* 的路径 #8

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

Open
yize opened this issue Jan 7, 2016 · 1 comment
Open

需要匹配 node_modules/@ali/tingle-* 的路径 #8

yize opened this issue Jan 7, 2016 · 1 comment

Comments

@yize
Copy link
Contributor
yize commented Jan 7, 2016

babel loader 的 exclude 路径里,不能 exclude @ali 的路径

// tingle以外的modules都不需要经过babel解析
exclude: function (path) {
                    var isNpmModule = !!path.match(/node_modules/);
                    var isTingleModule = !!path.match(/node_modules[\/\\]tingle/);
                    return isNpmModule && !isTingleModule;
                },

更改为

// tingle以外的modules都不需要经过babel解析
exclude: function (path) {
                    var isNpmModule = !!path.match(/node_modules/);
                    var isTingleModule = !!path.match(/node_modules[\/\\](@ali[\/\\])?tingle/);
                    return isNpmModule && !isTingleModule;
                },
@gbk
Copy link
Contributor
gbk commented Jan 7, 2016

你 PR 吧~

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

2 participants
0