Giter VIP home page Giter VIP logo

Comments (8)

MellowCo avatar MellowCo commented on July 30, 2024

目前没有

from unplugin-transform-class.

MellowCo avatar MellowCo commented on July 30, 2024

为什么要配置排除的目录呢

from unplugin-transform-class.

38888 avatar 38888 commented on July 30, 2024

好像是有问题 @/components/ 里面的组件 报错🤒
初学前端也可能是我 没配置好。。但是@/components/ 是下载的别人写好的。不引入插件的话 @/components/ 可以正常使用 可以留个vx交流嘛

from unplugin-transform-class.

MellowCo avatar MellowCo commented on July 30, 2024

好像是有问题 @/components/ 里面的组件 报错🤒 初学前端也可能是我 没配置好。。但是@/components/ 是下载的别人写好的。不引入插件的话 @/components/ 可以正常使用 可以留个vx交流嘛

可能是匹配规则原因 能知道是哪个组件吗 提供相关组件代码

from unplugin-transform-class.

H-Haynes avatar H-Haynes commented on July 30, 2024

tmui组件库,他的写法与规则有些冲突,所以想将其排除

from unplugin-transform-class.

38888 avatar 38888 commented on July 30, 2024

好像是有问题 @/components/ 里面的组件 报错🤒 初学前端也可能是我 没配置好。。但是@/components/ 是下载的别人写好的。不引入插件的话 @/components/ 可以正常使用 可以留个vx交流嘛

可能是匹配规则原因 能知道是哪个组件吗 提供相关组件代码

https://github.com/38888/test

from unplugin-transform-class.

MellowCo avatar MellowCo commented on July 30, 2024

'' 的匹配问题

image

fixed

image

from unplugin-transform-class.

MellowCo avatar MellowCo commented on July 30, 2024

update latest
https://github.com/MellowCo/unplugin-transform-we-class#options

export interface Options {
  /**
   * 自定义转换规则
   * @default
   * {
      '.': '-d-',
      '/': '-s-',
      ':': '-c-',
      '%': '-p-',
      '!': '-e-',
      '#': '-w-',
      '(': '-bl-',
      ')': '-br-',
      '[': '-fl-',
      ']': '-fr-',
      '$': '-r-',
    }
   */
  rules?: Record<string, string>

  /**
   * 排除转换目标
   * @default [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/]
   */
  exclude?: FilterPattern

  /**
   * 需要转换的目标
   * @default [/\.[jt]sx?$/, /\.vue$/,  /\.vue\?vue/]
   */
  include?: FilterPattern
}

from unplugin-transform-class.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.