diff --git a/craco.config.js b/craco.config.js deleted file mode 100644 index dfec99f7c..000000000 --- a/craco.config.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * (c) 2021, Micro:bit Educational Foundation and contributors - * - * SPDX-License-Identifier: MIT - */ -const path = require("path"); -const fs = require("fs"); - -// Support optionally pulling in external branding if the module is installed. -const theme = "@microbit-foundation/python-editor-v3-microbit"; -const external = `node_modules/${theme}`; -const internal = "src/deployment/default"; - -module.exports = { - webpack: { - alias: { - "theme-package": fs.existsSync(external) - ? theme - : path.resolve(__dirname, internal), - }, - configure: { - ignoreWarnings: [ - // Temporary version of https://github.com/facebook/create-react-app/pull/11752 - function ignoreSourcemapsloaderWarnings(warning) { - return ( - warning.module && - warning.module.resource.includes("node_modules") && - warning.details && - warning.details.includes("source-map-loader") - ); - }, - ], - }, - }, - jest: { - configure: { - moduleNameMapper: { - "^theme-package(.*)$": `/${ - fs.existsSync(external) ? external : internal - }$1`, - "\\.worker": "/src/mocks/worker.js", - }, - }, - }, -};