We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce456c3 commit 205cafdCopy full SHA for 205cafd
1 file changed
packages/umi-build-dev/src/Service.js
@@ -7,6 +7,7 @@ import clonedeep from 'lodash.clonedeep';
7
import assign from 'object-assign';
8
import { parse } from 'dotenv';
9
import signale from 'signale';
10
+import deprecate from 'deprecate';
11
import getPaths from './getPaths';
12
import getPlugins from './getPlugins';
13
import PluginAPI from './PluginAPI';
@@ -263,6 +264,11 @@ ${getCodeFrame(e, { cwd: this.cwd })}
263
264
const config = userConfig.getConfig({ force: true });
265
mergeConfig(this.config, config);
266
this.userConfig = userConfig;
267
+ if (config.browserslist) {
268
+ deprecate(
269
+ 'config.browserslist is deprecated, use config.targets instead',
270
+ );
271
+ }
272
debug('got user config');
273
debug(this.config);
274
0 commit comments