Skip to content

Commit 06782ae

Browse files
authored
Merge branch 'master' into vue3-support
2 parents e51165d + ca61eea commit 06782ae

File tree

12 files changed

+132
-82
lines changed

12 files changed

+132
-82
lines changed

bin/encore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
const parseRuntime = require('../lib/config/parse-runtime');
1414
const context = require('../lib/context');
15-
const chalk = require('chalk').default;
15+
const chalk = require('chalk');
1616
const logger = require('../lib/logger');
1717

1818
const runtimeConfig = parseRuntime(

lib/EncoreProxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313
const levenshtein = require('fast-levenshtein');
1414
const prettyError = require('./utils/pretty-error');
1515

lib/config/parse-runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.exports = function(argv, cwd) {
6464

6565
runtimeConfig.context = argv.context;
6666
if (typeof runtimeConfig.context === 'undefined') {
67-
const packagesPath = pkgUp.sync(cwd);
67+
const packagesPath = pkgUp.sync({ cwd });
6868

6969
if (null === packagesPath) {
7070
throw new Error('Cannot determine webpack context. (Are you executing webpack from a directory outside of your project?). Try passing the --context option.');

lib/friendly-errors/asset-output-display-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313

1414
function AssetOutputDisplayPlugin(outputPath, friendlyErrorsPlugin) {
1515
this.outputPath = outputPath;

lib/friendly-errors/formatters/missing-css-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313

1414
function formatErrors(errors) {
1515
if (errors.length === 0) {

lib/friendly-errors/formatters/missing-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313
const loaderFeatures = require('../../features');
1414

1515
function formatErrors(errors) {

lib/friendly-errors/formatters/missing-postcss-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313

1414
function formatErrors(errors) {
1515
if (errors.length === 0) {

lib/loaders/eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
}
4646
} catch (e) {
4747
if (isMissingConfigError(e)) {
48-
const chalk = require('chalk').default;
48+
const chalk = require('chalk');
4949
const packageHelper = require('../package-helper');
5050

5151
const message = `No ESLint configration has been found.

lib/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313

1414
const messagesKeys = [
1515
'debug',

lib/package-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313
const fs = require('fs');
1414
const logger = require('./logger');
1515
const semver = require('semver');

0 commit comments

Comments
 (0)