Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion workspaces/adventure-pack/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
},
},
}),
],
};

Expand Down
9 changes: 8 additions & 1 deletion workspaces/fetch-leetcode-problem-list/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
},
},
}),
],
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
},
},
}),
],
};

Expand Down
9 changes: 8 additions & 1 deletion workspaces/leetcode-prettier-extension/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 8 additions & 1 deletion workspaces/leetcode-zen-mode/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
},
},
}),
],
};

Expand Down
9 changes: 8 additions & 1 deletion workspaces/simon-game/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
],
Expand Down
Loading