Skip to content

Commit 4e462d0

Browse files
committed
try this
1 parent 5f2dae3 commit 4e462d0

10 files changed

+11
-3
lines changed

extra.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import * as fs from "node:fs";
2+
3+
// workaround for the class_constructor
4+
5+
const filename = "./output/zcl_excel_worksheet.clas.mjs";
6+
let contents = fs.readFileSync(filename).toString("utf8");
7+
contents = `await import("./cl_abap_elemdescr.clas.mjs");\n` + contents;
8+
fs.writeFileSync(filename, contents);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"clone": "npm run clone1 && npm run clone2 && npm run clone3",
1111
"dev": "webpack serve --mode development --env development",
1212
"webpack": "webpack",
13-
"transpile": "abap_transpile abap_transpile.json",
13+
"transpile": "abap_transpile abap_transpile.json && node extra.mjs",
1414
"test": "npm run clone && rm -rf input && mkdir input && node abap.mjs && npm run transpile && node examples.mjs && npm run webpack"
1515
},
1616
"author": "",

public/zcl_excel_demo1.xlsx

0 Bytes
Binary file not shown.

public/zcl_excel_demo2.xlsx

0 Bytes
Binary file not shown.

public/zcl_excel_demo4.xlsx

0 Bytes
Binary file not shown.

public/zcl_excel_demo5.xlsx

0 Bytes
Binary file not shown.

public/zcl_excel_demo6.xlsx

0 Bytes
Binary file not shown.

public/zcl_excel_demo7.xlsx

0 Bytes
Binary file not shown.

public/zcl_excel_demo8.xlsx

0 Bytes
Binary file not shown.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ 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 * as initabap from "../output/init.mjs";
27+
import "../output/_init.mjs";
2828
import {Buffer} from "buffer";
29-
console.dir(initabap); // just to make sure its not shaked away
29+
// console.dir(initabap); // just to make sure its not shaked away
3030

3131
const reg = new abaplint.Registry(new abaplint.Config(JSON.stringify(config)));
3232
for (const filename in abapfiles) {

0 commit comments

Comments
 (0)