From 203c9c8a7d1790d109defd4022fd35644843fddd Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 8 Jan 2020 15:11:23 -0700 Subject: [PATCH] Don't use so many extensions --- webpack.config.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 178f591fbf..f1c23617da 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -55,24 +55,8 @@ module.exports = (env, argv) => ({ mainFields: ['matrix_src_browser', 'matrix_src_main', 'browser', 'main'], aliasFields: ['matrix_src_browser', 'browser'], - // We need to ensure we can resolve TS files, but that also means we need to define - // every single extension we might see, ever. - extensions: [ - '.js', - '.json', - '.css', - '.scss', - '.ts', - '.gif', - '.png', - '.svg', - '.ttf', - '.woff', - '.woff2', - '.xml', - '.ico', - '.wasm', - ], + // We need to specify that TS can be resolved without an extension + extensions: ['.js', '.json', '.ts'], alias: { // alias any requires to the react module to the one in our path, // otherwise we tend to get the react source included twice when