Skip to content

Commit

Permalink
fix(design-core): build error with monaco-editor (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexqi authored Nov 1, 2023
1 parent 25ecc86 commit 7f79659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/design-core/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit 7f79659

Please sign in to comment.