unplugin / unplugin-auto-import

Auto import APIs on-demand for Vite, Webpack and Rollup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom resolver removes the first character from name parameter

jd-solanki opened this issue · comments

Hi, I have below custom resolver:

      resolvers: [
        (name: string) => {
          if (name.includes('Alert')) console.log('name :>> ', name)
        },
      ],

and I have code like:

{{ demoCodeAlertBasic }}

With above code I get following output:

name :>> emoCodeAlertBasic

I have created playground example at https://github.com/jd-0001/unplugin-auto-import

Upon running the playground project you will get something like the below:
image

It should be fixed I suppose