Giter Site home page Giter Site logo

Comments (3)

BryanAdamss avatar BryanAdamss commented on June 25, 2024

嗯,这一块的确不好处理。
其实现在应该是可以解析出@/components/xxx是引用的@/components/xxx/index.vue文件的,但是现在是用正则替换的,拿到的是前者,然后在后面直接加上.vue后缀的,逻辑还需要优化下😂

ps: 我们现在在项目里会强制要求入口组件和上层目录保持同名,例如/abc/Button的入口文件是/abc/Button/Button.vue组件。太多index在项目里不好查找、区分,必须结合路径来区分😂😂😂

from add-vue-suffix.

StepToTop avatar StepToTop commented on June 25, 2024

那我看下吧😂

确实规范很重要QAQ

from add-vue-suffix.

BryanAdamss avatar BryanAdamss commented on June 25, 2024

fixed issue with https://github.com/BryanAdamss/add-vue-suffix/blob/main/CHANGELOG.md

from add-vue-suffix.

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.