Skip to content

converting webpack config to rollup #1757

@cfry

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.

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