pipe01 / esbuild-plugin-vue3

esbuild plugin for loading Vue 3 SFC files
MIT License
59 stars 13 forks source link

Not support image handling #23

Closed hiveer closed 1 year ago

hiveer commented 1 year ago

I'm trying to import an image in SFC, but I got this error: 22:58:48 js.1 | ✘ [ERROR] Could not resolve "./images/opencsg_logo.png"

<script lang="ts" setup>
import { ref } from 'vue'
import logo from './images/logo.png'
</script>

not sure how does this plugin handle this?

pipe01 commented 1 year ago

This seems like it should be handled by esbuild, not this plugin. For example, you could use this plugin.

hiveer commented 1 year ago

@pipe01 thanks for the suggestion