Skip to content

Commit

Permalink
Fix(spv 1222) tslib issue with vanilla js project #2 (#1112)
Browse files Browse the repository at this point in the history
Co-authored-by: Krzysztof Tomecki <152964795+chris-4chain@users.noreply.github.com>
  • Loading branch information
cain4chain and chris-4chain authored Dec 4, 2024
1 parent b441803 commit 2591557
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bsv/spv-wallet-js-client",
"version": "1.0.0-beta.26",
"version": "1.0.0-beta.27",
"description": "TypeScript library for connecting to a SPV Wallet server",
"repository": {
"type": "git",
Expand Down
17 changes: 14 additions & 3 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,20 @@ const config: RollupOptions[] = [
skip: ['bsv'],
browser: true,
preferBuiltins: true,
moduleDirectories: ['node_modules'],
}),
commonjs(),
json(),
typescript({ tsconfig: "./tsconfig.json", sourceMap: false }),
typescript({
tsconfig: "./tsconfig.json",
sourceMap: false,
noEmitHelpers: true,
importHelpers: true
}),
nodePolyfills(),
externals({
devDeps: true,
peerDeps: true,
exclude: ['tslib']
}),
],
},
Expand All @@ -60,14 +65,20 @@ const config: RollupOptions[] = [
],
external: ['bsv', 'cross-fetch', 'cross-fetch/polyfill'],
plugins: [
typescript({ tsconfig: "./tsconfig.json", sourceMap: false }),
typescript({
tsconfig: "./tsconfig.json",
sourceMap: false,
noEmitHelpers: true,
importHelpers: true
}),
resolve({
// @ts-ignore
skip: ['bsv'],
}),
externals({
devDeps: true,
peerDeps: true,
exclude: ['tslib']
}),
],
},
Expand Down

0 comments on commit 2591557

Please sign in to comment.