fix(design-core): build error with monaco-editor (#57)

This commit is contained in:
Hexqi 2023-10-31 18:17:58 -07:00 committed by GitHub
parent 25ecc86d8e
commit 7f79659f5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -213,8 +213,8 @@ const importMapStyles = [`https://unpkg.com/@opentiny/vue-theme@${importMapVersi
export default defineConfig(({ command, mode }) => {
const monacoPublicPath = {
local: 'editor/monaco-workers',
alpha: '', // 需要填写openTiny的cdn地址
prod: '' // 需要填写openTiny的cdn地址
alpha: 'https://tinyengine-assets.obs.cn-north-4.myhuaweicloud.com/files/monaco-assets',
prod: 'https://tinyengine-assets.obs.cn-north-4.myhuaweicloud.com/files/monaco-assets'
}
let monacoEditorPluginInstance = monacoEditorPlugin({ publicPath: monacoPublicPath.local })