From 4890205b6eae11cea5f6e393074f5882f0e34d65 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 2 Dec 2020 14:21:49 +0100 Subject: [PATCH] fix: temporary disable auto mock plugin --- packages/nitro/src/rollup/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nitro/src/rollup/config.ts b/packages/nitro/src/rollup/config.ts index b0f66c07b4..e0c84e12e9 100644 --- a/packages/nitro/src/rollup/config.ts +++ b/packages/nitro/src/rollup/config.ts @@ -18,7 +18,7 @@ import { resolvePath, MODULE_DIR } from '../utils' import { dynamicRequire } from './plugins/dynamic-require' import { externals } from './plugins/externals' import { timing } from './plugins/timing' -import { autoMock } from './plugins/automock' +// import { autoMock } from './plugins/automock' import { staticAssets, dirnames } from './plugins/static' import { middleware } from './plugins/middleware' import { esbuild } from './plugins/esbuild' @@ -179,7 +179,7 @@ export const getRollupConfig = (sigmaContext: SigmaContext) => { })) // Automatically mock unresolved externals - rollupConfig.plugins.push(autoMock()) + // rollupConfig.plugins.push(autoMock()) // https://github.com/rollup/plugins/tree/master/packages/commonjs rollupConfig.plugins.push(commonjs({