bili icon indicating copy to clipboard operation
bili copied to clipboard

Using rollup plugins which don't export default function

Open benjamindavid opened this issue 5 years ago • 1 comments

I'm in the process of migrating from v3 to v4 but I'm truck trying to a plugin.

I use to import it this way in v3:

plugins: [
    require("rollup-plugin-string").string({
        include: '**/*.svg'
    }),
],

How can I tell it to use the string() method now that v4 only supports a boolean or an object?

Thanks!

benjamindavid avatar Mar 08 '19 04:03 benjamindavid

4.5.2 added a new option resolvePlugins that might be a solution to this: https://bili.egoist.sh/api/interfaces/config.html#resolveplugins

egoist avatar Mar 15 '19 11:03 egoist