Skip to content

Commit 205cafd

Browse files
authored
1 parent ce456c3 commit 205cafd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/umi-build-dev/src/Service.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import clonedeep from 'lodash.clonedeep';
77
import assign from 'object-assign';
88
import { parse } from 'dotenv';
99
import signale from 'signale';
10+
import deprecate from 'deprecate';
1011
import getPaths from './getPaths';
1112
import getPlugins from './getPlugins';
1213
import PluginAPI from './PluginAPI';
@@ -263,6 +264,11 @@ ${getCodeFrame(e, { cwd: this.cwd })}
263264
const config = userConfig.getConfig({ force: true });
264265
mergeConfig(this.config, config);
265266
this.userConfig = userConfig;
267+
if (config.browserslist) {
268+
deprecate(
269+
'config.browserslist is deprecated, use config.targets instead',
270+
);
271+
}
266272
debug('got user config');
267273
debug(this.config);
268274

0 commit comments

Comments
 (0)