Open
Conversation
This reverts commit d6c125a.
Member
Author
gd4Ark
reviewed
Dec 30, 2021
| 你需要通过环境变量 `UPDATE_POPUP_VERSION` 来传入版本号,后续每次迭代更新只需要修改比当前大的版本号即可。 | ||
| ```ts | ||
| // src/main.js | ||
| import '@update-popup' |
Member
There was a problem hiding this comment.
有点不太明白,为什么一些地方可以直接 @update-popup,有些地方又需要添加 scope @femessage/update-popup
Member
Author
There was a problem hiding this comment.
在 xxx.config.js 中视为包名,在 client 中 @update-popup 视为虚拟文件,https://cn.vitejs.dev/guide/api-plugin.html#importing-a-virtual-file
it doesn't on designed
gd4Ark
approved these changes
Dec 31, 2021
Member
|
LGTM. |
colmugx
approved these changes
Oct 19, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preview
Friendly Tips
此 PR 看似改动量很大,实则不然,在除去 https://github.com/antfu/unplugin-starter 模板提供的文件,重命名的文件,以及删除的无用文件后,需要 review 的文件大约如下:
readme* 2build.shpackage.json(多为模板提供的改动src/index.ts(前 index.jssrc/snippet.ts(前 src/main.jshelpers/*(client 相关utils/*(node 相关,前 utils/index.jsFeatures
popupMessage, popupActionText⚡️ Breaking ⚡️
参考迁移指南
MISC
snippet.tscreateIntervalbuild.shimport x from 'xxx'@update-popup(单一选择)virtual:update-popup~update-popupvite-plugin-pages中同时具备 2, 3 情况,如需修改,同时也需要修改 readmeHow
Describe your steps:
unpluginto become a universal plugin that support vite and webpack.Test
Vite
Vue CLI
Nuxt2
Functions
Docs