webpack: Trim resolve.extensions.

We don’t have any .tsx files, and nobody expects to be able to omit
the extension when importing .json, .scss, or .css files.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2019-06-20 17:01:59 -07:00
committed by Tim Abbott
parent 11a305e320
commit fc3305b623

View File

@@ -101,7 +101,7 @@ export default (env?: string): webpack.Configuration => {
"node_modules",
resolve(__dirname, "../"),
],
extensions: [".tsx", ".ts", ".js", ".json", ".scss", ".css"],
extensions: [".ts", ".js"],
},
// We prefer cheap-module-source-map over any eval-** options
// because the eval-options currently don't support being