Skip to content

Commit bd49b89

Browse files
authored
Merge pull request #172 from housseindjirdeh/remove-cra-detection
2 parents 170e970 + b00d63a commit bd49b89

File tree

3 files changed

+0
-31
lines changed

3 files changed

+0
-31
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ supports:
2727
- [Closure Library](https://developers.google.com/closure/library/)
2828
- [ControlJS](https://stevesouders.com/controljs/)
2929
- [Core-js](https://github.com/zloirock/core-js)
30-
- [Create React App](https://create-react-app.dev/)
3130
- [CreateJS](https://createjs.com/)
3231
- [D3](https://d3js.org/)
3332
- [DC.js](https://dc-js.github.io/dc.js/)

icons/cra.png

-8.91 KB
Binary file not shown.

library/libraries.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,36 +1708,6 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = {
17081708
return false;
17091709
}
17101710
},
1711-
'Create React App': {
1712-
id: 'create-react-app',
1713-
icon: 'cra',
1714-
url: 'https://create-react-app.dev/',
1715-
npm: 'react-scripts',
1716-
test: async function (win) {
1717-
// CRA does not have any explicit markers
1718-
// This requests for an asset-manifest.json file that exists for mostly all v2 and v3 CRA apps
1719-
try {
1720-
const response = await fetch('asset-manifest.json');
1721-
1722-
if (!response.ok) {
1723-
return false;
1724-
}
1725-
const manifest = await response.json();
1726-
1727-
const hasFilesEntrypoints = manifest.files || manifest.entrypoints;
1728-
const containsMainBundle = manifest['main.js'] || (manifest.files && manifest.files['main.js']);
1729-
1730-
if (hasFilesEntrypoints || containsMainBundle) {
1731-
return { version: UNKNOWN_VERSION };
1732-
}
1733-
1734-
return false;
1735-
}
1736-
catch (err) {
1737-
return false;
1738-
}
1739-
}
1740-
},
17411711
'Drupal': {
17421712
id: 'drupal',
17431713
icon: 'drupal',

0 commit comments

Comments
 (0)