chore: amis-core 产出存在 esm/node_modules 问题处理

This commit is contained in:
2betop 2024-05-21 11:22:11 +08:00
parent 1e65ac13af
commit bbb1d64c35
2 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,7 @@
"esm"
],
"dependencies": {
"@rc-component/mini-decimal": "^1.0.1",
"amis-formula": "^6.4.1",
"classnames": "2.3.2",
"file-saver": "^2.0.2",

View File

@ -39,7 +39,8 @@ const external = id => {
'prop-types',
'markdown-it-html5-media',
'mdurl',
'uc.micro'
'uc.micro',
'@babel/runtime'
])
.map(value =>
value.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d')