MCPcopy
hub / github.com/vitejs/vite / buildWithPlugin

Function buildWithPlugin

packages/vite/src/node/__tests__/plugins/hooks.spec.ts:80–89  ·  view source on GitHub ↗
(plugin: Plugin)

Source from the content-addressed store, hash-verified

78}
79
80const buildWithPlugin = async (plugin: Plugin) => {
81 await build({
82 root: path.resolve(import.meta.dirname, '../packages/build-project'),
83 logLevel: 'error',
84 build: {
85 write: false,
86 },
87 plugins: [plugin, resolveEntryPlugin],
88 })
89}
90
91describe('supports plugin context', () => {
92 test('config hook', async () => {

Callers 1

hooks.spec.tsFile · 0.85

Calls 2

buildFunction · 0.90
resolveMethod · 0.65

Tested by

no test coverage detected