Skip to content

converting webpack config to rollup #1757

Closed

Description

@cfry

I'm trying to include npm @techstark/opencv-js in my web app.
The github site for this package recommended this webpack config:
module.exports = {
resolve: {
modules: [...],
fallback: {
fs: false,
path: false,
crypto: false
}
}
};
But my app is using rollup and I don't know how to translate this into rollup config.
I have attempted to out at the top of my rollup.config file:
import nodePolyfills from 'rollup-plugin-node-polyfills'; errors during build
and in the plugins array include:
nodePolyfills()
but that errors
Help greatly appreciated.

Activity

  1. locked and limited conversation to collaborators on Aug 23, 2024
  2. converted this issue into a discussion #1758 on Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions