webpack-contrib / webpack-defaults

Defaults to be shared across webpack projects
MIT License
108 stars 28 forks source link

chore: replace deprecated String.prototype.substr() #203

Open CommanderRoot opened 2 years ago

CommanderRoot commented 2 years ago

This PR contains a:

Motivation / Use-Case

String.prototype.substr() is deprecated so we replace it with String.prototype.slice() which works similarily but isn't deprecated. .substr() probably isn't going away anytime soon but the change is trivial so it doesn't hurt to do it.

Breaking Changes

None

Additional Info