Skip to content

Commit 0c4189f

Browse files
authored
Remove stale webpack configuration (element-hq#28649)
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 450cb60 commit 0c4189f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Diff for: webpack.config.js

-12
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,6 @@ module.exports = (env, argv) => {
187187
},
188188

189189
resolve: {
190-
// We define an alternative import path so we can safely use src/ across the react-sdk
191-
// and js-sdk. We already import from src/ where possible to ensure our source maps are
192-
// extremely accurate (and because we're capable of compiling the layers manually rather
193-
// than relying on partially-mangled output from babel), though we do need to fix the
194-
// package level import (stuff like `import {Thing} from "matrix-js-sdk"` for example).
195-
// We can't use the aliasing down below to point at src/ because that'll fail to resolve
196-
// the package.json for the dependency. Instead, we rely on the package.json of each
197-
// layer to have our custom alternate fields to load things in the right order. These are
198-
// the defaults of webpack prepended with `matrix_src_`.
199-
mainFields: ["matrix_src_browser", "matrix_src_main", "browser", "main"],
200-
aliasFields: ["matrix_src_browser", "browser"],
201-
202190
// We need to specify that TS can be resolved without an extension
203191
extensions: [".js", ".json", ".ts", ".tsx"],
204192
alias: {

0 commit comments

Comments
 (0)