Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@svelte-on-solana/wallet-adapter-anchor

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@svelte-on-solana/wallet-adapter-anchor - npm Package Compare versions

Comparing version 1.0.14-alpha.0 to 1.0.15-alpha.0

2

package.json
{
"name": "@svelte-on-solana/wallet-adapter-anchor",
"version": "1.0.14-alpha.0",
"version": "1.0.15-alpha.0",
"author": "Svelte on Solana",

@@ -5,0 +5,0 @@ "repository": "https://github.com/svelte-on-solana/wallet-adapter",

@@ -15,20 +15,19 @@ # `@svelte-on-solana/wallet-adapter-anchor`

Add `@project-serum/anchor` to `optimizeDeps`. This pre-bundles the `@project-serum/anchor` package. This steps converts commonJs dependencies into ESM ( Vite's dev server serves all code as native ESM ).
Add `@project-serum/anchor` to `optimizeDeps` inside `vite.config.js`. This pre-bundles the `@project-serum/anchor` package. This steps converts CommonJS dependencies into ESM ( Vite's dev server serves all code as native ESM ).
```javascript
import { sveltekit } from '@sveltejs/kit/vite'
/** @type {import('vite').UserConfig} */
const config = {
// ...
kit: {
// ...
vite: {
// ...
define: {
'process.env.BROWSER': true
},
optimizeDeps: {
include: ['@project-serum/anchor', '@solana/web3.js', 'buffer'],
}
}
plugins: [sveltekit()],
define: {
'process.env.BROWSER': true
},
optimizeDeps: {
include: ['@project-serum/anchor', '@solana/web3.js', 'buffer'],
}
};
}
export default config
```

@@ -51,3 +50,2 @@

<script lang="ts">
import { onMount } from 'svelte';
import { walletStore } from '@svelte-on-solana/wallet-adapter-core';

@@ -63,11 +61,3 @@ import { WalletProvider, WalletMultiButton } from '@svelte-on-solana/wallet-adapter-ui';

let wallets;
onMount(async () => {
const { PhantomWalletAdapter, SolflareWalletAdapter } = await import(
'@solana/wallet-adapter-wallets'
);
wallets = [new PhantomWalletAdapter(), new SolflareWalletAdapter()];
});
let wallets = [new PhantomWalletAdapter(), new SolflareWalletAdapter()];;
</script>

@@ -74,0 +64,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc