ionic-team / ionic-team/rollup-plugin-node-polyfills

Error: 'default' is not exported by node_modules/rollup-plugin-node-polyfills/polyfills/buffer-es6.js, imported by node_modules/rollup-plugin-node-polyfills/polyfills/crypto-browserify.js

Open
#20 6 comments 7 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
142
Forks
65
PR merge metrics
No merged PRs in 30d

Description

index.js:

```
import { createCipheriv, createDecipheriv, pbkdf2Sync } from 'crypto'
```

rollup.config.js:

```
import nodePolyfills from 'rollup-plugin-node-polyfills';

export default {
input: 'src/index.js',
output: {
dir: 'dist',
format: 'iife'
},
plugins: [
nodePolyfills({
buffer: true,
crypto: true
})
]
}

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.