10 lines
231 B
TypeScript
10 lines
231 B
TypeScript
![]() |
import { viteMockServe } from './index';
|
||
|
|
||
|
export function configMockPlugin({ enable, mockPath }: { enable: boolean; mockPath: string }) {
|
||
|
return viteMockServe({
|
||
|
// ignore: /.mjs$/,
|
||
|
mockPath: mockPath,
|
||
|
enable,
|
||
|
});
|
||
|
}
|