Skip to content

Commit de59873

Browse files
author
winjo
committed
feat: 导出 Uri 和 Emitter
1 parent 18e68ba commit de59873

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

packages/alex/src/api/exports.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { REPORT_NAME, BrowserFSFileType, HOME_ROOT, WORKSPACE_ROOT } from '@alipay/alex-core';
22

3+
export { Uri, Emitter } from '@ali/ide-core-common';
4+
35
export { getDefaultLayoutConfig } from '../core/layout';
46

57
export { REPORT_NAME, BrowserFSFileType, HOME_ROOT, WORKSPACE_ROOT };

packages/core/src/server/core/fs-launch.contribution.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class FileSystemConfigContribution extends Disposable implements FileSyst
4343
const workspaceFS = await BrowserFS.getFileSystem(fsConfig);
4444
rootFS.mount(workspaceDir, workspaceFS);
4545
} catch (err) {
46+
console.error('[Alex ERROR]: ', err);
4647
this.messageService.error(localize('workspace.initialize.failed'));
4748
// 使用内存作为回退文件系统
4849
rootFS.mount(

packages/toolkit/webpack/config.webview.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ module.exports = (option = {}) => {
2828
filename: `[name]${isDev ? '' : '.[contenthash:8]'}/index.html`,
2929
template: option.template || path.join(__dirname, '../public/webview.html'),
3030
inject: false,
31-
publicPath: 'https://gw.alipayobjects.com/os/alex-app',
31+
...(isDev
32+
? {}
33+
: {
34+
publicPath: 'https://gw.alipayobjects.com/os/alex-app',
35+
}),
3236
}),
3337
],
3438
};

0 commit comments

Comments
 (0)