*add polyfill injection to have Buffer and process be global
This commit is contained in:
parent
86d0ca68c0
commit
fc41eb645a
1
build.js
1
build.js
|
@ -10,6 +10,7 @@ esbuild.buildSync({
|
|||
define: {
|
||||
global: "self",
|
||||
},
|
||||
inject: ["./polyfill.js"],
|
||||
});
|
||||
|
||||
esbuild.buildSync({
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export const process = require("process");
|
||||
export const Buffer = require("buffer").Buffer;
|
Reference in New Issue