Skip to content

Commit f7c4b96

Browse files
huangfei1994flyhuang
andauthored
wedpr-web add babel config (#216)
* wedpr-web更新结果获取 * wedpr-web增加mpc,sql文档跳转 * add babel config --------- Co-authored-by: flyhuang <flyhuang@webank.com>
1 parent 4c013ad commit f7c4b96

File tree

3 files changed

+248
-45
lines changed

3 files changed

+248
-45
lines changed

wedpr-web/babel.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ if (process.env.NODE_ENV === 'production') {
1111
])
1212
}
1313
module.exports = {
14-
presets: [
15-
'@vue/cli-plugin-babel/preset'
16-
],
17-
plugins: [...prodPlugin]
14+
presets: ['@vue/cli-plugin-babel/preset'],
15+
plugins: [...prodPlugin, '@babel/plugin-transform-class-static-block']
1816
}

wedpr-web/package-lock.json

Lines changed: 245 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wedpr-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"devDependencies": {
3737
"@babel/core": "^7.12.16",
3838
"@babel/eslint-parser": "^7.12.16",
39+
"@babel/plugin-transform-class-static-block": "^7.26.0",
3940
"@vue/cli-plugin-babel": "~5.0.0",
4041
"@vue/cli-plugin-eslint": "~5.0.0",
4142
"@vue/cli-plugin-router": "~5.0.0",

0 commit comments

Comments
 (0)