Refact dependencies of doric

This commit is contained in:
pengfei.zhou
2021-10-29 14:30:00 +08:00
committed by osborn
parent 12234d3035
commit d02773180d
12 changed files with 3518 additions and 2330 deletions

View File

@@ -4913,7 +4913,7 @@ function initNativeEnvironment(source) {
return __awaiter(this, void 0, void 0, function* () {
// dev kit client
return new Promise((resolve, reject) => {
const ws = new WebSocket__default['default']('ws://localhost:7777')
const ws = new WebSocket__default["default"]('ws://localhost:7777')
.on('open', () => {
console.log('Connectted Devkit on port', '7777');
ws.send(JSON.stringify({
@@ -5049,7 +5049,7 @@ global$1.Entry = function () {
Reflect.apply(jsObtainEntry(contextId), doric, args);
});
if (entryHooks.length <= 1) {
const source = path__default['default'].basename(jsFile);
const source = path__default["default"].basename(jsFile);
console.log(`Debugging ${source}`);
initNativeEnvironment(source).then(ret => {
contextId = ret;