Skip to content

Commit

Permalink
fix(webpack): assets should not be treaded as esModule (#6861)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathis-m committed Jan 22, 2021
1 parent eddde95 commit cdfb64f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion webpack/_config-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,17 @@ const baseRules = [
},
},
{ test: /\.(txt|yaml)$/, loader: "raw-loader" },
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: "url-loader" },
{
test: /\.(png|jpg|jpeg|gif|svg)$/,
use: [
{
loader: "url-loader",
options: {
esModule: false,
},
},
],
},
{
test: /\.(woff|woff2)$/,
loader: "url-loader?",
Expand Down

0 comments on commit cdfb64f

Please sign in to comment.