feat: fix $ctx redefine issue

Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
(cherry picked from commit cbe66f4660fa58dcbb8254220f507b5514fdf41d)
This commit is contained in:
Yi-Ya Chen 2025-02-14 14:18:17 +08:00 committed by Mergify
parent 083ab9f3e9
commit f863b881a9
3 changed files with 12 additions and 2 deletions

View File

@ -12,7 +12,8 @@
"ip": "2.0.1",
"node-polyfill-webpack-plugin": "^3.0.0",
"vue-draggable-next": "^2.2.1",
"yaml": "^2.5.1"
"yaml": "^2.5.1",
"@babel/plugin-transform-class-static-block": "7.26.0"
},
"resolutions": {
"@types/node": "~20.10.0",

View File

@ -1 +1,9 @@
module.exports = require('@rancher/shell/pkg/babel.config');
const baseConfig = require('@rancher/shell/pkg/babel.config');
module.exports = {
...baseConfig,
plugins: [
...(baseConfig.plugins || []),
'@babel/plugin-transform-class-static-block'
]
};

View File

@ -8,6 +8,7 @@
"importHelpers": true,
"moduleResolution": "node",
"skipLibCheck": true,
"useDefineForClassFields": false,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,