Skip to content

Commit 819cee6

Browse files
committed
feature #976 Change friendly-errors-webpack-plugin to @nuxt/friendly-errors-webpack-plugin (hailwood)
This PR was merged into the main branch. Discussion ---------- Change friendly-errors-webpack-plugin to `@nuxt`/friendly-errors-webpack-plugin Fixes #922. Seems to just be a drop-in replacement from my testing. Commits ------- a8a86bb Change friendly-errors-webpack-plugin to `@nuxt`/friendly-errors-webpack-plugin
2 parents 2dc37ae + a8a86bb commit 819cee6

File tree

6 files changed

+23
-30
lines changed

6 files changed

+23
-30
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ class Encore {
124124
}
125125

126126
/**
127-
* Allows you to configure the options passed to the friendly-errors-webpack-plugin.
128-
* A list of available options can be found at https://github.com/geowarin/friendly-errors-webpack-plugin
127+
* Allows you to configure the options passed to the @nuxt/friendly-errors-webpack-plugin.
128+
* A list of available options can be found at https://github.com/nuxt/friendly-errors-webpack-plugin
129129
*
130130
* For example:
131131
*

lib/plugins/asset-output-display.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'use strict';
1111

1212
const WebpackConfig = require('../WebpackConfig'); //eslint-disable-line no-unused-vars
13-
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin'); //eslint-disable-line no-unused-vars
13+
const FriendlyErrorsWebpackPlugin = require('@nuxt/friendly-errors-webpack-plugin'); //eslint-disable-line no-unused-vars
1414
const pathUtil = require('../config/path-util');
1515
const AssetOutputDisplayPlugin = require('../friendly-errors/asset-output-display-plugin');
1616
const PluginPriorities = require('./plugin-priorities');

lib/plugins/friendly-errors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'use strict';
1111

1212
const WebpackConfig = require('../WebpackConfig'); //eslint-disable-line no-unused-vars
13-
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
13+
const FriendlyErrorsWebpackPlugin = require('@nuxt/friendly-errors-webpack-plugin');
1414
const missingCssFileTransformer = require('../friendly-errors/transformers/missing-css-file');
1515
const missingCssFileFormatter = require('../friendly-errors/formatters/missing-css-file');
1616
const missingLoaderTransformerFactory = require('../friendly-errors/transformers/missing-loader');

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
"@babel/core": "^7.7.0",
2929
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
3030
"@babel/preset-env": "^7.10.0",
31+
"@nuxt/friendly-errors-webpack-plugin": "^2.5.1",
3132
"assets-webpack-plugin": "7.0.*",
3233
"babel-loader": "^8.2.2",
3334
"chalk": "^4.0.0",
3435
"clean-webpack-plugin": "^3.0.0",
3536
"css-loader": "^5.2.4",
3637
"css-minimizer-webpack-plugin": "^2.0.0",
3738
"fast-levenshtein": "^3.0.0",
38-
"friendly-errors-webpack-plugin": "^2.0.0-beta.2",
3939
"loader-utils": "^2.0.0",
4040
"mini-css-extract-plugin": "^1.5.0",
4141
"pkg-up": "^3.1.0",

test/plugins/friendly-errors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'use strict';
1111

1212
const expect = require('chai').expect;
13-
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
13+
const FriendlyErrorsWebpackPlugin = require('@nuxt/friendly-errors-webpack-plugin');
1414
const WebpackConfig = require('../../lib/WebpackConfig');
1515
const RuntimeConfig = require('../../lib/config/RuntimeConfig');
1616
const friendlyErrorsPluginUtil = require('../../lib/plugins/friendly-errors');

yarn.lock

+17-24
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,16 @@
955955
"@nodelib/fs.scandir" "2.1.4"
956956
fastq "^1.6.0"
957957

958+
"@nuxt/friendly-errors-webpack-plugin@^2.5.1":
959+
version "2.5.1"
960+
resolved "https://registry.yarnpkg.com/@nuxt/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-2.5.1.tgz#3ab815c31eb43859a239848a85481157aaf7b07e"
961+
integrity sha512-mKN0Mbb1PjJYBzrswsyWvSEZw5Jxi0fQZPMA0ssrTmkz9lvtxtXq4luhX31OpULUvbc0jLaBu/SL0ExlxIbTlw==
962+
dependencies:
963+
chalk "^2.3.2"
964+
consola "^2.6.0"
965+
error-stack-parser "^2.0.0"
966+
string-width "^2.0.0"
967+
958968
"@sinonjs/commons@^1.6.0", "@sinonjs/commons@^1.7.0", "@sinonjs/commons@^1.8.1":
959969
version "1.8.3"
960970
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d"
@@ -1561,11 +1571,6 @@ ansi-regex@^3.0.0:
15611571
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998"
15621572
integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=
15631573

1564-
ansi-regex@^4.1.0:
1565-
version "4.1.0"
1566-
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997"
1567-
integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==
1568-
15691574
ansi-regex@^5.0.0:
15701575
version "5.0.0"
15711576
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75"
@@ -2034,7 +2039,7 @@ chai@^4.2.0:
20342039
pathval "^1.1.1"
20352040
type-detect "^4.0.5"
20362041

2037-
chalk@^2.0.0, chalk@^2.4.2:
2042+
chalk@^2.0.0, chalk@^2.3.2, chalk@^2.4.2:
20382043
version "2.4.2"
20392044
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
20402045
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
@@ -2216,6 +2221,11 @@ connect-history-api-fallback@^1.6.0:
22162221
resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz#8b32089359308d111115d81cad3fceab888f97bc"
22172222
integrity sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==
22182223

2224+
consola@^2.6.0:
2225+
version "2.15.3"
2226+
resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.3.tgz#2e11f98d6a4be71ff72e0bdf07bd23e12cb61550"
2227+
integrity sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==
2228+
22192229
consolidate@^0.16.0:
22202230
version "0.16.0"
22212231
resolved "https://registry.yarnpkg.com/consolidate/-/consolidate-0.16.0.tgz#a11864768930f2f19431660a65906668f5fbdc16"
@@ -2898,7 +2908,7 @@ error-ex@^1.2.0, error-ex@^1.3.1:
28982908
dependencies:
28992909
is-arrayish "^0.2.1"
29002910

2901-
error-stack-parser@^2.0.2:
2911+
error-stack-parser@^2.0.0:
29022912
version "2.0.6"
29032913
resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.0.6.tgz#5a99a707bd7a4c58a797902d48d82803ede6aad8"
29042914
integrity sha512-d51brTeqC+BHlwF0BhPtcYgF5nlzf9ZZ0ZIUQNZpc9ZB9qw5IJ2diTrBY9jlCJkTLITYPjmiX6OWCwH+fuyNgQ==
@@ -3496,16 +3506,6 @@ [email protected]:
34963506
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
34973507
integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=
34983508

3499-
friendly-errors-webpack-plugin@^2.0.0-beta.2:
3500-
version "2.0.0-beta.2"
3501-
resolved "https://registry.yarnpkg.com/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-2.0.0-beta.2.tgz#69987c67c2ed3e93847248f8ba1920f75f6ff45c"
3502-
integrity sha512-0x14cdjGx5q0yZc3Cy9sgAF/szWUFx1WxH/IX88UuKbM5Z+7FCk/Z/6hFbXMcz3qqK0mp7WrHKX3cxhUAL2aqQ==
3503-
dependencies:
3504-
chalk "^2.4.2"
3505-
error-stack-parser "^2.0.2"
3506-
string-width "^2.0.0"
3507-
strip-ansi "^5"
3508-
35093509
fs-extra@^8.1.0:
35103510
version "8.1.0"
35113511
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
@@ -6638,13 +6638,6 @@ strip-ansi@^4.0.0:
66386638
dependencies:
66396639
ansi-regex "^3.0.0"
66406640

6641-
strip-ansi@^5:
6642-
version "5.2.0"
6643-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae"
6644-
integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==
6645-
dependencies:
6646-
ansi-regex "^4.1.0"
6647-
66486641
strip-ansi@^6.0.0:
66496642
version "6.0.0"
66506643
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532"

0 commit comments

Comments
 (0)