seek-oss / playroom

Design with JSX, powered by your own component library.
MIT License
4.45k stars 183 forks source link

fix: Correct rule.use to an array #237

Closed mihkeleidast closed 2 years ago

mihkeleidast commented 2 years ago

According to webpack documentation, rule.use should be an array. I believe it was once allowed to be an object and is still backwards compatible.

For more background, I use external-svg-sprite-loader which iterates over the rules/loaders and expects rule.use to be an array per the webpack docs. Trying to use playroom but running into bensampaio/external-svg-sprite-loader#58 at the moment, this change should fix the issue.