Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fakePluginContext
1 parent 0107eec commit 5e93d5bCopy full SHA for 5e93d5b
1 file changed
playground/src/composables/uno.ts
@@ -6,7 +6,7 @@ import { evaluateUserConfig } from '#docs'
6
import { unocssBundle } from '#docs/unocss-bundle'
7
import reset from '@unocss/reset/tailwind.css?raw'
8
import MagicString from 'magic-string'
9
-import { createGenerator } from 'unocss'
+import { createGenerator, noop } from 'unocss'
10
11
export const init = ref(false)
12
export const customConfigError = ref<Error>()
@@ -122,7 +122,7 @@ function useTransformer() {
122
return []
123
124
const annotations = []
125
- const fakePluginContext = { uno } as UnocssPluginContext
+ const fakePluginContext = { uno, invalidate: noop } as UnocssPluginContext
126
for (const { idFilter, transform } of transformers) {
127
if (idFilter && !idFilter(id))
128
continue
0 commit comments