Skip to content

Commit 203c9c8

Browse files
committed
Don't use so many extensions
1 parent 37a83d4 commit 203c9c8

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

‎webpack.config.js‎

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,8 @@ module.exports = (env, argv) => ({
5555
mainFields: ['matrix_src_browser', 'matrix_src_main', 'browser', 'main'],
5656
aliasFields: ['matrix_src_browser', 'browser'],
5757

58-
// We need to ensure we can resolve TS files, but that also means we need to define
59-
// every single extension we might see, ever.
60-
extensions: [
61-
'.js',
62-
'.json',
63-
'.css',
64-
'.scss',
65-
'.ts',
66-
'.gif',
67-
'.png',
68-
'.svg',
69-
'.ttf',
70-
'.woff',
71-
'.woff2',
72-
'.xml',
73-
'.ico',
74-
'.wasm',
75-
],
58+
// We need to specify that TS can be resolved without an extension
59+
extensions: ['.js', '.json', '.ts'],
7660
alias: {
7761
// alias any requires to the react module to the one in our path,
7862
// otherwise we tend to get the react source included twice when

0 commit comments

Comments
 (0)