Skip to content

Commit

Permalink
Add scheduler to React externals in build config
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite committed May 10, 2019
1 parent 39ef609 commit 8d02b97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/shared/__tests__/ReactDOMFrameScheduling-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('ReactDOMFrameScheduling', () => {
};
spyOnDevAndProd(console, 'error');
require('react-dom');
expect(console.error.calls.count()).toEqual(2);
expect(console.error.calls.count()).toEqual(1);
expect(console.error.calls.argsFor(0)[0]).toMatch(
"This browser doesn't support requestAnimationFrame.",
);
Expand Down
2 changes: 1 addition & 1 deletion scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const bundles = [
moduleType: ISOMORPHIC,
entry: 'react',
global: 'React',
externals: [],
externals: ['scheduler', 'scheduler/tracing'],
},

/******* React DOM *******/
Expand Down

0 comments on commit 8d02b97

Please sign in to comment.