Skip to content

Commit 5f90749

Browse files
committed
Support latest version (v3) of CRA
1 parent 05b9d02 commit 5f90749

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
Binary file not shown.

packages/common/src/utils/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const getDebugger: () => (key: string) => (...message: any[]) => void = () => {
4545

4646
// @ts-ignore
4747
const debug = require('debug'); // eslint-disable-line global-require
48-
debug.enable('cs:*');
48+
// debug.enable('cs:*');
4949
// debug.disable('cs:cp-*');
5050
return debug;
5151
};

packages/common/src/utils/is-babel-7.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ function isCRAVersion2(dependencies: object, devDependencies: object) {
66
if (reactScriptsVersion) {
77
return (
88
/^[a-z]/.test(reactScriptsVersion) ||
9-
semver.intersects(reactScriptsVersion, '^2.0.0')
9+
semver.intersects(reactScriptsVersion, '^2.0.0') ||
10+
semver.intersects(reactScriptsVersion, '^3.0.0')
1011
);
1112
}
1213

0 commit comments

Comments
 (0)