Skip to content

Commit

Permalink
add webpack / gatsby instructions to FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaaash committed Sep 28, 2021
1 parent a92c782 commit 81e80d5
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,33 @@ Yes, see the [angular](https://github.com/solana-labs/wallet-adapter/tree/master
### Vue / Vuex
Not yet, see [issue #67](https://github.com/solana-labs/wallet-adapter/issues/67). Please contribute if you want to add Vue support!

### Webpack / Babel / Rollup / Vite / Snowpack / esbuild
### Webpack / Gatsby
Yes, but you may need to set up polyfills for certain imported modules.

For example, you may need to install `buffer`:
```shell
yarn add buffer
```

And configure `webpack.config.js`:
```js
const webpack = require('webpack');

module.exports = {
plugins: [
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer']
})
],
resolve: {
fallback: {
crypto: false
}
}
};
```

### Babel / Rollup / Vite / Snowpack / esbuild
Yes, but you may need to provide custom build configuration.
Most of the packages are built using the TypeScript compiler, which outputs modular ES6 with `import`/`export` statements.

Expand Down

0 comments on commit 81e80d5

Please sign in to comment.