Skip to content

Commit

Permalink
feat: 默认支持lodash-es的编译
Browse files Browse the repository at this point in the history
  • Loading branch information
hxfdarling committed Mar 23, 2019
1 parent ff1b8d2 commit 5ecb423
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/a8k/src/webpack/rules/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = (config, context, { type }) => {
.include // 热重载插件需要被编译
.add(context.resolve('src'))
.add(context.resolve('node_modules/@tencent'))
.add(/lodash-es/)
// 开发模式注入的代码,需要编译,否则 ie 下面不支持const语法
.add(path.resolve(require.resolve('@a8k/dev-utils/webpackHotDevClient'), '../'))
.add(/strip-ansi|chalk|ansi-styles|ansi-regex/);
Expand Down

0 comments on commit 5ecb423

Please sign in to comment.