rollup-plugin-rebase icon indicating copy to clipboard operation
rollup-plugin-rebase copied to clipboard

Can't handle image (and other non-JS) files

Open olefrank opened this issue 3 years ago • 0 comments

I have a react project where I need to show some images (png).

I've tried using the example from the docs. When building I get this error:

[!] Error: Unexpected character '�' (Note that you need plugins to import files that are not JavaScript) src/pages/landing/images/[email protected] (1:0)

I see 2 solutions:

  1. update the plugin to be able to handle non-JS files (actually I thought this was the main purpose of this plugin)
  2. update the docs with examples of how to handle static assets that are non-JS files

olefrank avatar Jul 15 '22 07:07 olefrank