webpack: Remove resolve.extensions from config.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-11-12 13:56:47 -08:00
committed by Tim Abbott
parent ec3177c834
commit e73f1a74f3
3 changed files with 60 additions and 64 deletions

View File

@@ -73,7 +73,7 @@ const config = (
: Object.fromEntries(
Object.entries({...assets, ...dev_assets}).map(([name, paths]) => [
name,
[...paths, "./src/debug"],
[...paths, "./src/debug.ts"],
]),
),
module: {
@@ -209,10 +209,6 @@ const config = (
chunkFilename: production ? "[contenthash].js" : "[id].js",
crossOriginLoading: "anonymous",
},
resolve: {
...baseConfig.resolve,
extensions: [".ts", ".js"],
},
// We prefer cheap-module-source-map over any eval-* options
// because stacktrace-gps doesn't currently support extracting
// the source snippets with the eval-* options.