Skip to content

Commit 46dbfa5

Browse files
committed
update
1 parent eb06d0f commit 46dbfa5

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

abap.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ for (const dirent of fs.readdirSync("abap2xlsx/src", {recursive: true, withFileT
6060

6161
/////////////////////////////////////////
6262

63-
fs.writeFileSync("src/abap.ts", output + "\n};");
63+
fs.writeFileSync("src/abap.js", output + "\n};");
6464
for (const filename in files) {
6565
fs.writeFileSync(path.join("input", filename), files[filename]);
6666
}

abap_transpile.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ignoreSyntaxCheck": false,
1010
"addFilenames": true,
1111
"addCommonJS": true,
12+
"skipReposrc": true,
1213
"unknownTypes": "runtimeError",
1314
"skip": []
1415
}

public/zcl_excel_demo1.xlsx

-1 Bytes
Binary file not shown.

public/zcl_excel_demo2.xlsx

-1 Bytes
Binary file not shown.

src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import * as abaplint from "@abaplint/core";
2424
import * as abapMonaco from "@abaplint/monaco";
2525
import Split from "split-grid";
2626
import { abapfiles } from "./abap.js";
27-
import {initializeABAP} from "../output/init.mjs";
28-
//initializeABAP();
27+
import * as initabap from "../output/init.mjs";
28+
console.dir(initabap); // just to make sure its not shaked away
2929

3030
const reg = new abaplint.Registry(new abaplint.Config(JSON.stringify(config)));
3131
for (const filename in abapfiles) {
@@ -109,6 +109,9 @@ document.getElementById("demoDropdown").addEventListener("change", (e) => {
109109
const AsyncFunction = new Function(`return Object.getPrototypeOf(async function(){}).constructor`)();
110110

111111
async function abapChanged() {
112+
// @ts-ignore
113+
console.dir(globalThis.abap);
114+
112115
try {
113116
const contents = editor1.getValue();
114117
const file = new abaplint.MemoryFile(filename, contents);
@@ -144,4 +147,5 @@ async function abapChanged() {
144147
editor1.onDidChangeModelContent(abapChanged);
145148
abapChanged();
146149
editor1.focus();
147-
const abap = new ABAP({console: new MemoryConsole()});
150+
151+
//const abap = new ABAP({console: new MemoryConsole()});

webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ module.exports = {
1515
"ts.worker": "monaco-editor/esm/vs/language/typescript/ts.worker",
1616
*/
1717
},
18+
experiments: {
19+
topLevelAwait: true
20+
},
1821
devServer: {
1922
open: true,
2023
hot: true,

0 commit comments

Comments
 (0)