diff --git a/build.js b/build.js index 17611a1..eac6180 100644 --- a/build.js +++ b/build.js @@ -10,4 +10,5 @@ esbuild.buildSync({ define: { global: "self", }, + inject:['process.js'] }); diff --git a/package.json b/package.json index f15bf84..03f04c8 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "jest-puppeteer": "^6.1.0", "libskynetnode": "^0.1.3", "prettier": "^2.7.1", + "process": "^0.11.10", "puppeteer": "^15.2.0", "read": "^1.0.7", "rollup": "^2.75.7", diff --git a/process.js b/process.js new file mode 100644 index 0000000..45944d9 --- /dev/null +++ b/process.js @@ -0,0 +1,3 @@ +export const process = require('process'); + +