diff --git a/workspaces/adventure-pack/webpack.config.ts b/workspaces/adventure-pack/webpack.config.ts index f83bedf1..328dc771 100644 --- a/workspaces/adventure-pack/webpack.config.ts +++ b/workspaces/adventure-pack/webpack.config.ts @@ -51,7 +51,14 @@ const config: Configuration = { new WriteGoodiesJsonWebpackPlugin(), new WriteIndexHtmlWebpackPlugin(commitHash), - new ForkTsCheckerWebpackPlugin(), + // allowUnreachableCode necessary for tsgo (exhaustive switch handling differs from tsc) + new ForkTsCheckerWebpackPlugin({ + typescript: { + configOverwrite: { + compilerOptions: { allowUnreachableCode: true }, + }, + }, + }), ], optimization: { diff --git a/workspaces/download-leetcode-submissions/webpack.config.ts b/workspaces/download-leetcode-submissions/webpack.config.ts index 9358182e..97a02fc6 100644 --- a/workspaces/download-leetcode-submissions/webpack.config.ts +++ b/workspaces/download-leetcode-submissions/webpack.config.ts @@ -64,7 +64,14 @@ const config: Configuration = { new WebpackMakeOutputExecutablePlugin(), - new ForkTsCheckerWebpackPlugin(), + // allowUnreachableCode necessary for tsgo (exhaustive switch handling differs from tsc) + new ForkTsCheckerWebpackPlugin({ + typescript: { + configOverwrite: { + compilerOptions: { allowUnreachableCode: true }, + }, + }, + }), ], }; diff --git a/workspaces/fetch-leetcode-problem-list/webpack.config.ts b/workspaces/fetch-leetcode-problem-list/webpack.config.ts index 9358182e..97a02fc6 100644 --- a/workspaces/fetch-leetcode-problem-list/webpack.config.ts +++ b/workspaces/fetch-leetcode-problem-list/webpack.config.ts @@ -64,7 +64,14 @@ const config: Configuration = { new WebpackMakeOutputExecutablePlugin(), - new ForkTsCheckerWebpackPlugin(), + // allowUnreachableCode necessary for tsgo (exhaustive switch handling differs from tsc) + new ForkTsCheckerWebpackPlugin({ + typescript: { + configOverwrite: { + compilerOptions: { allowUnreachableCode: true }, + }, + }, + }), ], }; diff --git a/workspaces/fetch-recent-accepted-leetcode-submissions/webpack.config.ts b/workspaces/fetch-recent-accepted-leetcode-submissions/webpack.config.ts index 9358182e..97a02fc6 100644 --- a/workspaces/fetch-recent-accepted-leetcode-submissions/webpack.config.ts +++ b/workspaces/fetch-recent-accepted-leetcode-submissions/webpack.config.ts @@ -64,7 +64,14 @@ const config: Configuration = { new WebpackMakeOutputExecutablePlugin(), - new ForkTsCheckerWebpackPlugin(), + // allowUnreachableCode necessary for tsgo (exhaustive switch handling differs from tsc) + new ForkTsCheckerWebpackPlugin({ + typescript: { + configOverwrite: { + compilerOptions: { allowUnreachableCode: true }, + }, + }, + }), ], }; diff --git a/workspaces/leetcode-prettier-extension/webpack.config.ts b/workspaces/leetcode-prettier-extension/webpack.config.ts index c852f769..e09d0177 100644 --- a/workspaces/leetcode-prettier-extension/webpack.config.ts +++ b/workspaces/leetcode-prettier-extension/webpack.config.ts @@ -38,7 +38,14 @@ const config: Configuration = { }, plugins: [ - new ForkTsCheckerWebpackPlugin(), + // allowUnreachableCode necessary for tsgo (exhaustive switch handling differs from tsc) + new ForkTsCheckerWebpackPlugin({ + typescript: { + configOverwrite: { + compilerOptions: { allowUnreachableCode: true }, + }, + }, + }), new WebpackChromeExtensionManifestPlugin({ name: "LeetCode Prettier Formatting", diff --git a/workspaces/leetcode-zen-mode/webpack.config.ts b/workspaces/leetcode-zen-mode/webpack.config.ts index a399bf24..615971e1 100644 --- a/workspaces/leetcode-zen-mode/webpack.config.ts +++ b/workspaces/leetcode-zen-mode/webpack.config.ts @@ -70,7 +70,14 @@ const config: Configuration = { }, plugins: [ - new ForkTsCheckerWebpackPlugin(), + // allowUnreachableCode necessary for tsgo (exhaustive switch handling differs from tsc) + new ForkTsCheckerWebpackPlugin({ + typescript: { + configOverwrite: { + compilerOptions: { allowUnreachableCode: true }, + }, + }, + }), new WriteOptionsHtmlWebpackPlugin({ htmlFilename: OPTIONS_HTML_FILENAME, diff --git a/workspaces/post-leetcode-potd-to-discord/webpack.config.ts b/workspaces/post-leetcode-potd-to-discord/webpack.config.ts index 457f38f1..5a984ff2 100644 --- a/workspaces/post-leetcode-potd-to-discord/webpack.config.ts +++ b/workspaces/post-leetcode-potd-to-discord/webpack.config.ts @@ -70,7 +70,14 @@ const config: Configuration = { new WebpackMakeOutputExecutablePlugin(), - new ForkTsCheckerWebpackPlugin(), + // allowUnreachableCode necessary for tsgo (exhaustive switch handling differs from tsc) + new ForkTsCheckerWebpackPlugin({ + typescript: { + configOverwrite: { + compilerOptions: { allowUnreachableCode: true }, + }, + }, + }), ], }; diff --git a/workspaces/simon-game/webpack.config.ts b/workspaces/simon-game/webpack.config.ts index 21ebaecf..2f29756b 100644 --- a/workspaces/simon-game/webpack.config.ts +++ b/workspaces/simon-game/webpack.config.ts @@ -35,7 +35,14 @@ const config: Configuration = { }, plugins: [ - new ForkTsCheckerWebpackPlugin(), + // allowUnreachableCode necessary for tsgo (exhaustive switch handling differs from tsc) + new ForkTsCheckerWebpackPlugin({ + typescript: { + configOverwrite: { + compilerOptions: { allowUnreachableCode: true }, + }, + }, + }), new WriteIndexHtmlWebpackPlugin(), ],