File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1919
2020 * ` file-loader ` upgraded from 1.1 to 6 - #731 thanks to @weaverryan .
2121 [ CHANGELOG] ( https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md#600-2020-03-17 )
22- Unless you're doing custom configuration, it's unlikely you're affected.
22+ If you are importing images/fonts using the CommonJS syntax (` require('foo.png') ` ),
23+ you will now need to explicitely retrieve the default export (` require('foo.png').default ` )
24+ in order to get the path of the file.
25+ Imports done using the ` import ` keyword should not be affected.
2326
2427 * ` url-loader ` upgraded from allowing version 1 or 2 to allowing version 4 - #731 thanks to @weaverryan .
2528 [ CHANGELOG] ( https://github.com/webpack-contrib/url-loader/blob/master/CHANGELOG.md#400-2020-03-17 )
You can’t perform that action at this time.
0 commit comments