Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
// tingle以外的modules都不需要经过babel解析
exclude: function (path) {
var isNpmModule = !!path.match(/node_modules/);
var isTingleModule = !!path.match(/node_modules[\/\\]tingle/);
var isTingleModule = !!path.match(/node_modules[\/\\](@ali[\/\\])?tingle/);
return isNpmModule && !isTingleModule;
},
loader: 'babel-loader?stage=1'
Expand All @@ -54,4 +54,4 @@ module.exports = {
__PRO__: false // 生产环境
})
]
};
};