Revert "Update webpack (#177265)"

This reverts commit e88eb65966.
This commit is contained in:
João Moreno
2023-03-17 18:55:15 +01:00
parent 5f9bbf37c1
commit c6fbb48ec4
6 changed files with 1527 additions and 383 deletions

View File

@@ -22,7 +22,8 @@ const tsLoaderOptions = {
onlyCompileBundledFiles: true,
};
function withNodeDefaults(/**@type WebpackConfig & { context: string }*/extConfig) {
function withNodeDefaults(/**@type WebpackConfig*/extConfig) {
/** @type WebpackConfig */
const defaultConfig = {
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
target: 'node', // extensions run in a node context
@@ -104,7 +105,7 @@ function nodePlugins(context) {
* }} AdditionalBrowserConfig
*/
function withBrowserDefaults(/**@type WebpackConfig & { context: string }*/extConfig, /** @type AdditionalBrowserConfig */ additionalOptions = {}) {
function withBrowserDefaults(/**@type WebpackConfig*/extConfig, /** @type AdditionalBrowserConfig */ additionalOptions = {}) {
/** @type WebpackConfig */
const defaultConfig = {
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')