File tree 4 files changed +6
-6
lines changed
friendly-errors/formatters
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function formatErrors(errors) {
22
22
chalk . red ( 'Module build failed: Module not found:' )
23
23
) ;
24
24
for ( let error of errors ) {
25
- messages . push ( error . file + ' contains a reference to the file ' + error . ref + '.' ) ;
25
+ messages . push ( ` ${ error . file } contains a reference to the file ${ error . ref } .` ) ;
26
26
messages . push ( 'This file can not be found, please check it for typos or update it if the file got moved.' ) ;
27
27
messages . push ( '' ) ;
28
28
}
Original file line number Diff line number Diff line change 10
10
'use strict' ;
11
11
12
12
const FriendlyErrorsWebpackPlugin = require ( 'friendly-errors-webpack-plugin' ) ;
13
- const missingCssFileransformer = require ( '../friendly-errors/transformers/missing-postcss-config ' ) ;
14
- const missingCssFileFormatter = require ( '../friendly-errors/formatters/missing-postcss-config ' ) ;
13
+ const missingCssFileTransformer = require ( '../friendly-errors/transformers/missing-css-file ' ) ;
14
+ const missingCssFileFormatter = require ( '../friendly-errors/formatters/missing-css-file ' ) ;
15
15
const missingLoaderTransformer = require ( '../friendly-errors/transformers/missing-loader' ) ;
16
16
const missingLoaderFormatter = require ( '../friendly-errors/formatters/missing-loader' ) ;
17
17
const missingPostCssConfigTransformer = require ( '../friendly-errors/transformers/missing-postcss-config' ) ;
@@ -26,7 +26,7 @@ module.exports = function(webpackConfig) {
26
26
const friendlyErrorsPluginOptions = {
27
27
clearConsole : false ,
28
28
additionalTransformers : [
29
- missingCssFileransformer ,
29
+ missingCssFileTransformer ,
30
30
missingLoaderTransformer ,
31
31
missingPostCssConfigTransformer
32
32
] ,
Original file line number Diff line number Diff line change 12
12
const expect = require ( 'chai' ) . expect ;
13
13
const formatter = require ( '../../../lib/friendly-errors/formatters/missing-css-file' ) ;
14
14
15
- describe ( 'formatters/missing-loader ' , ( ) => {
15
+ describe ( 'formatters/missing-css-file ' , ( ) => {
16
16
17
17
describe ( 'test format()' , ( ) => {
18
18
it ( 'works with no errors' , ( ) => {
Original file line number Diff line number Diff line change 12
12
const expect = require ( 'chai' ) . expect ;
13
13
const transform = require ( '../../../lib/friendly-errors/transformers/missing-css-file' ) ;
14
14
15
- describe ( 'transform/missing-loader ' , ( ) => {
15
+ describe ( 'transform/missing-css-file ' , ( ) => {
16
16
17
17
describe ( 'test transform' , ( ) => {
18
18
it ( 'Error not with "ModuleNotFoundError" name is ignored' , ( ) => {
You can’t perform that action at this time.
0 commit comments