Remove www scheduler fork (#13545)
Remove unused www scheduler fork
Dan Abramov committed
Sep 3, 2018 at 19:55 UTC
c1ba7b8cfd6e194f5cf6b0066c708ae48fd2ad67
2 files changed
+2
-21
packages/shared/forks/Schedule.www.js
deleted
-15
@@ -1,15 +0,0 @@
1
-/**
2
- * Copyright (c) 2013-present, Facebook, Inc.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
-'use strict';
9
-const {
10
- unstable_now,
11
- unstable_scheduleWork,
12
- unstable_cancelScheduledWork,
13
-} = require('customSchedule');
14
-
15
-export {unstable_now, unstable_scheduleWork, unstable_cancelScheduledWork};
scripts/rollup/forks.js
+2
-6
@@ -116,10 +116,6 @@ const forks = Object.freeze({
116
117
schedule: (bundleType, entry, dependencies) => {
118
switch (bundleType) {
119
- case FB_WWW_DEV:
120
- case FB_WWW_PROD:
121
- case FB_WWW_PROFILING:
122
- return 'shared/forks/Schedule.www.js';
119
case UMD_DEV:
120
case UMD_PROD:
121
if (dependencies.indexOf('react') === -1) {
@@ -131,7 +127,7 @@ const forks = Object.freeze({
127
// package instead of requiring it to be loaded via a separate <script> tag
128
return 'shared/forks/Schedule.umd.js';
129
default:
134
- // For CJS bundles, use the shared NPM package.
130
+ // For other bundles, use the shared NPM package.
131
return null;
132
}
133
},
@@ -149,7 +145,7 @@ const forks = Object.freeze({
145
// package instead of requiring it to be loaded via a separate <script> tag
146
return 'shared/forks/ScheduleTracking.umd.js';
147
default:
152
- // For CJS bundles, use the shared NPM package.
148
+ // For other bundles, use the shared NPM package.
149
return null;
150
}
151
},