From 8e20177cc0a42d4bf97b743deec909dc2db568e0 Mon Sep 17 00:00:00 2001 From: "Adolfo R. Brandes" Date: Sun, 30 Aug 2026 11:42:30 -0300 Subject: [PATCH 1/2] fix: silence unparseable third-party source map warnings Co-Authored-By: Claude --- tools/webpack/webpack.config.build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/webpack/webpack.config.build.ts b/tools/webpack/webpack.config.build.ts index 90aff18b..a02a8a38 100644 --- a/tools/webpack/webpack.config.build.ts +++ b/tools/webpack/webpack.config.build.ts @@ -25,6 +25,7 @@ const resolvedSiteI18nPath = getResolvedSiteI18nPath('src/i18n'); const config: Configuration = { mode: 'production', devtool: 'source-map', + ignoreWarnings: [/Failed to parse source map/], entry: { cssLayerOrder: '@openedx/frontend-base/shell/layer-order.scss', app: '@openedx/frontend-base/shell/site', From 533b953fa91e99cda5a82baa163c466eb9ae9024 Mon Sep 17 00:00:00 2001 From: "Adolfo R. Brandes" Date: Sun, 30 Aug 2026 12:19:43 -0300 Subject: [PATCH 2/2] fix: keep rootDir out of the tsconfig ts-loader reads Reverts the rootDir added in 8115f2a, which reintroduced the TS6059 errors that 28377f4 fixed. The CI typecheck gets its own config instead. Co-Authored-By: Claude --- package.json | 2 +- tsconfig.json | 3 +-- tsconfig.typecheck.json | 6 ++++++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 tsconfig.typecheck.json diff --git a/package.json b/package.json index b6e87747..8c31fde5 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "pack": "mkdir -p pack && npm pack --silent --pack-destination pack >/dev/null && mv \"$(ls -t pack/*.tgz | head -n 1)\" pack/openedx-frontend-base.tgz", "prepack": "npm run build", "test": "jest", - "typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tools/tsconfig.json", + "typecheck": "tsc --noEmit -p tsconfig.typecheck.json && tsc --noEmit -p tools/tsconfig.json", "watch:build": "nodemon --exec 'npm run build'", "watch:docs": "nodemon --watch docs/template --watch README.md --exec npm run docs", "watch:pack": "nodemon --exec 'npm run pack'", diff --git a/tsconfig.json b/tsconfig.json index 9abb32fc..f0748c68 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,7 @@ { "extends": "./tools/typescript/tsconfig.json", "compilerOptions": { - "outDir": "dist", - "rootDir": "." + "outDir": "dist" }, "include": [ "runtime/**/*", diff --git a/tsconfig.typecheck.json b/tsconfig.typecheck.json new file mode 100644 index 00000000..45805ff8 --- /dev/null +++ b/tsconfig.typecheck.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": "." + } +}