Skip to content

Update 0.29.0 changelog regarding CommonJS imports following the file-loader update #757

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@

* `file-loader` upgraded from 1.1 to 6 - #731 thanks to @weaverryan.
[CHANGELOG](https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md#600-2020-03-17)
Unless you're doing custom configuration, it's unlikely you're affected.
If you are importing images/fonts using the CommonJS syntax (`require('foo.png')`),
you will now need to explicitely retrieve the default export (`require('foo.png').default`)
in order to get the path of the file.
Imports done using the `import` keyword should not be affected.

* `url-loader` upgraded from allowing version 1 or 2 to allowing version 4 - #731 thanks to @weaverryan.
[CHANGELOG](https://github.com/webpack-contrib/url-loader/blob/master/CHANGELOG.md#400-2020-03-17)
Expand Down