Skip to content

Commit c008919

Browse files
committed
fix: use splice
1 parent 84736a1 commit c008919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/webpack.config.bundle.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ module.exports = function (webpackEnv) {
144144
/**
145145
* We want all SVG files become part of the bundle.
146146
*/
147-
delete svgRule.oneOf[0];
147+
delete svgRule.oneOf.splice(0, 1);
148148
} else {
149149
svgRule.oneOf[0].use[1].options.name = '[name].[hash].[ext]';
150150
}

0 commit comments

Comments
 (0)