Skip to content

Commit

Permalink
Merge pull request #172 from drichar/fix/buffer-unresolved-dependency…
Browse files Browse the repository at this point in the history
…-warning

fix(build): add node polyfills to resolve buffer dependency
  • Loading branch information
yigitguler authored Jan 9, 2025
2 parents f29bbb3 + 9e0d513 commit 9ce01b0
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
44 changes: 44 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"prettier": "^2.6.1",
"rollup": "^2.70.1",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-sizes": "^1.0.5",
"rollup-plugin-terser": "^7.0.2",
Expand Down
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import image from "@rollup/plugin-image";
import json from "@rollup/plugin-json";
import replace from "@rollup/plugin-replace";
import sizes from "rollup-plugin-sizes";
import nodePolyfills from "rollup-plugin-node-polyfills";

export default [
{
Expand Down Expand Up @@ -48,7 +49,8 @@ export default [
replace({
PERA_CONNECT_VERSION: `v${PeraConnectVersion}`,
preventAssignment: true
})
}),
nodePolyfills()
]
}
];

0 comments on commit 9ce01b0

Please sign in to comment.