-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sourcmaps): Add create-react-app option (#335)
- Loading branch information
Showing
4 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// @ts-ignore - clack is ESM and TS complains about that. It works though | ||
import clack from '@clack/prompts'; | ||
import { abortIfCancelled } from '../../utils/clack-utils'; | ||
|
||
export async function configureCRASourcemapGenerationFlow(): Promise<void> { | ||
await abortIfCancelled( | ||
clack.select({ | ||
message: `Verify that you are generating source maps when building your React app.\nGenerally this should already happen unless you set the GENERATE_SOURCEMAPS environment variable to false.`, | ||
options: [ | ||
{ | ||
label: 'I checked!', | ||
hint: 'My build output folder contains .js.map files after a build.', | ||
value: true, | ||
}, | ||
], | ||
initialValue: true, | ||
}), | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters