From 0c4189f2ed1a62f9f6bd4e20a7fa16df797f841d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 5 Dec 2024 14:42:26 +0000 Subject: [PATCH] Remove stale webpack configuration (#28649) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- webpack.config.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 8448ca38f6..cfbbd52685 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -187,18 +187,6 @@ module.exports = (env, argv) => { }, resolve: { - // We define an alternative import path so we can safely use src/ across the react-sdk - // and js-sdk. We already import from src/ where possible to ensure our source maps are - // extremely accurate (and because we're capable of compiling the layers manually rather - // than relying on partially-mangled output from babel), though we do need to fix the - // package level import (stuff like `import {Thing} from "matrix-js-sdk"` for example). - // We can't use the aliasing down below to point at src/ because that'll fail to resolve - // the package.json for the dependency. Instead, we rely on the package.json of each - // layer to have our custom alternate fields to load things in the right order. These are - // the defaults of webpack prepended with `matrix_src_`. - mainFields: ["matrix_src_browser", "matrix_src_main", "browser", "main"], - aliasFields: ["matrix_src_browser", "browser"], - // We need to specify that TS can be resolved without an extension extensions: [".js", ".json", ".ts", ".tsx"], alias: {