瀏覽代碼

Bumps node types version

Ensures classname don't get mangled
main
Eric Amodio 1 年之前
父節點
當前提交
1109ec8be7
共有 3 個檔案被更改,包括 11 行新增7 行删除
  1. +1
    -1
      package.json
  2. +6
    -2
      webpack.config.js
  3. +4
    -4
      yarn.lock

+ 1
- 1
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",

+ 6
- 2
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,
},
}),

+ 4
- 4
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"

Loading…
取消
儲存