vmware-archive / clarity

Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
http://clarity.design
MIT License
6.43k stars 762 forks source link

fix: include source code in source maps for webpack 5 #6698

Closed ashleyryan closed 2 years ago

ashleyryan commented 2 years ago

Fixes #6695

Signed-off-by: Ashley Ryan asryan@vmware.com

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

Webpack 5 using create-react-app will throw an exception when the app is startied about failing to parse source map

Issue Number: #6695

What is the new behavior?

Does this PR introduce a breaking change?

Other information

I tested this using yalc into a CRA repo where I was able to reproduce the original issue