mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 14:13:40 +08:00
fix: mock plugin error #171
This commit is contained in:
@@ -2,10 +2,10 @@ import type { GetManualChunk, GetManualChunkApi } from 'rollup';
|
||||
|
||||
//
|
||||
const vendorLibs: { match: string[]; output: string }[] = [
|
||||
{
|
||||
match: ['xlsx'],
|
||||
output: 'xlsx',
|
||||
},
|
||||
// {
|
||||
// match: ['xlsx'],
|
||||
// output: 'xlsx',
|
||||
// },
|
||||
];
|
||||
|
||||
// @ts-ignore
|
||||
|
@@ -2,7 +2,7 @@ import gzipPlugin from 'rollup-plugin-gzip';
|
||||
import { isBuildGzip } from '../../utils';
|
||||
import { Plugin } from 'vite';
|
||||
export function configGzipPlugin(isBuild: boolean): Plugin | Plugin[] {
|
||||
const useGzip = isBuild && isBuildGzip;
|
||||
const useGzip = isBuild && isBuildGzip();
|
||||
|
||||
if (useGzip) {
|
||||
return gzipPlugin();
|
||||
|
Reference in New Issue
Block a user