MCPcopy Create free account
hub / github.com/Borrus-sudo/tinypages / createDevPlugins

Function createDevPlugins

packages/vite/src/node/plugins/dev.ts:14–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12import LazyDecoratorPlugin from "./isomorphic/lazy-decorator";
13
14export async function createDevPlugins() {
15 const { config } = useContext("dev");
16 return [
17 InspectPlugin(),
18 MarkdownPlugin(),
19 UnoCSSPlugin(<{}>{
20 inspector: true,
21 mode: "global",
22 ...config.defaultModulesConfig.unocss,
23 }),
24 SvgResolverPlugin(),
25 ImagePlugin(
26 config.defaultModulesConfig.image.presets,
27 config.defaultModulesConfig.image.options
28 ),
29 LazyDecoratorPlugin(),
30 DecoratorPlugin(),
31 HmrPlugin(),
32 AutoImport(AutoImportPluginOptions(config.vite.root)),
33 // PrefreshPlugin(),
34 ];
35}

Callers 1

createDevContextFunction · 0.85

Calls 1

useContextFunction · 0.90

Tested by

no test coverage detected