Skip to content

Commit eb06d0f

Browse files
committed
hmm
1 parent 8cbae96 commit eb06d0f

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ abap2xlsx
44
abap2xlsx-demos
55
open-abap-core
66
src/abap.ts
7+
src/abap.js
78
input
89
output

public/zcl_excel_demo1.xlsx

0 Bytes
Binary file not shown.

public/zcl_excel_demo2.xlsx

0 Bytes
Binary file not shown.

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-ignore
22
global.MonacoEnvironment = {
33
globalAPI: true,
4-
getWorkerUrl: function (_moduleId: any, label: any) {
4+
getWorkerUrl: function (_moduleId, label) {
55
/*
66
if (label === "json") {
77
return "./json.worker.bundle.js";
@@ -23,7 +23,9 @@ import {ABAP, MemoryConsole} from "@abaplint/runtime";
2323
import * as abaplint from "@abaplint/core";
2424
import * as abapMonaco from "@abaplint/monaco";
2525
import Split from "split-grid";
26-
import { abapfiles } from "./abap";
26+
import { abapfiles } from "./abap.js";
27+
import {initializeABAP} from "../output/init.mjs";
28+
//initializeABAP();
2729

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

webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ module.exports = {
1010
entry: {
1111
app: "./src/index.ts",
1212
"editor.worker": "monaco-editor/esm/vs/editor/editor.worker.js",
13+
/*
1314
"json.worker": "monaco-editor/esm/vs/language/json/json.worker",
1415
"ts.worker": "monaco-editor/esm/vs/language/typescript/ts.worker",
16+
*/
1517
},
1618
devServer: {
1719
open: true,
1820
hot: true,
1921
},
2022
resolve: {
2123
fallback: {
24+
"./%23ui2%23cl_json.clas.mjs": false,
2225
"buffer": require.resolve("buffer/"),
2326
"stream": require.resolve("stream-browserify"),
2427
"crypto": false,
@@ -27,11 +30,13 @@ module.exports = {
2730
"http": false,
2831
"https": false,
2932
"zlib": false,
33+
"tls": false,
34+
"net": false,
3035
"util": false,
3136
"url": false,
3237
"string_decoder": require.resolve("string_decoder/"),
3338
},
34-
extensions: [".ts", ".js"],
39+
extensions: [".ts", ".js", ".mjs"],
3540
},
3641
output: {
3742
globalObject: "self",

0 commit comments

Comments
 (0)