Skip to content

Commit

Permalink
js: resolve bundling issues with @solana/buffer-layout and @solana/bu…
Browse files Browse the repository at this point in the history
…ffer-layout-utils
  • Loading branch information
dr497 committed Sep 1, 2024
1 parent 10445f1 commit fdf5bc2
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions js/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,27 @@ export default {
preserveModulesRoot: "src",
},
],
external: ["@solana/web3.js"],
external: [
"@solana/web3.js",
"@solana/buffer-layout-utils",
"@solana/buffer-layout",
],
plugins: [
multiInput.default(),
commonjs(),
nodeResolve({
browser: true,
preferBuiltins: false,
dedupe: ["borsh", "@solana/spl-token", "bn.js", "buffer"],
dedupe: [
"borsh",
"@solana/spl-token",
"bn.js",
"buffer",
"@solana/buffer-layout-utils",
"@solana/buffer-layout",
],
}),
commonjs(),

typescript({
tsconfig: "./tsconfig.json",
declaration: false,
Expand Down

0 comments on commit fdf5bc2

Please sign in to comment.