rollup / rollup-plugin-image

This module has moved and is now available at @rollup/plugin-image / https://github.com/rollup/plugins/blob/master/packages/image
41 stars 13 forks source link

Doesn't work with vue. #11

Closed towry closed 5 years ago

towry commented 5 years ago

Use https://github.com/alwaysonlinetxm/rollup-plugin-img does work.

[!] Error: 'default' is not exported by assets/images/verified.png
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module-
pkgs/vue-components/elements/icon/VerifiedIcon.vue?rollup-plugin-vue=script.js (7:7)
5:
6: import QxImageView from 'qxjs/pkgs/vue-components/elements/image/QxImageView.vue';
7: import asset from '../../../../assets/images/verified.png';
          ^
8:
9: export default {
Error: 'default' is not exported by assets/images/verified.png