Skip to content

✨ [Feature]: vue2和vue3混合开发,希望包结构能隔离 #4189

Description

@defghy

What problem does this feature solve

包结构当前解决方案如下:

Image

https://github.com/opentiny/unplugin-tiny-vue#%E6%B8%A9%E9%A6%A8%E6%8F%90%E7%A4%BA

只有1个版本的@opentiny/vue是没问题的,但是monorepo如果同时存在vue2和vue3,包提升就乱了,此时需要把opentiny安装到web项目根目录中,使用alias来锁定其他包使用的opentiny版本。

当前是没有这种解决方案的

What does the proposed API look like

其实可以这样, postinstall时,把所有@opentiny/vue-*(子包,子包的子包),拷贝软链接到@opentiny/vue相同目录

  "scripts": {
    "postinstall": "node scripts/postinstall.mjs",
  },
Image

What is your project name

animal-world

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request (功能增强)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions