Bug 1630657 - The React callstack group should include react-dom-dev. r=davidwalsh

Differential Revision: https://phabricator.services.mozilla.com/D71192
This commit is contained in:
Jason Laster 2020-04-23 21:44:09 +00:00
Родитель 92e6364dec
Коммит c10b37a3ad
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -26,7 +26,7 @@ const libraryMap = [
},
{
label: "React",
pattern: /(node_modules\/(?:react|react-dom)\/)|(react(-dom)?(\.[a-z]+)*\.js$)/,
pattern: /(node_modules\/(?:react(-dom)?(-dev)?\/))|(react(-dom)?(-dev)?(\.[a-z]+)*\.js$)/,
},
{
label: "Immutable",

Просмотреть файл

@ -65,8 +65,11 @@ describe("getLibraryFromUrl", () => {
"https://debugger-example.com/react-dom.production.min.js",
"https://debugger-react-example.com/react-dom.js",
"https://debugger-react-example.com/react/react-dom.js",
"https://debugger-react-example.com/react-dom-dev.js",
"/node_modules/react/test.js",
"/node_modules/react-dev/test.js",
"/node_modules/react-dom/test.js",
"/node_modules/react-dom-dev/test.js",
];
reactUrlList.forEach(reactUrl => {
const frame = makeMockFrameWithURL(reactUrl);