This partially reverts commit 725dc3609a85728e3dbcbd77e740b5fed488c515.
While https://github.com/gatsbyjs/gatsby/pull/33979 fixed https://github.com/gatsbyjs/gatsby/issues/33450 issues with e.g.
raw-loader showed up. The syntax for inline loader syntax changed: https://webpack.js.org/guides/asset-modules/#replacing-inline-loader-syntax
It's a breaking change we can't make 😢
We'll need to revert the actual change (but keep the tests from the PR) and do this in the next major of Gatsby.
Note: Probably should use
asset instead of
asset/resource in next PR to have base64 inlining working.