file a.js
import {test} from 'b.js'
file b.js
export {
tester
}
There is no test module was export in b.js.
Webpack mode is production.
Webpack build result is:
WARNING in a.js
export ‘test’ (imported as ‘test’) was not found in b.js
How to turn the WARNING information into ERROR information?
I want to know which Webpack configuration controls this output result.
Thank you.
2
Answers
I find the configuration in module.
change your webpack.config.js to
edit: according to https://webpack.js.org/configuration/stats/
try: