fix(useWebWorker): IIFE does not pack the @vueuse/shared package in … #2433
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.
…#2421
Description
scripts/rollup.config.ts
中,关于iife的设置仅将vue-demi
注入了,并没有把shared工具包注入@vueuse/core
包时,使用shared工具包提供的方法或常量均为undefined
@vueuse/core
,像@vueuse/rxjs
也是一样的,如果使用了shared工具包均会报错例如:
@vueuse/rxjs
中提供的useSubscription
方法,它需要使用'@vueuse/shared
提供的tryOnScopeDispose
方法。执行
useSubscription
会报错解决:
vue-demi
进行注入设置Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).