зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
92e6364dec
Коммит
c10b37a3ad
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче