bili
bili copied to clipboard
Using rollup plugins which don't export default function
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!
4.5.2 added a new option resolvePlugins
that might be a solution to this: https://bili.egoist.sh/api/interfaces/config.html#resolveplugins