Skip to content

Commit 448c021

Browse files
authored
Automatically remove testing code when ejecting.
1 parent dc6074a commit 448c021

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/react-scripts/scripts/start.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ var DEFAULT_PORT = process.env.PORT || 3000;
4141
var compiler;
4242
var handleCompile;
4343

44-
// You can safely remove this after ejecting.
45-
// We only use this block for testing of Create React App itself:
44+
// @remove-on-eject-begin
45+
// This block is used for testing of Create React App itself:
4646
var isSmokeTest = process.argv.some(arg => arg.indexOf('--smoke-test') > -1);
4747
if (isSmokeTest) {
4848
handleCompile = function (err, stats) {
@@ -53,6 +53,7 @@ if (isSmokeTest) {
5353
}
5454
};
5555
}
56+
// @remove-on-eject-end
5657

5758
function setupCompiler(host, port, protocol) {
5859
// "Compiler" is a low-level interface to Webpack.

0 commit comments

Comments
 (0)