Skip to content

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 #20

Description

@brandonros

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
    })
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions