You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/WebpackConfig.js
+11-2
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,12 @@
1
+
/*
2
+
* This file is part of the Symfony package.
3
+
*
4
+
* (c) Fabien Potencier <fabien@symfony.com>
5
+
*
6
+
* For the full copyright and license information, please view the LICENSE
7
+
* file that was distributed with this source code.
8
+
*/
9
+
1
10
'use strict';
2
11
3
12
constpath=require('path');
@@ -155,11 +164,11 @@ class WebpackConfig {
155
164
156
165
configureBabel(callback){
157
166
if(typeofcallback!=='function'){
158
-
thrownewError(`Argument 1 to configureBabel() must be a callback function.`);
167
+
thrownewError('Argument 1 to configureBabel() must be a callback function.');
159
168
}
160
169
161
170
if(this.doesBabelRcFileExist()){
162
-
thrownewError(`configureBabel() cannot be called because your app has a .babelrc file. Either put all of your Babel configuration in that file, or delete it and use this function.`);
171
+
thrownewError('configureBabel() cannot be called because your app has a .babelrc file. Either put all of your Babel configuration in that file, or delete it and use this function.');
0 commit comments