Skip to content

Commit 102a8b5

Browse files
committed
yay
1 parent cdd4385 commit 102a8b5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ await writer.constructor_();
120120
const xstring = await writer.zif_excel_writer$write_file({io_excel: excel});
121121
return xstring;
122122
`;
123-
console.dir(js);
123+
// console.dir(js);
124124

125125
const f = new AsyncFunction("abap", js);
126126
const res = await f(globalThis.abap);
@@ -175,6 +175,7 @@ async function abapChanged() {
175175
await sanitizeAndRun(compiled);
176176
} catch (error) {
177177
document.getElementById("container2").innerHTML = `<u><b>Issues found during compilation or execution</b></u><br>`;
178+
console.dir(error);
178179
document.getElementById("container2").innerHTML += error.toString();
179180
}
180181
}

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
fallback: {
2727
"./%23ui2%23cl_json.clas.mjs": false,
2828
"buffer": require.resolve("buffer/"),
29-
"assert": require.resolve("assert/"),
29+
"assert": false,
3030
"stream": require.resolve("stream-browserify"),
3131
"crypto": false,
3232
"path": require.resolve("path-browserify"),
@@ -83,6 +83,7 @@ module.exports = {
8383
}),
8484
new webpack.ProvidePlugin({
8585
Buffer: ["buffer", "Buffer"],
86+
process: 'process/browser',
8687
}),
8788
new CopyPlugin({
8889
patterns: [

0 commit comments

Comments
 (0)