-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: rewrite in unplugin #35
base: dev
Are you sure you want to change the base?
Conversation
This reverts commit d6c125a.
你需要通过环境变量 `UPDATE_POPUP_VERSION` 来传入版本号,后续每次迭代更新只需要修改比当前大的版本号即可。 | ||
```ts | ||
// src/main.js | ||
import '@update-popup' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有点不太明白,为什么一些地方可以直接 @update-popup
,有些地方又需要添加 scope @femessage/update-popup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在 xxx.config.js
中视为包名,在 client 中 @update-popup
视为虚拟文件,https://cn.vitejs.dev/guide/api-plugin.html#importing-a-virtual-file
it doesn't on designed
LGTM. |
Preview
Friendly Tips
此 PR 看似改动量很大,实则不然,在除去 https://github.com/antfu/unplugin-starter 模板提供的文件,重命名的文件,以及删除的无用文件后,需要 review 的文件大约如下:
readme
* 2build.sh
package.json
(多为模板提供的改动src/index.ts
(前 index.jssrc/snippet.ts
(前 src/main.jshelpers/*
(client 相关utils/*
(node 相关,前 utils/index.jsFeatures
popupMessage, popupActionText
⚡️ Breaking ⚡️
参考迁移指南
MISC
snippet.ts
createInterval
build.sh
import x from 'xxx'
@update-popup
(单一选择)virtual:update-popup
~update-popup
vite-plugin-pages
中同时具备 2, 3 情况,如需修改,同时也需要修改 readmeHow
Describe your steps:
unplugin
to become a universal plugin that support vite and webpack.Test
Vite
Vue CLI
Nuxt2
Functions
Docs