I am using bili and rollup-plugin-vue 1 to compile a Vue component library. @rollup/plugin-url 3 handles require calls to image files and copies them to the dist/ folder.