Skip to content

Commit

Permalink
fix: "process" undefined in browser runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
3p3r committed Mar 26, 2024
1 parent bb79328 commit 0e6b796
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
14 changes: 12 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wasabio",
"version": "1.0.0",
"version": "1.0.1",
"description": "WebAssembly and SharedArrayBuffer IO. Pronounced 'wassabee-yo'.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -39,6 +39,7 @@
"exponential-backoff": "^3.1.1",
"mocha": "^10.3.0",
"prettier": "^3.2.5",
"process": "^0.11.10",
"string-replace-loader": "^3.1.0",
"terser-webpack-plugin": "^5.3.10",
"ts-loader": "^9.5.1",
Expand Down
2 changes: 2 additions & 0 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export default function (_env: unknown, { mode }: { mode: string }) {
}),
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
process: "process",
}),
new CopyPlugin({
patterns: [
Expand Down Expand Up @@ -252,6 +253,7 @@ export default function (_env: unknown, { mode }: { mode: string }) {
alias: {
assert: "assert",
buffer: "buffer",
process: "process",
},
},
};
Expand Down

0 comments on commit 0e6b796

Please sign in to comment.