From 1109ec8be7ba26af849e8c03c7db37e835f2934a Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 30 Nov 2023 12:37:34 -0500 Subject: [PATCH] Bumps node types version Ensures classname don't get mangled --- package.json | 2 +- webpack.config.js | 8 ++++++-- yarn.lock | 8 ++++---- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index dd259ba..122f7b7 100644 --- a/package.json +++ b/package.json @@ -15819,7 +15819,7 @@ "@swc/core": "1.3.99", "@twbs/fantasticon": "2.7.1", "@types/mocha": "10.0.6", - "@types/node": "16.11.47", + "@types/node": "18.15.0", "@types/react": "17.0.71", "@types/react-dom": "17.0.21", "@types/sortablejs": "1.15.7", diff --git a/webpack.config.js b/webpack.config.js index db31096..9d640c7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -164,6 +164,8 @@ function getExtensionConfig(target, mode, env) { compress: { drop_debugger: true, ecma: 2020, + // Keep the class names otherwise @log won't provide a useful name + keep_classnames: true, module: true, }, ecma: 2020, @@ -411,6 +413,8 @@ function getWebviewsConfig(mode, env) { drop_debugger: true, drop_console: true, ecma: 2020, + // Keep the class names otherwise @log won't provide a useful name + keep_classnames: true, module: true, }, ecma: 2020, @@ -418,8 +422,8 @@ function getWebviewsConfig(mode, env) { comments: false, ecma: 2020, }, - // // Keep the class names otherwise @log won't provide a useful name - // keep_classnames: true, + // Keep the class names otherwise @log won't provide a useful name + keep_classnames: true, module: true, }, }), diff --git a/yarn.lock b/yarn.lock index 928015c..45fb69d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -817,10 +817,10 @@ dependencies: undici-types "~5.26.4" -"@types/node@16.11.47": - version "16.11.47" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.47.tgz#efa9e3e0f72e7aa6a138055dace7437a83d9f91c" - integrity sha512-fpP+jk2zJ4VW66+wAMFoBJlx1bxmBKx4DUFf68UHgdGCOuyUTDlLWqsaNPJh7xhNDykyJ9eIzAygilP/4WoN8g== +"@types/node@18.15.0": + version "18.15.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.0.tgz#286a65e3fdffd691e170541e6ecb0410b16a38be" + integrity sha512-z6nr0TTEOBGkzLGmbypWOGnpSpSIBorEhC4L+4HeQ2iezKCi4f77kyslRwvHeNitymGQ+oFyIWGP96l/DPSV9w== "@types/normalize-package-data@^2.4.0": version "2.4.4"